Claude for Long-Horizon Tasks — Lance Martin, Anthropic

AI Engineer · watch the talk ↗ · updated Jul 25, 2026

Lance Martin (Anthropic Member of Technical Staff, previously early team at LangChain) argues that increasing task horizon capability in frontier models is unlocking a new class of asynchronous agents, and presents four architectural themes — brain/hand decoupling, verifier loops, self-learning memory, and org-level harnesses — that underpin Claude Managed Agents and reliable long-horizon agent design more broadly.

Key Takeaways

  • Longer model task horizons (from ~10–20 min with Claude Opus 3 to 12+ hours with frontier models today) make async agents viable where they were previously frustrating 1:04
  • Decoupling the agent harness ("brain") from execution sandboxes ("hands") via an append-only session log is essential for reliability and security in long-running tasks 4:13
  • Self-verification in a separate context window avoids confabulation and produces much stronger results than asking a model to grade its own work 7:02
  • In-band memory writing quality scales strongly with model capability; higher-capacity models write more generalizable, strategic memories rather than locally-optimal facts 12:46
  • An offline "dreaming" process corrects errors written to memory during a session, analogous to sleep consolidation in the human brain 13:19
  • Prescribing a rigid memory schema to a model degrades performance; general substrates (file system or database) that the model can structure freely outperform hand-designed schemas 22:50
  • Org-level, multiplayer harnesses (Claude Tag) represent a meaningful shift from single-user reactive agents toward shared, proactive, organizationally-scoped agents 16:54

API Surface Evolution Mirrors Task Horizon Growth

Martin maps product surface to model capability over time 0:38:

EraModelTask HorizonProduct Surface
2024Claude Opus 3~10–20 minAutocomplete, Chat (human-in-loop)
Past yearClaude Sonnet / Claude Code~1 hourSynchronous local coding agents
NowFrontier "mythos class" models12+ hoursAsync agents via Managed Agents API

The Messages API (prompt/response, no deployment concept) gave way to the Agent SDK (programmatic Claude Code calls), then to Claude Managed Agents, which packages both the harness and managed deployment infrastructure 2:38. Martin notes that async was a poor UX at shorter horizons — models would quickly hit errors and return — so longer horizons were a prerequisite 1:59.


Theme 1: Decoupling Brain from Hands

Martin describes an early mistake: putting the harness and execution sandbox in the same container. If either died, the session was lost 3:36. The Managed Agents architecture separates:

  • Brain (harness): a stateless process that reads/writes a session 4:24
  • Session: an append-only event log — persistent and non-destructive 4:30
  • Hands: disposable containers/sandboxes where actual execution occurs 4:36
  • Credential vault: secrets stored separately, never in the sandbox 5:07

Claude can manage multiple hands simultaneously from a single harness 4:41. Martin connects this to recursive language models research: the session becomes an external context object the model can interrogate, enabling non-destructive context engineering — old context is always retrievable rather than lost to compaction 5:30.


Theme 2: Verifier Loops for Self-Correction

Martin warns against asking a model to both do work and grade it in the same context window — the grading context is "not properly tuned for critical verification" and produces confabulation 6:47. His prescription: separate verification into an independent context window 7:04.

The pattern 7:20:

  1. Build agent works in its own context toward a measurable goal
  2. Verifier agent evaluates the result against a goal/rubric in its own context
  3. Loop continues until the verifier is satisfied

Martin demonstrated this with the parameter golf benchmark (an OpenAI benchmark testing ML research capability — minimize training loss with 8×H100 GPUs in <10 min) 8:23. Using Managed Agents with outcomes as the verifier signal, frontier models iterated autonomously to strong results 9:06. His broader claim: loops + high-capacity models is "a very good general primitive for long-running asynchronous work" because steering signal is encoded in the environment, not in human attention 9:40.


Theme 3: Self-Learning via In-Band Memory and Dreaming

Martin draws an analogy to human memory 10:18:

  • Hippocampus / in-band memory: fast writes during a session (like remembering lunch)
  • Dreaming / out-of-band consolidation: offline process that promotes important patterns to long-term storage and corrects errors

In-Band Memory Quality Scales with Model Generation

Using the Claude Plays Pokémon experiments (Claude Sonnet 3.5 → Claude 4.6) and the open-source Continual Learning Bench (sequential SQL QA with inter-step memory writes), Martin shows performance improves monotonically with model capability 12:21. The key differentiator: higher-capacity models write generalizable abstractions ("how does this help future sessions?") rather than locally-optimal facts 12:53.

Dreaming Corrects In-Band Errors

A concrete failure mode: Claude wrote an incorrect location memory in Pokémon, causing it to fall through a trapdoor in 5/5 replicates 14:49. With a dreaming process (out-of-band review of sessions + memory store to find and correct errors), the error was consistently corrected and progress was made 14:56. Martin's caution: evaluations are needed in your own context to confirm dreaming's offline compute is justified 24:46.

Memory Substrate Advice

Martin's strong opinion on memory design 22:43:

  • Good: General substrates (file system, database) the model structures freely
  • Bad: Prescribed memory schemas — pre-populating types of memories the model "should" save

"Models can manage their own memory much better than you can intuit memory types ahead of time" — framed explicitly as a bitter lesson insight 23:03.


Theme 4: Org-Level and Proactive Async Harnesses

Martin argues Claude Tag was misread as merely a "Slack bot" when its significance is architectural 16:36. It is an org-level, multiplayer harness: a single agent harness shared across all users in an organization, with its own identity and credentials (not tied to any individual user) and access to organizational-level context 17:05.

Benefits Martin identifies 17:22:

  • Deduplicating findings across teams
  • Cross-checking others' prior work before starting an experiment
  • Internal research over org-wide context
  • Zero ramp-up for new employees vs. weeks configuring personal harnesses

Two trends Martin predicts 18:05:

  1. Proactive agents: Async agents with org-level context can be configured to push alerts ("tell me things I need to know"), shifting from reactive (user-steered) to proactive UX 18:28
  2. Concurrent multiplayer steering: Multiple users steering a single harness simultaneously is a meaningful new agent UX paradigm 19:03

On why frontier labs maintain a gap in long-horizon agent performance, Martin attributes it to co-investment across model capability, memory systems, security (prompt injection resistance), and agent architecture — "a bunch of things need to come together" that frontier labs have built end-to-end 21:19.