Decoupling brain, hands and session

activecrashed
LLM + harnessbrainSandboxhandsMCP proxyvault credentialsexecute()emitEvent()getSession()Session
  1. Brain (LLM + harness), hands (sandbox), session (event log).
  2. Every step: execute() on a hand, emitEvent() to the session.
  3. The container dies: a tool error returns, a fresh one is provisioned.
  4. 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])