Autonomous Mode
Enable autonomous iteration for complex tasks.
What is Autonomous Mode?
Autonomous mode allows Soothe to work independently on complex tasks that require iterative refinement. Instead of stopping after one response, Soothe will:
- Create a plan for the goal
- Execute the plan step-by-step
- Reflect on results after each iteration
- Adjust the plan if needed
- Continue until the goal is achieved or iteration limit is reached
When to Use Autonomous Mode
Use autonomous mode for tasks that:
- Require iterative refinement based on results
- Involve multi-phase research where findings inform next steps
- Need long-running workflows without manual intervention
- Decompose into sub-goals that emerge during execution
Examples:
- “Optimize the simulation parameters across the search space”
- “Research and document all API endpoints in this codebase”
- “Build a comprehensive test suite with maximum coverage”
- “Analyze and improve the performance of this application”
How to Enable
TUI Command
# In TUI
/autopilot Optimize the simulation parameters
# With custom iteration limit
/autopilot 15 Research and improve model performance
Autopilot Command
# Dedicated autopilot command
soothe autopilot run "Research quantum error correction advances"
# The --max-iterations flag is accepted but ignored.
# Configure the iteration limit via daemon config: agent.autopilot.max_iterations
soothe autopilot run "Build a web scraper"
Progress Events
During autonomous execution, you’ll see progress events:
soothe.cognition.strange_loop.started- StrangeLoop execution begansoothe.cognition.strange_loop.completed- StrangeLoop execution finishedsoothe.cognition.goal.created- New goal createdsoothe.cognition.goal.completed- Goal achievedsoothe.cognition.goal.failed- Goal failed
Configuration
Set defaults in your configuration file:
agent:
autopilot:
# Enable autopilot scheduling loop (starts on daemon startup for 24/7 operation)
enabled: false
# Maximum iterations per autopilot thread (default: 10)
max_iterations: 10
# Maximum retries per goal on failure (default: 2)
max_retries: 2
# Wall-clock budget per dispatched goal (default: 1209600 = 14 days)
goal_deadline_seconds: 1209600
Set goal_deadline_seconds: null to disable autopilot deadline enforcement (not recommended for unattended 24/7 runs).
Environment Variables
export SOOTHE_AGENT_AUTOPILOT_ENABLED=true
export SOOTHE_AGENT_AUTOPILOT_MAX_ITERATIONS=15
export SOOTHE_AGENT_AUTOPILOT_MAX_RETRIES=3
export SOOTHE_AGENT__AUTOPILOT__GOAL_DEADLINE_SECONDS=1209600
How It Works
Iteration Loop
- Plan Creation: Soothe creates a plan for your goal
- Step Execution: Each plan step is executed
- Reflection: Results are analyzed
- Plan Adjustment: Plan is updated if needed
- Continuation: Loop continues until goal achieved or limit reached
Stopping Conditions
Autonomous mode stops when:
- The goal is achieved
- Maximum iterations reached
- Wall-clock deadline exceeded (
goal_deadline_seconds, default 14 days) - User cancels with
/cancelorCtrl+C - Critical error occurs
Examples
Optimization Task
soothe autopilot run "Optimize the database queries for better performance"
Soothe will:
- Analyze current query performance
- Identify bottlenecks
- Optimize queries
- Measure improvements
- Iterate until satisfied
Research Task
soothe autopilot run "Research and document the best practices for REST API design"
Soothe will:
- Research REST API best practices
- Gather multiple sources
- Synthesize findings
- Create documentation
- Refine based on gaps
Development Task
soothe autopilot run "Build a comprehensive test suite for the authentication module"
Soothe will:
- Analyze the authentication module
- Identify test scenarios
- Write tests
- Run tests and check coverage
- Add more tests iteratively
Monitoring Progress
TUI
In the TUI, you’ll see:
- Current iteration number
- Active goals
- Plan progress
- Subagent activity
- Tool usage
Headless Mode
With --format jsonl, each progress event is a JSON object:
{"type": "event", "event_type": "soothe.cognition.strange_loop.started", "data": {"iteration": 1}}
{"type": "event", "event_type": "soothe.cognition.goal.created", "data": {"goal_id": "goal_1", "description": "..." }}
Best Practices
- Clear Goals: Provide specific, measurable objectives
- Reasonable Limits: Start with default 10 iterations
- Monitor Progress: Check in on long-running tasks
- Cancel if Needed: Use
/cancelorCtrl+Cto stop
Related Guides
- CLI Reference - Autonomous command options
- TUI Guide -
/autopilotslash command - Configuration Guide - Autonomous mode settings