Deep Dive · Agent Infrastructure

Managed Agents From the Inside: Brains, Hands, and Events Instead of Tokens

An Anthropic engineer's 37-minute workshop on building a production incident-response agent explains the one architectural decision that matters: the agent loop runs on the server, the tools run on your machine, and the two communicate in events. The video itself is a re-upload of someone else's workshop — attribution first, then the architecture.

Claude Managed Agents workshop — video thumbnail
Workshop: Founder Mind (re-upload) 37:09 21 November 2026
Claude Managed Agents sessions sandboxing vaults dreaming

🎬 Who made this, and who posted it 0:19

FactDetail
This upload is a re-postThe channel "Founder Mind" republished Anthropic's workshop "Ship Your First Managed Agent" and says so in its description, pointing to the original video
Who is speakingIsabella He, member of technical staff on Anthropic's Applied AI team
What the team does"At the intersection of products, research and our customers" — contributing internally to Claude Code and the Claude harnesses, and working externally with customers building on them
FramingThe re-upload adds a title about agents that "run an entire company" — the workshop itself is about one incident-response agent
Attribution matters more than usual here, because the substance is a vendor teaching its own product: every architectural claim is Anthropic describing Anthropic. The original workshop is the canonical source, and the numbers below are best read as company-reported unless marked otherwise. The re-upload's title also overpromises — the session builds one agent that debugs one incident, which is more useful and less dramatic.

📜 Why managed agents exist 2:10

EraWhat you gotWhat you still had to build
Messages API, 2023Tokens in, tokens outContext management, the agent loop, compaction — everything
Agent SDKClaude Code as a programmable harnessHosting, scaling, and making it safe inside your own containers
Managed AgentsPurpose-built harness, sandboxing, observability, tool runtime, managed infrastructureTask configuration, custom tool logic, domain knowledge
The historical argument is the strongest part of the talk, and it is not the usual marketing line: the primitives got complicated specifically because models got better. When agents could do little, context management was trivial; once they take real actions over long horizons, compaction, caching and tool execution become the hard engineering. The product is a response to capability, not a repackaging of it.
The "10 to 15 times faster to production" figure is Anthropic's, and Anthropic's own announcement uses "10x". Neither is independently measured here; treat it as a vendor claim about total build time, which for a managed service mostly measures how much infrastructure you did not have to write.

🧱 Three resources 5:55

ResourceRole, in her wordsWhat it holds
AgentThe brain — persona and capabilitiesModel, system prompt, MCP servers, skills
EnvironmentThe hands — where the agent actsA container, plus a network allow-list
SessionThe bindingAn agent instance inside an environment, streaming events back to your user
"Brains and hands" is not a cute metaphor — it is the API surface. Because the agent definition and the execution environment are separate resources with separate identifiers, you can reuse one agent definition across environments, or run one environment for several agents. That is the composability that makes the self-hosted variant possible without redesigning the product.
The environment's network list is an allow-list, not a block-list — she notes that the demo leaves it unrestricted and that you can restrict it to specific hosts. Defaults like this are the whole security story for an agent that can run shell commands: the question is not whether it can reach the internet, but which addresses somebody wrote down.

✂️ The one design decision 7:32

"Previously with a lot of agent harnesses, we saw the agent loop coupled tightly with tool execution."
Coupled (Claude Code, local)Decoupled (Managed Agents)
Agent loop and tools in the same containerLoop server-side, tools wherever you point them
Container must be spun up per session before anything runsNo container needed to start thinking
Credentials live next to the process that can run shellCredentials in a separate vault, encrypted, per user and per session
If the container dies, the loop dies with itContainer restarts; the loop and the event log survive
Three benefits fall out of one decision, and that is why it is the interesting slide: security (the component that can execute arbitrary code cannot read the secrets), latency (no container spin-up before the first token — she cites over 90% reduction in p95 time to first token), and reliability (a container crash no longer takes the agent loop with it). Most agent infrastructure problems people complain about are consequences of having coupled these two things.
The 90% figure is the most consequential number in the talk and the least verifiable. Time to first token depends enormously on the workload, the model and the region, and a "p95 reduction" can be dominated by eliminating a cold start that only some requests ever paid. Ask what the baseline was before planning around it.

🛠 The workshop, step by step 9:17

StepWhat she builds
1. The agentAn SRE persona on Claude Opus 4.7, with a deliberately short system prompt and tools for metrics, recent deploys and diffs
2. The environmentAnthropic-hosted container with an unrestricted network list for the demo
3. The contextA log file attached through the files API, so the agent can run code over it
4. The sessionAgent ID plus environment ID plus mounted resources — the three pieces bound together
5. The toolsLocal tool definitions loaded from JSON, so the agent can call them on the participant's machine
6. Streaming and deletionEvents streamed into the UI, plus the ability to delete a session and have it removed everywhere
The "very simple system prompt" remark is worth taking seriously: she says explicitly that a simple prompt works because the harness carries the complexity — instructions for how to investigate, which tools to reach for, how to report. That is the opposite of the prompt-engineering instinct, and it is only true when the harness is doing real work.
Two operational details in the demo deserve more attention than they get: the tools are loaded from local JSON in the workshop, which she notes can be swapped for a real system like Datadog over the same wire protocol — that is the difference between a demo and a deployment. And session deletion is presented as a security control, which it is: "retention" is a feature only if deleting is possible.

📨 Events, not tokens 17:22

What counts as an eventWhy the distinction matters
A user messageAppended to a session log rather than sent as a request
An agent tool callVisible while it happens, not only in the final answer
An agent responseStreamed to the user, and recorded for observability
Append-only events are what make an agent resumable, and this is the deeper version of the durability claim: if the unit is a request-response exchange, a crash loses the exchange. If the unit is an event appended to a log, a crash loses at most the event in flight, and a fresh container can continue from the log. That is the same insight as event sourcing in ordinary backends, applied to agents — and it is why "close your laptop" works.
It also fixes the user-experience problem nobody mentions: a token-streamed agent shows you typing; an event-streamed agent shows you what it is doing — which tool, with what arguments, returning what. For long-running work, that is the difference between a progress indicator and an audit trail.

🔄 Session states and webhooks 31:07

StateMeaning
IdleWaiting on a user or an external trigger
RunningExecuting the loop
ReschedulingRetrying after a failure
TerminatedFailed or ended
The state machine is what turns an agent into a service: because a session can be idle and then resumed by an event, an agent stops being something you call and becomes something that listens. She points at the consequence directly — a webhook can arrive, resume a session, and trigger work with no human and no cron in the middle.
And that is also the largest risk surface in the design. An agent that resumes on inbound events is an agent with a network-reachable trigger, and the payload that wakes it is untrusted input. Every lesson about prompt injection applies at exactly this boundary; an incident-response agent that resumes when a webhook fires is worth auditing before it is worth admiring.

🧰 Beyond the basics 33:00

PrimitiveWhat it does
Sub-agentsAn orchestrator spawns workers with their own context windows that report back — parallelism plus context isolation
MemoryPersistence of user preferences and corrections across sessions
DreamingThe agent reviews its own memory between sessions, decides what to keep and how to remember it
OutcomesA rubric for the result, rather than a list of steps — the agent works towards the outcome
VaultsCredentials stored on a separate encrypted endpoint, scoped per user and per session
MCP tunnelsRun MCP servers inside a private network instead of exposing them publicly
ConsoleObservability dashboard and an agent builder in the developer console
Vaults are the primitive that makes the whole architecture coherent: the reason credentials can be kept away from the process that runs shell commands is that the brain and hands are separate resources. Security here is not a feature bolted on; it is the same decoupling that bought latency and reliability. That is a rare thing in infrastructure design and worth noticing.
Dreaming is described as though it is available, and it is not — it is a research preview with an application process. The workshop's next session covers it, and saying "we're offering memory and a dreaming service out of the box" without that caveat sets the wrong expectation.

💰 What the video does not mention: the price 0:00

Line itemDetail
TokensStandard Claude Platform rates
RuntimePlus $0.08 per session-hour of active runtime
AvailabilityPublic beta on the Claude Platform, behind the managed-agents-2026-04-01 beta header
Thirty-seven minutes of workshop without a price is the gap to fix before adopting: session-hours are charged on active runtime, which means an agent that sleeps while idle is cheap and an agent that thinks for an hour is not. Budget per session, not per token, and remember that retries land in "active runtime" too.

🏢 Self-hosting, and what it costs you 14:12

She mentions, almost in passing, that the previous day Anthropic had released the ability to bring your own containers and compute. That release is bigger than the aside suggests.

You getYou take on
The API server, the agent loop and session storage running in your own infrastructurePatching the server and the database yourself
Inference through Anthropic, Bedrock, Google Cloud, Foundry or your own gatewayThe model still runs outside your network
A self-hosted console, an admin CLI, Docker Compose and Kubernetes pathsNo scheduled deployments and no dreaming routes on the self-hosted server — bring your own scheduler
OpenTelemetry export of agent stepsNo webhooks: your app follows sessions through the event stream instead
PostgreSQL 16 or later required for persistenceSome built-in document skills must be downloaded and uploaded as custom skills
The right way to read "you can self-host" for any managed service is the delta table above, and Anthropic's own documentation is unusually candid about it: the self-hosted server is a slightly smaller product. Scheduled deployments, dreaming and webhooks are hosted conveniences you give up, and you inherit the operational work of a Postgres-backed service.
Which reframes the workshop's security story slightly: vaults, allow-lists and sandboxing are real, but on self-hosted infrastructure the customer is also responsible for the firewall allow-list, the database and the patching. Managed security is a spectrum, and the whole point of self-hosting is that you bought the sharp edges along with the control.

✅ Claims checked

ClaimVerdictEvidence
This is Anthropic's workshop "Ship Your First Managed Agent"Correct — and this upload is a re-postThe channel's own description points at the original video
The presenter is Isabella He on Anthropic's Applied AI teamCorrect, as stated in the session—
Managed Agents provides a purpose-built harness, sandboxing, observability and tool runtimeCorrectAnthropic's launch announcement describes exactly these components
It is available in public beta on the Claude PlatformCorrectBeta header managed-agents-2026-04-01
The agent loop runs server-side; sessions survive a closed laptopCorrectDemonstrated in the workshop by hard-refreshing and resuming
Agents, environments and sessions are the three resourcesCorrectBindings shown on screen with distinct identifiers
The loop and tool execution are decoupled by designCorrect, and it is the architectural coreThree stated consequences: credentials, latency, reliability
Over 90% reduction in p95 time to first tokenCompany-reported, no baseline givenPlausible as a cold-start elimination; not independently measurable here
Teams ship 10 to 15 times faster to productionVendor claim; the announcement says 10xNot independently measured
Sessions speak in events, appended to a logCorrectAnd it is why sessions resume across disconnects
Session states include idle, running, rescheduling and terminatedCorrectShown in the demo and described in the recap
Webhooks can resume a session on external eventsCorrect for the hosted productNot sent by the self-hosted server
Memory, dreaming, outcomes, sub-agents and vaults are offeredCorrect as a listDreaming is a research preview with an application process — she does not say so
An environment's network list is an allow-listCorrectThe demo leaves it unrestricted
Bring your own containers and compute was released the day beforeCorrect in substanceSelf-hosted Managed Agents launched 12 November 2026
What it costsNever mentioned$0.08 per session-hour of active runtime on top of standard token rates
Self-hosting is equivalent to the hosted productNo — scheduled deployments, dreaming and webhooks are missingAnd some document skills must be uploaded manually
The demo builds an agent that debugs an incidentCorrect — it identifies a database connection-pool exhaustion caused by a refactor queryWith recommended actions, stopping short of applying a fix

Basis note. Built from the full 37:09 session and checked against Anthropic's Managed Agents announcement, the published pricing, and the release notes for self-hosted deployment. Because the speaker is the vendor, every performance and productivity figure here is labelled company-reported. The observations about event-sourcing being the durability mechanism, about inbound webhooks as the largest risk surface, and about the self-hosting delta table are this article's.

🔑 Key takeaways

  • This is Anthropic's workshop re-posted by another channel; the original video is the canonical source.
  • Brains and hands are separate resources: loop on the server, tools where you point them.
  • One decoupling, three wins: credentials kept away from shell execution, faster first token, and a loop that survives a dead container.
  • Events are the unit, not tokens: append-only logs are why an agent can resume after a crash or a closed laptop.
  • Session states turn an agent into a service — idle, running, rescheduling, terminated.
  • Inbound webhooks are the biggest new risk: a network-reachable trigger is untrusted input that wakes an agent.
  • The simple system prompt works because the harness carries the procedure — that is the opposite of prompt engineering as usual.
  • Network lists are allow-lists; an unrestricted demo environment is a demo, not a default.
  • Vaults only make sense because of the decoupling — security is the architecture, not a bolt-on.
  • Dreaming is still a research preview with an application process, despite how it is introduced.
  • The price is $0.08 per session-hour plus tokens, and it is never mentioned in 37 minutes.
  • Self-hosting is a slightly smaller product: no scheduled deployments, no dreaming routes, no webhooks, and you patch Postgres.

🔗 Resources

  • The re-upload — Founder Mind, 37:09; the description links the original
  • Anthropic's Managed Agents announcement — capabilities and pricing
  • The Claude Platform documentation for managed agents, sessions, environments and vaults
  • Release notes for self-hosted Managed Agents and MCP tunnels
  • This site's earlier deep dive on memory and dreaming, for what the "dreaming" session covers next
  • The deep dive on small agent teams, for the sub-agent orchestration pattern in a non-Anthropic harness
Basis note. No sponsor content. This article summarises a third-party re-upload of a vendor workshop and attributes it to Anthropic; no original workshop material is reproduced. Every performance figure is labelled as company-reported, and the pricing and self-hosting details come from Anthropic's documentation rather than the session.

⏱ Timestamp index

0:19Welcome to shipping your first managed agent
0:27Isabella He, Applied AI
0:48The agenda
1:00The harness under the hood
1:32Building an incident response agent
1:52The next session is on dreaming
2:10The Messages API in 2023
2:40Primitives got harder as models got better
3:21The Agent SDK as a harness
3:53Managed agents, and what gets handed off
4:31The fastest way to production
4:51Context anxiety on Sonnet 4.5
5:14Opus 4.5 made the mitigation obsolete
5:55Three primary resources
6:13The agent endpoint: persona and capabilities
6:17Environments as the hands
6:32Sessions bind the two
6:51The loop runs server-side
7:24Tool execution used to be coupled
7:32Why coupling made sense for Claude Code
7:49Decoupling the hands from the brains
8:09Credentials and sandboxing
8:32Time to first token
8:53Over 90% reduction in p95 TTFT
9:17The hands-on portion begins
10:00Cloning and setting up the repo
10:48streamlit run app.py
11:01The pain of being on call
11:58Copying the agent definition
12:39The SRE agent on Opus 4.7
12:54Why the system prompt is so short
13:40An identifier appears for the agent
13:57The environment
14:12Bring your own containers, released yesterday
14:38Networking as an allow-list
14:58MCP tunnels
15:26Attaching logs through the files API
16:04Context engineering is where the time goes
14:55Defining the session
17:22Sessions work in events
18:14Tools are not connected yet
19:00Deleting sessions as a security control
19:49First test run
20:24The agent calls the local tools
20:59Streaming as it works
21:17P99 latency ten times the baseline
21:49Runbooks as a skill
22:49Retrying the demo
23:44Swapping local JSON for Datadog
24:17Success
24:39Pool exhaustion from a refactor
25:10Giving the agent the fix
25:57Session persistence across a refresh
26:47Idle versus running
27:25Recap of what was built
27:51Lessons from the harness
28:22Events appended to logs
28:51A dead container no longer kills the loop
29:29Local tools, server-side loop
30:31Streaming to the user
31:07Session states
31:31Webhooks resuming sessions
32:01Everything lives in the cloud
32:37Compaction, caching and tool calling handled for you
33:00Skills, sub-agents, memory, outcomes
33:31Sub-agents and orchestration
33:49Memory and dreaming
34:28Outcomes as a rubric
34:57Vaults and credential encryption
35:42Webhooks, permissions, MCP controls
36:03The console agent builder
36:40Saving future developers from 3 a.m.
☰ View all