Lesson completed!
-

Auto Mode (YOLO)

Auto Mode (YOLO)

Auto Mode lets Claude work autonomously without asking for approval at each step. It's called "YOLO" mode for a reason—use it wisely.

Enabling Auto Mode

Press Shift+Tab during a session to toggle Auto Mode, or start with:

claude --auto

For full autonomy (including potentially dangerous operations):

claude --dangerously-skip-permissions

What Changes in Auto Mode

AspectDefault ModeAuto Mode
File editsAsks permissionAuto-applies
Command executionAsks permissionAuto-runs
File creationAsks permissionAuto-creates
Git operationsAsks permissionAuto-commits

Safety Guardrails

Even in Auto Mode, Claude has built-in safety measures:

  • Won't delete important system files
  • Won't push to protected branches without confirmation
  • Won't run obviously destructive commands
  • Respects .gitignore patterns

When to Use Auto Mode

Good for:

  • Scaffolding new projects
  • Refactoring across many files
  • Running test suites
  • Generating boilerplate

Avoid for:

  • Production deployments
  • Database migrations
  • Sensitive data handling
  • Unfamiliar codebases

Pro Tips

Set Up a Safety Net

Always work in a Git branch:

git checkout -b feature/claude-changes
claude --auto
# Review changes before merging

Use with CI/CD

Auto Mode shines in CI pipelines where changes are automatically tested:

- name: Apply Claude suggestions
  run: claude --auto "Fix all TypeScript errors"
 
- name: Run tests
  run: npm test

Time-box Sessions

Don't leave Auto Mode running indefinitely:

> Fix all linting errors in src/
> Then stop and show me a summary

Next Steps

In the next lesson, you'll learn about Plan Mode for complex tasks that require strategic thinking.