R222 · Infrastructure for agents at scale › Agent session hosting and control planes

Managed Agents and Clief's folder workflow, explained

Read the original

Authors Anthropic, Jake Van Clief

agent-platformsagent-harnessdurable-executionsandboxingagent-authcontext-engineeringdeterministic-workflowsdocs-as-code

The reel

Jake Van Clief's 2 min 23 s reel (posted 2026-04-09, the day after Anthropic's post) makes one claim: Managed Agents makes custom agent harnesses a waste of time, and vindicates building on files and process instead. Paraphrased from the burned-in captions, in order:

  1. A "lawyer agent", "marketer agent" or "finance agent" is usually just a harness wrapped around someone else's model, and startups sell those wrappers.

  2. As models improve, those harnesses go stale or get in the way. Managed Agents "cancels all that out".

  3. On paper he draws the split: one brain, many hands. Hands are tools (data, MCP servers, plain SQL calls); "legs" are security, cloud and scale. Anthropic "took the brain and removed it from the hands".

  4. He says he made the same move earlier by "using file architecture as my harness", and points at the post's opening (harness assumptions "go stale") as Anthropic saying what he has been saying.

  5. The payoff: what matters now is "the process and the structure". Most people do not even need Managed Agents; a couple of tables and markdown files do most of the work. The hard part is breaking down the process and the workflows the agents read.

The captions are paraphrased; treat the quotes as close, not exact.

Managed Agents at a glance

Managed Agents is Anthropic's hosted service for long-running agents, launched April 2026 and still in beta. It splits an agent into three parts behind stable interfaces: the brain (Claude plus the harness loop), the hands (sandboxes and tools), and the session (an append-only event log). Any part can fail or be swapped without the others noticing.

Only the session log has to survive; brains and hands are disposableOrchestratorwake(sessionId) boots a fresh harnessgetSession replays the logBrainClaudethe model: plans and calls toolsHarnessstateless loop; any copy can resumeemitEvent / getEventsSession logappend-only events: the only stateexecute(name, input)returns a stringHands: interchangeableSandbox containerprovisioned only when a call needs itMCP proxy + vaulttokens fetched outside the sandboxCustom toolsyour code, behind the same callA dead container comes back as a tool error; Claude can retry on a fresh one. A dead harness is replaced from the log.
Managed Agents architecture · brain, hands, session

Read it from the accent box: the log is the only thing that must be durable. Everything else is cattle, rebuilt on demand.

The interfaces and the API objects

Managed Agents is two layers: a handful of internal interfaces that the engineering post names, and the public REST objects you program against. The internal interfaces are the design; the REST objects are how you reach it.

Internal interfaces (from the April 8, 2026 post)

InterfaceOwned byWhat it doesWhat it makes replaceable
execute(name, input) → stringHarness, calling a handRuns any tool: a container, an MCP server, a custom toolThe sandbox. A dead container is just a tool error
provision({resources})HarnessBuilds a fresh container from a standard recipe, only when a tool call needs oneContainer setup, off the critical path
emitEvent(id, event)Harness, writing the sessionAppends every step to a durable logNothing in the harness needs to survive a crash
wake(sessionId) + getSession(id)OrchestratorBoots a new harness and replays the log from the last eventThe harness itself
getEvents() (positional slices)Harness, reading the sessionLets the brain reread, rewind or skip ahead in historyContext strategy, which stays in the harness

Public objects (beta header managed-agents-2026-04-01)

ObjectEndpointWhat it isLifecycle
Agent/v1/agentsModel, system prompt, tools, MCP servers, skills, multiagent rosterCreated once; every change is a new immutable version; sessions pin a version
Environment/v1/environmentsContainer template: packages, networking (limited with allowed_hosts, or open); cloud or self_hostedReused across sessions
Session/v1/sessionsOne run: agent + environment + resources (files, GitHub repos, memory stores) + vault IDsrunning ⇄ idle → terminated, plus rescheduling after retryable errors
Events/v1/sessions/{id}/events and /streamThe append-only log: user.message, agent.tool_use, user.tool_confirmation, session.errorSSE has no replay: on reconnect, list events and dedupe by ID
Vault/v1/vaultsCredentials (MCP OAuth, bearer tokens, environment variables substituted at egress)Attached at session create; the sandbox sees placeholders
Memory store/v1/memory_stores (beta agent-memory-2026-07-22)Small text files (≤100 KB each) mounted into the container as a directory; every write is an immutable versionWorkspace-scoped, survives sessions
Skillsagent skills, or .claude/skills/<name>/SKILL.md in a mounted repoFilesystem instructions loaded when a task matchesRepo skills are scanned once, at session start
Outcomeuser.define_outcome eventA rubric; a separate grader with its own context scores each iteration (default 3, max 20)Ends when the rubric passes or iterations run out
Multiagentmultiagent_20261001 on the agentSubagent roster (start with self), dynamic workflow runs, an advisor; up to 25 child threadsOne shared session budget across threads
Deployment/v1/deploymentsCron schedule + initial_events; each firing creates a sessionPause, unpause, archive

Two details matter more than they look. Agents are versioned, so a prompt change never mutates a running session. And memory stores and repo skills are both folders of markdown mounted into the sandbox: the platform's own persistence model is files the agent reads with ordinary tools.

Why it is built this way

The design starts from one observation: a harness encodes assumptions about what the model cannot do, and those assumptions go stale. Anthropic's example is context resets added because Sonnet 4.5 wrapped up early near its context limit ("context anxiety"); on Opus 4.5 the behaviour was gone and the resets were dead weight. So Managed Agents commits to interfaces (session, harness, sandbox) and stays unopinionated about what runs behind them. The post's analogy is the operating system: read() outlived the disk pack.

The failure that forced it: the container was a pet. The first version put session, harness and sandbox in one container. File edits were syscalls and there were no service boundaries, but:

What decoupling bought

ChangeEffectNumber reported
Containers provisioned lazily by a tool callInference starts as soon as the orchestrator reads pending eventsp50 time to first token down about 60%, p95 down over 90%
Harness is stateless; the log is the stateA crashed harness is replaced with wake(sessionId)none given
Credentials never reachable from the sandboxGit tokens are wired into the remote at init; MCP OAuth tokens sit in a vault behind a proxynone given
Each hand is a toolOne brain drives many sandboxes, and brains can pass hands to each othernone given

The session is not the context window. Compaction, the memory tool and context trimming all make irreversible choices about which tokens survive. Managed Agents keeps the full log durable outside the model and lets the harness pull positional slices with getEvents(), then transform them (for cache hit rate, for summarisation) before they reach Claude. Storage is recoverable; context management stays swappable.

Failure modes that remain

Clief's folder workflow (ICM)

Interpretable Context Methodology (paper, March 2026) says the folder is the agent. An agent is "tools in a loop toward a goal" (Simon Willison's line, which the course quotes); a lawyer agent and a marketer agent are the same model reading different files. So instead of a framework, you build a workspace whose structure tells one model what to read for each job.

The parts

PartWhat it isRule of thumb
The map (CLAUDE.md or AGENTS.md)Read every session: what this folder is for, where things go, naming rulesFits on one screen. A giant map "puts the whole drawer back on the desk"
Routing table (inside the map)One row per job: Read / Skip / Use (which skill) / Save toIf a fresh session reads the wrong files, tighten that row
Method / Facts / Work / OutputsFour kinds of file kept apart. Method travels to the next client; facts stay with this oneLabel each file as instructions, state, or both; a file that is neither is the first to question
StagesNumbered folders, each leaving exactly one file you can openNothing moves on until someone has looked at the last file
Stage contract (CONTEXT.md per stage)What the stage reads, what it makes, who checks itPlain English, in the stage's folder
Stop pointsWhere human judgment changes the resultThree strengths: a line in the map, the permission mode, and a hook for anything that must never happen
scripts/Steps done the same way three or four times"Same input, same output" is code; a map line says when to run it
_archive/Retired workThe map says: never read it

Three shapes, one method. Stages (his animation pipeline: voice, timed words, storyboard, scene, render), records (a folder per client), and a wiki the model maintains (Karpathy's raw-sources plus written-pages split). The ICM Architect skill drafts one of six shapes from a messy folder.

The 60/30/10 split. 60 is the data, the questions and the thinking (knowing what the client actually needs). 30 is tools that already exist: a calendar, a spreadsheet, a script. 10 is the AI. "Most people start with the ten." His psychometrics work had models answer the questions and a script score ten thousand responses; that script is the 30.

Keeping it alive. Three checks from lesson 3.3: the fresh-session test (a new session must say what the folder is, what is in progress and what is next), one home for every fact (three prices in three files will drift), and clearing generated clutter into _archive/. The hand-off test is the same: if the AI were switched off tomorrow, could a person still find their way and do the work?

Why folders. Files outlived every platform shift since Unix. "Next week some other company will have the better model"; your files, context and data are what stay yours. That is the thesis the reel applies to Managed Agents.

How the two fit

They solve different halves of the same problem. Managed Agents makes the runtime disposable (harness and sandbox are cattle, the log is durable). ICM makes the context durable and portable (the folder outlives the model and the vendor). Put together: the folder is what you own and version; Managed Agents is one place to run it.

ICM elementManaged Agents primitiveNotes
The workspace foldergithub_repository session resource (cloud), or filesMounted at session start; the agent edits it with bash and file tools
CLAUDE.md mapAgent system prompt, or the repo's CLAUDE.md read by the agentKeep the map in the repo so it versions with the work
Skills under .claude/skills/Repo skills, discovered one level deep at session startSame SKILL.md format as uploaded skills; a trust boundary
Facts that persist across jobsMemory store, mounted as a directoryEach write versioned; never store secrets there
Stage contract and review gateuser.define_outcome rubric + grader; always_ask permission policyThe grader is an independent context, like a reviewer reading the stage file
Stop and wait for meSession goes idle with requires_action; tool confirmationsA hook-strength stop is a permission policy, not a prompt line
Steady parts as scriptsScripts in the repo, run by bash in the sandboxDeterministic, cheap, testable
CredentialsVault, substituted at egressNever in the folder, never in memory
Scheduled jobDeployment (cron + initial_events)Each firing is a fresh session over the same folder
_archive/ and the fresh-session testNo direct equivalentStill your discipline; Managed Agents does not curate context for you
One model, many jobsOne agent, many routing rows; or a multiagent roster for fan-outICM targets sequential, human-reviewed work; rosters and workflow runs cover parallel fan-out

The join is clean because Anthropic made the same bet: the session log is not the context window, and persistence is files mounted into a sandbox. What ICM adds is the curation Managed Agents leaves to you: which files, for which job, checked by whom.

Where the reel is right and where it overreaches

Right

Overreaches

Net: read it as "own your folder, rent your runtime". That holds up. The stronger claim, that harness engineering is now a waste of time, does not.

Review checklist

For a team proposing an agent built on Managed Agents, an ICM folder, or both:

Sources

Connections

See R222 on the knowledge map

Part of the Research notes on nowucca.com. Figures and claims are the source's own unless the summary says otherwise.