AGCMD
AI Agent Commands

Claude Code permission modes: Manual, Accept Edits, Plan, Auto, and skip permissions

Auto mode is now the default. Before you reach for --dangerously-skip-permissions, here is what each mode actually does.

The six modes

ModeWhat runs without askingBest for
default (Manual)Reads onlyReviewing every action, sensitive work
acceptEditsReads, file edits, and common filesystem commands like mkdir, mv, cpIterating on code you are reviewing
planReads and read-only shell commands; no edits to your sourceExploring and planning before changes
autoRoutine actions; a background classifier checks shell commands and network requests against your requestEveryday work on trusted projects
dontAskOnly what needs no approval or is pre-allowed; everything else is deniedUnattended runs that must never prompt
bypassPermissionsEverything except a short list of actions no mode auto-approvesIsolated 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.json at the repository root and apply to worktrees and subdirectories.
  • A built-in set of read-only commands (ls, cat, grep, find, read-only git and more) never prompts in any mode.
  • Deny and ask rules match nested subcommands too, so Bash(git clean *) still prompts for cd /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.