Running Locus in full-auto mode with Docker sandbox isolation, safety controls, and resumable execution.
Auto-approval mode is the high-automation operating style in Locus:
Provider execution runs in full-auto mode (claude --dangerously-skip-permissions or codex exec --full-auto)
Issue lifecycle labels are auto-managed (agent.autoLabel)
PRs are auto-created after successful execution (agent.autoPR)
Interrupted runs resume from saved state (locus run --resume)
Sandboxing: Safe Full-Auto Execution
Full-auto mode gives AI agents unrestricted access to your codebase. Docker sandbox isolation is the key safety mechanism that makes this safe for teams.
What Sandboxing Protects
When sandboxed:
AI agents execute inside an isolated Docker container
Only files allowed by .sandboxignore rules are visible to the agent
.env, *.pem, *.key, cloud credential directories are excluded by default
Agents cannot access host-level paths, credentials, or system resources
Running with Required Sandbox
For maximum safety, require sandboxing so execution fails if Docker is unavailable:
This is recommended for CI environments and team workflows where accidental unsandboxed execution should be prevented.
Sandbox Modes
Mode
Flag
Behavior
Auto (default)
(no flag)
Use sandbox if available, warn and fall back if not
# Setup
locus sprint active "Sprint 8"
locus config set agent.autoLabel true
locus config set agent.autoPR true
# Run with sandbox enforcement
locus run --sandbox=require
# If interrupted or failed
locus logs --level error --lines 200
locus run --resume
# Setup
locus config set agent.maxParallel 2
# Run independent issues in parallel
locus run 141 142 143 144
locus status
# Re-run only failed issues
locus run 142 144
locus config set agent.autoPR false
locus run --dry-run # Preview first
locus run # Execute
# Review changes manually, open PRs yourself
gh pr list --label agent:managed --state open
gh pr close <pr-number> --comment "Rolling back to manual mode"