Expand description
The AgentLoop — a standalone agent that processes user messages, calls LLM providers, executes tools, and communicates with the UI via channels. Decoupled from any TUI concerns.
Modules§
- background
- Background agent — runs a task in an isolated context.
- execute
- Phase 4 EXECUTE mode — focused edit execution with minimal context.
- git_
auto_ commit - Auto-commit edited files after each agent turn.
- git_
checkpoint - Lightweight git checkpoints for edit rollback.
- sub_
agent - Sub-agent parallel execution for multi-file tasks.
- subtask_
driver - ATLAS-style subtask decomposition driver.
Structs§
- Agent
Client - Cloneable sender side for UI/runtime code to communicate with the agent.
- Agent
Handle - Handle for the UI to communicate with the agent.
- Agent
Loop - The agent loop state.
- Agent
Runtime Factory - SubAgent
Task Info - One descriptor per sub-agent in a
SubAgentDispatchStartbatch. Mirrored 1:1 with thetasksvector built inparallel_edit::executeso callers can reuse the index across the lifecycle events.
Enums§
- Agent
Command - Commands sent FROM the UI TO the agent loop.
- Agent
Event - Events sent FROM the agent loop TO the UI.
- Agent
Phase - The current phase of the agent (for UI display).
- Turn
Stop Reason - Reason the agent’s turn loop stopped. Carried on TurnComplete so downstream consumers (CLI [done] line, eval harness) can distinguish natural completion from budget-enforced truncation.