Salta ai contenuti
← Torna al sito
Soleri | Docs

YOLO Mode

Questi contenuti non sono ancora disponibili nella tua lingua.

YOLO mode lets your agent execute commands without asking for permission at each step. It skips Claude Code’s built-in approval prompts while installing safety hooks that intercept genuinely destructive operations.

When you launch YOLO mode, two things happen:

  1. Approval gates are skipped — Claude Code runs with --dangerously-skip-permissions, so the agent executes shell commands, file writes, and tool calls without pausing for confirmation.
  2. Safety hooks are installed — The yolo-safety hook pack intercepts destructive commands before they execute.

The result: fast, autonomous execution with a safety net.

Terminal window
npx @soleri/cli yolo

This installs the yolo-safety hook pack (if not already installed) and launches Claude Code with permissions skipped.

FlagEffect
--dry-runShow what would happen without launching Claude
--projectInstall safety hooks to project .claude/ instead of ~/.claude/
Terminal window
npx @soleri/cli yolo --dry-run

This verifies the safety pack is available, installs hooks if needed, and prints the command that would run — without actually launching Claude.

The yolo-safety hook pack composes the safety pack (see Customizing Your Agent for how hooks work), which installs an anti-deletion hook that runs as a PreToolUse lifecycle hook on every Bash command. It intercepts:

Blocked commandWhy
rm -rfPrevents accidental file/directory deletion
git push --forcePrevents force-pushing over remote history
git reset --hardPrevents discarding uncommitted work
git clean -fPrevents removing untracked files
DROP TABLE / DROP DATABASEPrevents database destruction
docker rmPrevents container removal

When a destructive command is detected, the hook blocks execution and warns the agent. Files are staged before deletion when possible.

Good fit:

  • Rapid prototyping where you’re iterating fast
  • Solo work on a personal branch
  • Batch operations like migrations or refactors where you trust the agent’s judgment
  • Environments with version control as a safety net (you can always git checkout)

Not recommended:

  • Production environments
  • Shared branches where mistakes affect others
  • Tasks involving secrets, credentials, or infrastructure
  • When you want to review each step before it happens

YOLO mode only affects Claude Code’s permission system — it does not change the agent’s planning behavior. The agent still creates plans, searches the vault, and captures knowledge. The difference is that shell commands and file operations execute without the “allow/deny” prompt.

If you also want the agent to skip plan approval gates (the two-gate approve_plan / plan_split cycle), use the YOLO mode skill in conversation:

You: “Go YOLO on this task”

Agent: YOLO mode activated. Skipping approval gates, safety invariants preserved.

The skill activates autonomous execution at the agent level, while soleri yolo activates it at the Claude Code level. They complement each other.


Next: Validation Loops — let the agent iterate toward quality targets automatically. See also Customizing Your Agent for hooks and governance, and the CLI Reference for the full soleri yolo command details.