Expand description
Sub-agent parallel execution for multi-file tasks.
Each SubAgent handles one file with its own Conversation + TurnRunner, running in parallel via tokio::JoinSet. This keeps each sub-agent’s context small (~3-4K tokens) so weak models perform well.
Structs§
- Diagnostic
- Per-task instrumentation snapshot. Populated as
ProgressTrackerobserves turns; surfaced onSubAgentResultso the parent agent (and operators reading datalog) can diagnose without re-deriving from raw conversation history. - Resilience
Config - Tunable knobs for the resilience layer of
SubAgentTask::execute. Wired fromConfig::subagentat the call site; defaults matchSubAgentConfig::default(). - SubAgent
Pool - Pool that runs multiple SubAgentTasks in parallel with concurrency limits.
- SubAgent
Result - Result of a sub-agent execution.
- SubAgent
Task - A single sub-agent task: one file to modify.
Enums§
- SubAgent
Failure - Structured reason a sub-agent ended in failure. Replaces the old
errors: Vec<String>so callers can match on discriminant instead of substring-matching on free text.