Skip to main content

Module agent

Module agent 

Source
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§

AgentClient
Cloneable sender side for UI/runtime code to communicate with the agent.
AgentHandle
Handle for the UI to communicate with the agent.
AgentLoop
The agent loop state.
AgentRuntimeFactory
SubAgentTaskInfo
One descriptor per sub-agent in a SubAgentDispatchStart batch. Mirrored 1:1 with the tasks vector built in parallel_edit::execute so callers can reuse the index across the lifecycle events.

Enums§

AgentCommand
Commands sent FROM the UI TO the agent loop.
AgentEvent
Events sent FROM the agent loop TO the UI.
AgentPhase
The current phase of the agent (for UI display).
TurnStopReason
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.