Kamil Józwik
← All posts

Claude Managed Agents Decouples the Brain From the Sandbox

When Claude Cowork brought local file automation to desktop users in January, product teams hit an immediate wall whenever they tried moving similar workflows onto their own servers. Shipping a reliable cloud agent meant building Linux sandboxes, checkpointing long sessions, defending against tokens leaking into subprocess environments, and rewriting agent loops every few months as models improved.

On April 8, Anthropic launched Claude Managed Agents in public beta to take over that runtime layer. Alongside standard Claude API token pricing, the platform adds $0.08 per active session-hour, metering only active loop execution while idle waiting time costs nothing.

Decoupling the Brain From the Hands

The engineering post behind the release, Scaling Managed Agents with stable interfaces, gives a clear look at why naive agent hosting breaks under load. Anthropic’s early architecture packed the session history, orchestration loop, and execution container together inside one container. When that container died, session state vanished; before Claude could generate a first token, every session waited on container provisioning and repository clones; and generated code ran in the exact process environment holding user credentials.

Their redesigned production split introduces three clean interfaces around the model:

  1. A stateless harness (the brain) manages prompting, compaction, and retries while invoking sandboxes exclusively through an execute(name, input) -> string boundary. Because inference starts before container setup finishes, Anthropic measured p50 time-to-first-token falling roughly 60% and p95 falling over 90%.
  2. An append-only session log stores every event outside Claude’s active context window so a newly started harness can recover cleanly and read arbitrary slices without losing long-running state.
  3. Disposable sandboxes (the hands) keep secrets out of container memory entirely. Git credentials attach to remotes at setup, while MCP OAuth tokens stay locked inside an external vault behind a dedicated proxy.

Separating execution sandboxes from credential storage directly fixes the threat model highlighted during the Claude Code npm source map leak week: prompt guardrails cannot substitute for keeping live tokens unreachable from shell execution.

How It Compares to April 2026 Alternatives

Choosing a runtime in April 2026 comes down to compliance perimeters, memory needs, and how badly you want multi-model portability:

Platform / Stack Model Support Core Strength Main Tradeoff
Claude Managed Agents Claude models only Tuned harness, durable event log, vault proxy, $0.08/active hr Single-vendor lock-in; Anthropic-hosted beta lacks ZDR and HIPAA BAA
Amazon Bedrock AgentCore Model-agnostic AWS IAM and VPC boundaries, enterprise compliance controls Heavier AWS setup and IAM boilerplate
Microsoft Foundry Agent Service Model-agnostic Native Azure tenant security and governance Tied closely to Azure tooling conventions
Letta Model-agnostic Virtual-memory paging and long-term self-editing agent state Requires managing your own database and runtime ops
LangGraph / LangSmith Model-agnostic Explicit graph state control plus strong tracing and evals Team owns 100% of sandboxes, scaling, and crash recovery

Checking the Managed Agents overview docs surfaces the biggest practical constraint right away. Because hosted sessions store conversation transcripts and sandbox state server-side for hours, Anthropic’s managed cloud beta is excluded from Zero Data Retention (ZDR) and HIPAA Business Associate Agreements unless teams run self-hosted sandboxes on their own infrastructure. Regulated AWS shops often gravitate toward Amazon Bedrock AgentCore or Microsoft Foundry for that reason, trading opinionated harness tuning for cloud-native compliance. Builders creating stateful personal assistants with persistent self-updating memory lean toward Letta, while platform teams who want total control over custom multi-model routing still bite the operational bullet with LangGraph.

Where the Hosted Harness Wins

Despite valid Hacker News pushback about Anthropic ecosystem lock-in, most product teams building agentic capabilities lose far more time fighting flaky containers and broken session recovery than switching between model vendors.

If you are building on Claude and want sandboxes, SSE event streaming, and vault-isolated MCP credentials live in a week instead of maintaining custom runner fleets, $0.08 per active hour is an easy engineering trade. Keep your business state in your own database and your domain tools behind clean MCP servers so swapping orchestrators later remains a bounded migration rather than a rewrite.