Quick Start
Autonomy Levels
How It Works
| Phase | What happens |
|---|---|
| 1. Execute | Agent takes action toward the goal |
| 2. Safety check | Doom loop tracker monitors for repeated identical actions |
| 3. Escalate | If stuck, agent asks user for guidance instead of looping |
| 4. Complete | Iterative mode detects task completion signal |
Configuration Options
Full list of options, types, and defaults —
AutonomyConfig| Option | Type | Default | Description |
|---|---|---|---|
level | str | "suggest" | "suggest", "auto_edit", or "full_auto" |
max_iterations | int | 20 | Max iterations before stopping |
doom_loop_threshold | int | 3 | Repeated actions before doom loop detection |
auto_escalate | bool | True | Automatically escalate when stuck |
completion_promise | str | None | None | Signal text that marks task completion |
Common Patterns
Pattern 1 — Auto-edit mode for coding tasks
Pattern 2 — Full-auto iterative mode
Best Practices
Start with suggest level
Start with suggest level
Start with
autonomy=True (level suggest) to see what the agent proposes before giving it permission to edit files or run in a full loop. Graduate to auto_edit or full_auto when you trust the agent’s behavior.Set doom_loop_threshold conservatively
Set doom_loop_threshold conservatively
The default threshold of 3 means 3 identical actions trigger escalation. Lower this to 2 for high-stakes tasks, or raise it to 5 for tasks where retrying the same action is expected behavior (like polling).
Use completion_promise for iterative mode
Use completion_promise for iterative mode
In
full_auto mode, the agent loops until it detects completion. Set completion_promise="TASK_COMPLETE" and instruct the agent to output this signal when done, giving you clean loop termination.Related
Autonomy Loop — deep dive into iterative autonomy mode
Planning — plan before acting on complex requests

