---
title: "Scaling Managed Agents with stable interfaces"
description: "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."
url: "https://swe.quest/articles/scaling-managed-agents-with-stable-interfaces-06b4cb4f85923c79"
canonical: "https://www.anthropic.com/research/managed-agents"
source: "Anthropic Engineering"
published: "2026-04-08"
difficulty: "medium"
kind: "Case study"
reading_minutes: 9
tags: ["ai-agents","system-design","sandboxing","resilience","llms"]
---

# Scaling Managed Agents with stable interfaces

A post on [Anthropic Engineering](https://swe.quest/sources/anthropic.md), published 2026-04-08, 9 min read, Case study. Original: [https://www.anthropic.com/research/managed-agents](https://www.anthropic.com/research/managed-agents)

## Summary

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%.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)
- [Sandboxing & isolation](https://swe.quest/tags/sandboxing.md) (Security)
- [Resilience](https://swe.quest/tags/resilience.md) (Distributed systems)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)

## Prerequisites

- LLM agent tool calling ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- containers ([easy posts on Containers](https://swe.quest/tags/containers.md?difficulty=easy))
- context windows

## Keywords

Claude Managed Agents, Claude, MCP, OAuth, Claude Code

## Related posts

- [The five components of building a "company harness"](https://swe.quest/articles/the-five-components-of-building-a-company-harness-32441ca325d05592.md): LangChain · 2026-11-17 · Easy · 5 min read · AI agents, Identity & auth, Sandboxing & isolation
  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.
- [How we contain Claude across products](https://swe.quest/articles/how-we-contain-claude-across-products-b42a3aa0de1e1d62.md): Anthropic Engineering · 2026-05-25 · Medium · 19 min read · Sandboxing & isolation, AI agents, Security, Virtualization, AI safety
  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.
- [How to Secure AI Agents: A Practical Overview for Development Teams](https://swe.quest/articles/how-to-secure-ai-agents-a-practical-overview-for-development-teams-8ef3e4fd91efa459.md): Docker · 2026-06-02 · Easy · 9 min read · AI agents, Sandboxing & isolation, Identity & auth, Security, Observability
  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.
- [Making Claude Code safer with sandboxing](https://swe.quest/articles/making-claude-code-safer-with-sandboxing-927e34fb9dfe9ca9.md): Anthropic Engineering · 2025-10-20 · Medium · 5 min read · Sandboxing & isolation, AI agents, AI for coding, Security
  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.
- [From model to agent: Equipping the Responses API with a computer environment](https://swe.quest/articles/from-model-to-agent-equipping-the-responses-api-with-a-computer-environment-102e043c05e5f9e2.md): OpenAI · 2026-03-11 · Medium · 10 min read · AI agents, LLMs, Sandboxing & isolation, System design
  OpenAI's Responses API now pairs with a shell tool and hosted container workspace so models can run multi-step agent workflows.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
