Agent loop
Chat requests become tool calls, file changes, and streamed session state. AgentRunner owns session state while AgentService runs the model and tools.
Agent Loop
State sync
Notes
AgentRunner stores session state with the Agents SDK and starts AgentService for model/tool execution. Modes are code, plan, and ask; code mode creates file snapshots before mutations.