wiki / concepts / claude-managed-agents
Claude Managed Agents
loading…
Claude Managed Agents
Claude Managed Agents (CMA) is anthropic’s cloud-hosted infrastructure platform for deploying autonomous, long-running agent workflows. CMA decouples agent reasoning orchestration from tool execution environments, providing sandboxed Linux microVMs, persistent server-side event logs, prompt caching, and granular permission gates. [source: anthropic-claude-managed-agents-overview-2026]
Core Architectural Primitives
graph TD
A[Claude Managed Agents Platform] --> B[Agent: Model, Prompt, Tools, Skills]
A --> C[Environment: Managed Cloud or Self-Hosted Sandbox]
A --> D[Session: Stateful Execution Instance & Filesystem]
A --> E[Events: Persistent Bidirectional Event Log]
- Agent: Reusable definition specifying base model (Claude Opus/Sonnet), system prompts, MCP tool definitions, and skill packages.
- Environment: Configuration for execution boundaries—either Anthropic-managed cloud sandboxes with pre-installed Linux utilities or self-hosted sandboxes for strict enterprise data residency.
- Session: Stateful runtime instance binding an agent to an environment. Retains ephemeral filesystem state, tool outputs, and execution context across multi-hour turns.
- Events: Authoritative, append-only server-side event store capturing every user input, reasoning phase, tool call, output, and error.
[source: anthropic-claude-managed-agents-overview-2026]
Decoupled Architecture: Brain vs. Hands
CMA implements the structural separation of machine reasoning from untrusted execution:
- The Brain: The reasoning engine running Claude models, managing prompt compaction, prompt caching, and context assembly.
- The Hands: Ephemeral, isolated execution sandboxes executing bash commands, reading/writing local files, querying web search APIs, or calling remote MCP endpoints.
[source: anthropic-claude-managed-agents-overview-2026]
Permission Gating & Human-in-the-Loop
CMA implements policy-based permission gates on sensitive tools (e.g., bash, custom actions):
- When a gated tool is selected, the session emits
agent.tool_useand parks withsession.status_idlecontainingstop_reason: requires_action. - Clients resolve the gate by submitting a
user.tool_confirmationevent (allowordeny). - Denials are fed directly into the transcript as tool error feedback, prompting the agent to adjust strategy without repeating identical failures. [source: assistant-ui-claude-managed-agents-2026]
Frontend & Protocol Integration
Via adapters such as AG UI and client libraries (copilotkit, assistant-ui), CMA sessions map 1:1 to user chat threads:
- Zero Local Message Tables: The frontend queries
sessions.events.list()as the single source of truth. - Stream Replay Consistency: Replaying past sessions and streaming active runs execute through the identical event-folding reducer. [source: assistant-ui-claude-managed-agents-2026]
Cross-links
- anthropic — platform creator
- ag ui protocol — frontend interaction protocol
- agent native infrastructure — underlying compute paradigm
- copilotkit — integration ecosystem partner
| anthropic-claude-managed-agents-overview-2026 | https://platform.claude.com/docs/en/managed-agents/overview | ingested 2026-08-30 sha256:85e7cc25595b… |
| copilotkit-cma-agui-2026 | https://www.copilotkit.ai/blog/claude-managed-agents-agui-compatible | ingested 2026-08-30 sha256:fd039f20d339… |
| assistant-ui-claude-managed-agents-2026 | https://www.assistant-ui.com/docs/runtimes/claude-managed-agents | ingested 2026-08-30 sha256:4dedb8e6f8c0… |