Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Anthropic Engineering 9 min read Case study mediumAdept

Scaling Managed Agents with stable interfaces

Claude Managed Agents splits a long-running agent into three virtualized interfaces: an append-only session log, a stateless harness that calls Claude and routes tool calls, and sandboxes reached through a generic `execute(name, input) → string` tool call. Moving off a single coupled container turned sandboxes and harnesses into replaceable cattle. A crashed harness resumes from the durable log via `wake(sessionId)`, and credentials sit in vaults or MCP proxies the sandbox can't reach, which blocks prompt-injection token theft. The session also serves as a queryable context store outside Claude's context window. Provisioning containers lazily, only when a tool needs one, cut p50 time-to-first-token by about 60% and p95 by over 90%.

Assumes: LLM agent tool callingcontainerscontext windows

Related posts

  • The five components of building a "company harness"

    LangChain easyNovice

    Internal company agents at LangChain (GTM Agent, OpenSWE, Content Studio) converge on five primitives for a multiplayer "company harness": living in Slack (with thread breakouts and a custom UI for backlogs), identity handled per tool as either on-behalf-of the user or fixed service credentials, two-tier global and per-user memory, sandboxed code execution with a secret proxy for authenticated requests, and scheduled or event-triggered runs. OBO tools like email are restricted to DMs, and write operations on shared accounts are limited to allowlisted users. All three agents run on Managed Deep Agents, built on the open-source Deep Agents harness.

  • How we contain Claude across products

    Anthropic Engineering mediumAdept

    Anthropic caps the blast radius of Claude agents mainly through containment (sandboxes, VMs, egress controls) rather than human approval, after telemetry showed users approved about 93% of permission prompts. claude.ai runs code in ephemeral gVisor containers, Claude Code combines human approval with an OS-level sandbox (Seatbelt/bubblewrap) that cut prompts by 84%, and Cowork runs inside a full local VM with credentials kept on the host. The post also covers vulnerabilities they missed, including project config hooks executing before the trust dialog and a red-team phish in which a user-pasted prompt exfiltrated AWS credentials 24 of 25 times. Its main lesson is that only environment-level controls such as egress blocking and filesystem boundaries reliably stop attacks that model-layer defenses cannot see.

  • How to Secure AI Agents: A Practical Overview for Development Teams

    Docker easyNovice

    AI agents need a different security model than traditional services because they select tools, chain actions and act on credentials autonomously, widening the blast radius of prompt injection or tool poisoning. Defense rests on four layers: execution isolation in disposable microVMs or hardened containers with allow-listed networking, runtime-scoped tool access through a central gateway and curated registries, dedicated short-lived agent credentials injected at runtime, and full decision-chain logging with behavioral baselines to catch drift. Permission prompts are a UX pattern, not a control. Start with isolation as the highest-impact, lowest-friction step, and treat inter-agent communication as untrusted so delegation cannot escalate privileges.

  • Making Claude Code safer with sandboxing

    Anthropic Engineering mediumAdept

    Claude Code now sandboxes its bash tool using OS-level primitives (Linux bubblewrap, macOS seatbelt) to enforce filesystem isolation (writes limited to the working directory) and network isolation (traffic forced through a Unix domain socket to an external proxy that allowlists domains), covering all spawned subprocesses. Both boundaries are required, since without network isolation a prompt-injected agent can exfiltrate secrets and without filesystem isolation it can escape the sandbox. Internally this cut permission prompts by 84%, and the runtime is open-sourced for sandboxing other agents and MCP servers. Claude Code on the web runs sessions in cloud sandboxes that never hold real credentials. A git proxy validates a scoped credential and the push target before attaching the GitHub token.

  • From model to agent: Equipping the Responses API with a computer environment

    OpenAI mediumAdept

    OpenAI's Responses API now pairs with a shell tool and hosted container workspace so models can run multi-step agent workflows. The API orchestrates the loop itself: it streams command output back to the model, runs multiple commands concurrently in separate sessions, and truncates large outputs while keeping their beginning and end. Native compaction carries long-running sessions across context-window limits. The containers stage files and SQLite databases instead of stuffing prompts, route network egress through a sidecar proxy with allowlists and domain-scoped secret injection, and load versioned 'skills' bundles (SKILL.md plus resources) that the model explores via shell commands.

The quest for software engineering knowledge.

Look:
Layout: