Quick Start
1
Enable Autonomy
2
With Configuration
Autonomy Stages
The agent automatically selects an execution stage based on task complexity:| Stage | Triggers | Behavior |
|---|---|---|
direct | Simple questions, explanations | Single response |
heuristic | File references, code blocks | Context-aware |
planned | Edit/test intent | Plan before acting |
autonomous | Multi-step, refactoring | Full iteration loop |
Configuration Options
| Option | Type | Default | Description |
|---|---|---|---|
enabled | bool | True | Whether autonomy is enabled |
max_iterations | int | 20 | Maximum iterations before stopping |
doom_loop_threshold | int | 3 | Repeated actions to trigger doom loop |
auto_escalate | bool | True | Automatically escalate complexity |
observe | bool | False | Emit observability events |
Doom Loop Detection
Prevents agents from getting stuck in repetitive failure patterns:Escalation Pipeline
When an agent can’t complete a task, it escalates:Signal Detection
Autonomy uses heuristics to detect task complexity:Use Cases
Code Refactoring
Best for: Multi-step code changesAgent plans, executes, and verifies changes autonomously.
Research Tasks
Best for: Information gatheringAgent searches, synthesizes, and reports findings.
Bug Fixing
Best for: Debugging workflowsAgent analyzes, fixes, and tests iteratively.
Content Generation
Best for: Writing and editingAgent drafts, refines, and polishes content.
Best Practices
Start with lower iteration limits
Start with lower iteration limits
Begin with lower
max_iterations and increase as needed for complex tasks.Enable doom loop detection
Enable doom loop detection
Keep
doom_loop_threshold low (3-5) to prevent runaway agents and wasted resources.Use auto_escalate for complex tasks
Use auto_escalate for complex tasks
Enable
auto_escalate to let agents escalate to stronger models when stuck.Monitor with observe mode
Monitor with observe mode
Set
observe=True during development to track agent behavior.
