Agent Loop
Understand YeePilot's staged agent loop, runtime controls, and bounded recovery behavior for complex tasks.
What It Is
YeePilot runs an agentic loop for complex tasks instead of single-shot command generation.
The loop is stage-driven:
discoverplaneditand/orexecuteverifyreviewfinalize
A clarify stage is inserted when intent is ambiguous.
How to Trigger It
The default interactive runtime is already agent mode.
Use:
/plan <task>when you want explicit plan-first behavior for a specific task.
Or keep plan-first globally in a session:
/plan onRuntime Controls
Autonomy profile
/autonomy status
/autonomy guarded
/autonomy strict_reviewProfiles: high, guarded, strict_review, ultra.
Thinking depth
/think on
/think low
/think medium
/think highToken behavior
/tokenmode normal
/tokenmode saverRecovery System
When verification fails, YeePilot can run bounded recovery cycles with configurable budgets.
Key recovery areas include:
- patch conflicts
- build breakage
- test regressions
- failed verification steps
Related config:
ai.recovery.*ai.agentic.*
This allows retry/fix behavior while preventing unbounded loops.
Verification Expectations
For mutation tasks, verification should produce concrete evidence (tests, build, health checks, etc.).
YeePilot tracks this evidence and uses it for final readiness.
Best Practice
For important changes:
/plan <task>- keep autonomy at
guardedorstrict_review - require explicit verification artifacts before finalize
- export session for traceability (
/export)