# Claude Managed Agents and Evolution of Agentic Surfaces — Gagan Bhat & Isabella Kai He, Anthropic <!-- ref: @content/youtube/aie/2026-08-11-claude-managed-agents-and-agentic-surfaces version: 3 updated_at: 2026-10-31T20:27:58.917Z --> Gagan Bhat & Isabella Kai He (AI Engineer, 2026-08-11): Agentic surfaces have gone through three generations in three years — the Messages API (tokens in, tokens out), the Claude Agent SDK (a packaged Claude Code harness with a built-in agent loop, file system, tools, and sandboxing), and now Claude Managed Agents, which moves the… *Synthesized from Gagan Bhat and Isabella Kai He on AI Engineer, 2026-08-11.* Gagan Bhat and Isabella Kai He are members of technical staff on Anthropic's Applied AI team, which sits between product, research, and go-to-market and spends its days building agents, evaluating Claude, and adapting it to specific use cases. ## Core Thesis Agentic surfaces have gone through three generations in three years — the Messages API (tokens in, tokens out), the Claude Agent SDK (a packaged Claude Code harness with a built-in agent loop, file system, tools, and sandboxing), and now Claude Managed Agents, which moves the whole production infrastructure layer to Anthropic. The forcing function is that model capability keeps outrunning the harnesses built around it: harnesses encode assumptions about the model's weaknesses, those assumptions go stale on every release, and a stale harness becomes the ceiling on what a product can do. Managed Agents is an attempt to close the gap between what products ship and what models can actually do. ## Key Insights - **The task ladder tracks the surface ladder.** Models were first given questions (simple Q&A), then delegated tasks, and now own entire outcomes. Each rung raised the complexity the surrounding surface had to absorb. - **Every team was hand-rolling the same agentic loop.** Calling Claude, running tools, managing context — Gagan Bhat calls it painstaking, and it sat underneath a slew of production problems teams solved individually: session management, observability, credentials, hosting, sandboxing. - **Six production questions define the infrastructure burden.** Where does the agent run and how long does the process live? Where does session history live and how do you run many concurrent agents? How does Claude get file access? Where does agent-written code execute, securely? How does Claude reach sensitive systems without seeing the security tokens? And how do you see what actually happened under the hood? - **The division of labor in Managed Agents.** Anthropic runs the brain (agent loop plus Claude and its harness evolutions) and the hands (a just-in-time sandbox for file system and code execution), plus credentials, session management, observability, and hosting. The developer owns the product, the task, the context, and the domain knowledge. - **Harness fixes for one model become dead weight on the next — the context-anxiety case.** Sonnet 4.5 exhibited "context anxiety": as it neared its context window limit it started wrapping up tasks early and terminating work while room remained. Anthropic patched the harness with context resets so the model could keep going. Opus 4.5 shipped without the behavior at all, and the fix flipped from help to pure overhead — added latency and cache being discarded incorrectly. Isabella Kai He's rule: when the model moves and the harness doesn't, the agent degrades. - **Enterprise harnesses vary sharply in agility.** Some customer harnesses are built around older Claude models and are rigid; a migration to a new model that takes weeks or months is disqualifying when release cycles keep shortening. The design goal is to build for tomorrow's model capabilities and keep components swappable. - **Decoupling the brain from the hands is the load-bearing architectural decision.** The first version put the agent loop and tool execution in the same container. That meant the agent could not begin reasoning until the container finished setting up, and one component failing took down the whole box. Splitting them delivered reliability, on-demand sandbox spin-up, and a large latency win. - **The latency numbers from that split:** 60% faster time to first token at P50, and over 90% improvement in time to first token at P95 — because model reasoning starts immediately while container setup runs in parallel, or is skipped entirely when the task needs no container. - **Three primitives.** The *agent* (model, prompts, tools, skills — what your agent is), the *environment* (the container it runs in; multiple sessions can share one environment definition, each with its own isolated container instance), and their combination, the *session* — a durable cloud-persisted record of every interaction. - **Four session states make production recovery explicit:** idle (waiting on user input), running (executing), rescheduling (hit an error, retrying), terminated (unrecoverable). An agent can always return to an existing session and resume. - **Failure recovery falls out of the split.** If the sandbox dies, the brain spins up a new one and retries from where it stopped. If the brain dies, it re-reads the durable session log back into context and resumes. - **The session log solves context engineering.** In traditional harnesses the context window and the session are the same thing, so context Claude discards is gone. Because Managed Agents persists everything to a durable session log, the harness can read slices of past context back into the window, and anything Claude edited or dropped can be recovered by re-reading the log. - **Credentials never reach the model.** Vaults store security tokens and decrypt them only at tool-execution runtime, on the hands side of the split — so the brain never sees them. - **Self-hosted sandboxes and MCP tunnels answer the security-conscious enterprise.** Because the hands can run anywhere, security-conscious teams can run the sandbox control plane inside their own VPC under their own policies. MCP tunnels let a team keep MCP servers entirely on a private network, making only outbound calls to the Claude agent loop rather than exposing them to the public internet. - **Dreaming is the self-improvement mechanism.** A periodic batch process feeds the agent's session transcripts plus its current memory state back through the model, extracting new insights and organizational structure that edit memory — so the next day's sessions start smarter. The speakers see memory and dreaming as the first two cornerstones of a unified memory system extending to organization-scale memory holding team runbooks. - **Outcomes puts a grader agent beside the loop.** The developer defines a rubric — what success means, what the failure cases are — and a separate grader agent evaluates each run against it. If the grader says the task was not completed, the agent keeps trying until the success criteria are met. - **What stays the developer's job:** context management and domain expertise. Claude Code uses Bash and Grep because developers live in a terminal; a legal or go-to-market agent needs an entirely different tool set, prompts, and skills. That customization is the product. ## Actionable Takeaways 1. Audit your harness for fixes that patched a specific model's weakness (context resets, early-termination guards, compaction hacks) and re-test them on every model upgrade — they can become latency and cache-invalidation overhead once the weakness disappears. 2. Structure the harness as a small set of independent, swappable primitives so individual components can be iterated without destabilizing the architecture. Treat a multi-week model migration as a design defect. 3. Separate the agent loop from the tool-execution environment. This alone buys reliability (either half can be restarted independently) and lets reasoning start before the container is ready. 4. Persist every event — user messages, model responses, tool calls, results — to a durable session log outside the context window. It is simultaneously your observability trace, your crash-recovery mechanism, and the substrate for memory and context recovery. 5. Model your production agent with explicit session states (idle, running, rescheduling, terminated) so retryable and unrecoverable failures are distinguishable at scale. 6. Keep secrets in a vault decrypted only at tool-execution time, never in the environment visible to the agent loop. 7. For regulated or security-conscious deployments, run self-hosted sandboxes inside your own VPC and use MCP tunnels so internal MCP servers make only outbound calls instead of listening on the public internet. 8. Build the SRE-investigator pattern demonstrated in the talk: define the agent (name, model, system prompt, standard tools like bash/grep/glob, plus an MCP tool set pointed at your metrics dashboard), define an environment with networking restricted to an allowed-host list of just that MCP server, upload the relevant logs and skills as files, then start a session against them. 9. Define a success rubric with explicit failure cases for any agent whose completion you cannot verify by inspection, and let a grader agent loop the worker until the rubric passes. ## Notable Quotes > "Harnesses encode assumptions about what Claude cannot do on its own." — Isabella Kai He > "When the model moves and the harness doesn't, it degrades the agent." — Isabella Kai He > "Harnesses have become the limiting factor to what models can achieve." — Isabella Kai He > "We used to only give them questions. We then started delegating tasks. And now we let agents own entire outcomes." — Gagan Bhat > "You own the product, you own the task, you own your context." — Gagan Bhat --- *You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).* *Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*