Skip to main content
Control how autonomous agents operate, including autonomy levels, doom-loop detection, memory integration, and completion signals.

Quick Start

1

Simple Enable

Enable autonomy with defaults:
2

With Configuration

Configure autonomy behavior:
3

With Memory Integration

Autonomy loops auto-save sessions between iterations when memory is enabled:

Configuration Options

sandbox= on AutonomyConfig is not exposed. AutonomyConfig carries a sandbox: Optional[SandboxConfig] field for forward compatibility; nothing currently reads it and no sandbox is auto-enabled at any autonomy level. Pass Agent(sandbox=…) to enable the explicit agent.execute_code() API; to isolate a whole workflow in a real container, use AgentFlow(run_on=…). See Placement.

Autonomy Levels


Common Patterns

Pattern 1: Safe Autonomous Agent

Pattern 2: Full Autonomy with Completion Promise

Pattern 3: Multi-Agent Autonomy Propagation


Best Practices

Begin with suggest level and increase autonomy as you gain confidence.
Keep doom_loop_threshold at 3-5 to prevent agents from repeating the same action.
Combine autonomy=True with memory=True and auto_save to persist progress between iterations.
Use completion_promise for structured completion signals instead of relying on keyword detection.

Autonomy Loop

Learn about the autonomy loop

Ralph Loops

Autonomous execution pattern