durable-agent-architecturelisted
Install: claude install-skill pebeto/agent-stdlib
# Durable agent architecture
Source: [Scaling Managed Agents](https://www.anthropic.com/engineering/managed-agents). Long-running-harness skills exist, but they track context and progress within a run. None encode the service-level decomposition that lets a component die and the agent resume.
A demo agent lives in one process. A production agent runs for hours, survives crashes, and resumes where it stopped. The difference is structural: split the agent into three planes with stable interfaces between them, so each fails and reboots without taking the others down.
## The three planes
- **Brain.** The model plus the harness logic that drives it. This decides what to do next.
- **Hands.** The sandbox and tools that execute. Treat these as ephemeral and disposable.
- **Session.** A durable, queryable event log of everything that happened. This is the source of truth.
The rule that makes it durable: the brain and the session live *outside* the execution container. When the container dies, and containers die, you lose the hands and nothing else. Cattle, not pets.
## Resume from the log, not from memory
The session is an append-only event log you can query, not a transcript stuffed back into the context window. Build two operations around it:
- `wake(sessionId)` rehydrates an agent from its log and continues.
- `getSession(id)` reads the current state without resuming execution.
Let the model pull history out of the log on demand through a `getEvents()`-style call that ret