Decoupling brain, hands and session
activecrashed
- Brain (LLM + harness), hands (sandbox), session (event log).
- Every step: execute() on a hand, emitEvent() to the session.
- The container dies: a tool error returns, a fresh one is provisioned.
- The harness crashes: wake(sessionId) resumes from the last event.
Notes & references
Use when
Hosted agents that must survive crashes and scale independently.
Avoid
One container for everything, with credentials reachable from generated code.
execute(name, input) -> string # hands
emitEvent(id, event) # session: durable write
provision({ resources }) # fresh sandbox
# recovery
wake(sessionId)
events = getSession(sessionId)
resume(from=events[-1])
- Scaling Managed AgentsAnthropic
- Making Claude Code safer with sandboxingAnthropic
- 12-factor agentsHumanLayer