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 --autoFor full autonomy (including potentially dangerous operations):
claude --dangerously-skip-permissionsWhat Changes in Auto Mode
| Aspect | Default Mode | Auto Mode |
|---|---|---|
| File edits | Asks permission | Auto-applies |
| Command execution | Asks permission | Auto-runs |
| File creation | Asks permission | Auto-creates |
| Git operations | Asks permission | Auto-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
.gitignorepatterns
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 mergingUse 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 testTime-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.