The six modes
| Mode | What runs without asking | Best for |
|---|---|---|
default (Manual) | Reads only | Reviewing every action, sensitive work |
acceptEdits | Reads, file edits, and common filesystem commands like mkdir, mv, cp | Iterating on code you are reviewing |
plan | Reads and read-only shell commands; no edits to your source | Exploring and planning before changes |
auto | Routine actions; a background classifier checks shell commands and network requests against your request | Everyday work on trusted projects |
dontAsk | Only what needs no approval or is pre-allowed; everything else is denied | Unattended runs that must never prompt |
bypassPermissions | Everything except a short list of actions no mode auto-approves | Isolated containers and VMs |
Switch modes in a running session with Shift+Tab in the CLI, the mode indicator in VS Code, or the mode selector in the Desktop app. To change the mode sessions start in, set defaultMode in your settings file.
Auto mode is the new default
With Claude Code v2.1.283 or later, auto mode is the built-in starting mode for interactive terminal and VS Code sessions. Instead of asking you, a second model reviews each action before it runs and checks that it aligns with what you asked for. Permission prompts now offer a third option, Yes, and switch to auto mode, on many prompts. Deny and ask rules in your settings still hold in auto mode, which is how teams keep guardrails on.
When to use --dangerously-skip-permissions
The flag starts a session in bypassPermissions mode. Claude Code skips permission prompts, including writes to protected paths such as .git and .claude. The docs are blunt about it: only use this mode in isolated environments like containers or VMs where Claude Code can't cause damage.
It still earns its place in a few situations:
- CI and automation where nobody is there to answer a prompt and the environment is disposable.
- Throwaway sandboxes: a container, a VM, a scratch clone.
- Batch work over many files in a repository you fully control, with a review of the diff afterwards.
For everyday work on a real machine, auto mode gets you most of the speed with a classifier still watching. If your organisation wants to rule the flag out entirely, set permissions.disableBypassPermissionsMode to "disable" in managed settings.
Handy rules
- Permanent approvals from prompts are saved to
.claude/settings.local.jsonat the repository root and apply to worktrees and subdirectories. - A built-in set of read-only commands (
ls,cat,grep,find, read-onlygitand more) never prompts in any mode. - Deny and ask rules match nested subcommands too, so
Bash(git clean *)still prompts forcd /tmp && git clean -f.
Need the command itself? It is one click away on the AGCMD homepage. Sources: the Claude Code docs on permission modes and permissions.