Auto Permission Mode
Claude CodeAuto-judge tool usage for long autonomous work sessions
Auto Permission Mode is a mode where Claude Code judges tool usage by itself. Normally, human approval is required for every file edit or command execution, but in auto mode, Claude judges safety and proceeds automatically.
How to Run
claude --permission-mode auto
Advantages
- ✓Long-running tasks โ Handle complex tasks all at once without waiting for approvals
- ✓Autonomous operation โ Claude directly decides and executes file reads/writes, test runs, builds, and more
- ✓Optimal for batch tasks โ Bulk file edits, refactoring, test generation, and more
--permission-mode vs --dangerously-skip-permissions
--permission-mode auto lets Claude judge the safety of tool usage and decide whether to allow or deny it. If deemed dangerous, it will still request approval โ safety guardrails remain in place.
--dangerously-skip-permissions does exactly what its name implies โ it completely bypasses all permission checks. Any tool will be executed unconditionally, exposing you to risks such as prompt injection. It is recommended only for automated environments like CI/CD.
| Mode | Description | Safety |
|---|---|---|
default | Human approval required every time | Safest |
plan | Read tools are automatic, write tools require approval | Safe |
auto | Claude judges safety and proceeds automatically | Recommended |
--dangerously-skip-permissions | Ignores all permission checks | CI/CD only |
Cautions
- ⚠Recommended for use only in trusted projects
- ⚠Using under Git version control makes it easy to review and revert changes
- ⚠You can switch back to previous behavior with
--permission-mode planor--permission-mode default
How to Use
Run with claude --permission-mode auto
Claude auto-judges tool usage โ permission prompts drastically reduced
Continue complex work autonomously for long periods without interruption
Use under Git management, and review changes with git diff after completion
Tags
Source
Anthropic