<- Architecture overview

Agent loop

Chat requests become tool calls, file changes, and streamed session state. AgentRunner owns project sessions while one durable Think facet executes each session.

Agent Loop

State sync

Notes

AgentRunner is the project-scoped authorization and session facade. Each session executes through one SessionTurnAgent Think facet, whose durable submission queue owns admission, cancellation, and recovery. Modes are code, plan, and ask; code mode creates file snapshots before mutations.