🧬Claude Managed Agents
Also known as Managed Agents, Claude Managed Agents API, Anthropic Managed Agents
A Claude service that runs your agent for you. Its tools run in a sandbox.
Think of it like
It is like a helper who comes with a desk and tools. You just say what job to do.
Example
Emma's team makes one agent that fixes failing tests. Each night a session copies the code into a cloud sandbox, runs the tests and streams back what it changed.
Why it matters
You skip building the agent loop, the sandbox and the tool runner yourself. Long jobs can run for minutes or hours and pick up again after a pause.
Definition
Example code
python
session = client.beta.sessions.create(
agent=agent.id,
environment_id=environment.id,
title="Nightly test fix",
)Common mistake
Key takeaways
- 1Agent, environment, session. Set up once, run many times.
- 2Events in, stream out. Steer it while it works.
- 3A beta header. Needed on every call for now.