A permission mode decides what Claude Code does without asking you first: editing files, running shell commands, reaching the network. Picking the wrong one either buries you in approval prompts or gives Claude more freedom than the task deserves. Most of my sessions run in auto mode, and I switch out of it when I'm working on a sensitive task or when I only want a plan.

The six modes at a glance

ModeConfig valueRuns without asking
ManualdefaultFile reads and built-in read-only commands
Accept editsacceptEditsReads, file edits and mkdir, touch, rm, rmdir, mv, cp, sed inside your working directory
PlanplanReads and exploring commands. No edits until you approve the plan
AutoautoEverything, with a classifier model reviewing actions first
Don't askdontAskReads plus whatever your allow rules list. Anything else is denied, not asked
Bypass permissionsbypassPermissionsEverything, with almost no checks

Manual is called default in settings, and the CLI also accepts manual as an alias.

Auto is now the default

Since v2.1.283, interactive terminal and VS Code sessions start in auto unless you set something else. Manual is still the default for claude -p and the Agent SDK. In those runs, any call that needs approval is denied unless an allow rule or hook approves it.

Auto needs a supported model: Opus or Sonnet 4.6 or later, Haiku 5.5, or a Fable model on the Anthropic API. Bedrock, Google Cloud and Foundry need newer models. Your organization can also turn it off. When auto isn't available, the session quietly starts in Manual.

Pros and cons of each mode

ModeProsCons
ManualYou see every edit and command before it runsPrompt fatigue. Long tasks stall while you're away
Accept editsEdits flow, and you review with git diff afterwardsOther shell commands, like npm test, still prompt. It can run rm in your project
PlanSafe exploration of unfamiliar code. You can edit the plan before Claude startsNothing gets built until you approve
AutoLong tasks run without you. Blocks curl | bash, force pushes, production deploys and secret leaks by defaultIt isn't a guarantee. Each check adds a classifier call, so it costs a bit more and runs a bit slower
Don't askNever hangs waiting for input, and does only what you listedYou have to know the allowlist up front
BypassAlmost no interruptionsNo protection against prompt injection or mistakes. Containers and VMs only

A few things prompt or get denied in every mode, including bypass: explicit ask rules, AskUserQuestion, and removals of critical paths like rm -rf ~. Deny rules block in every mode too.

Switch modes during a session

WhereHow
Terminal and JetBrainsShift+Tab cycles auto → Manual → acceptEdits → plan → back to auto
VS CodeClick the mode indicator under the prompt box
Desktop appMode selector under the prompt box in the Code tab
claude.ai/codeMode dropdown under the prompt. Cloud sessions offer Accept edits, Plan and Auto
At launchclaude --permission-mode plan

The status bar shows the active mode, for example ⏸ plan mode on or ⏵⏵ auto mode on.

Two modes aren't in the Shift+Tab cycle. dontAsk only comes from the flag. bypassPermissions joins the cycle only if you launched with it enabled, because you can't switch into it mid-session.

Set your default mode

Add defaultMode to a settings file:

PROMPT / COPY-PASTE
{
  "permissions": {
    "defaultMode": "acceptEdits"
  }
}
ScopeFile
Every session on your machine~/.claude/settings.json
One project.claude/settings.json in the repo
Your whole organizationManaged settings
One session--permission-mode <mode> flag, which beats all of the above

Gotcha: auto and bypassPermissions don't take effect from a project's .claude/settings.json or .claude/settings.local.json. That stops a cloned repo from switching off your prompts. Put them in ~/.claude/settings.json instead. In VS Code, use the claudeCode.initialPermissionMode setting, which accepts every mode except auto.

Shortcuts and gotchas

  • /plan <task> puts a single prompt in plan mode without changing your mode.
  • Ctrl+G opens Claude's proposed plan in your editor so you can change it before approving.
  • Leaving plan mode at the approval prompt: press Esc first. Shift+Tab there approves the plan.
  • "Yes, and switch to auto mode" shows up on Bash prompts in Manual and Accept edits. It approves the command and switches modes in one step.
  • State boundaries in plain words. In auto mode, "don't push until I review" makes the classifier block pushes. Those boundaries can be lost when the conversation is compacted, so use a deny rule for anything that must always hold.
  • Repeated blocks pause auto. After 3 blocks in a row or 20 in a session, Claude Code goes back to prompting. Blocked actions appear in /permissions under Recently blocked, where you can allow a retry.
  • --allow-dangerously-skip-permissions adds bypass to the cycle without turning it on, so you can drop into it later.
  • Bypass refuses to run as root or under sudo on macOS and Linux. Use a dev container that runs as a non-root user.
  • Scripts and CI: claude -p "run the tests" --permission-mode dontAsk --allowedTools "Bash(npm test)" "Read" runs exactly what you list and nothing else.

Pick a mode

Your situationMode
Sensitive code, production config, or a repo you don't trust yetManual
You're watching and want edits to flowAccept edits
Big or unfamiliar changePlan, then approve into Auto
Long task you trust the direction ofAuto
CI or a scheduled scriptDon't ask with an explicit allowlist
A throwaway container with no access to anything you care aboutBypass

Start here: run /permissions and add allow rules for the safe commands you approve every day, then add deny rules for the ones you never want to run, like Bash(git push *). Rules work on top of every mode, so you'll see fewer prompts in Manual and get firmer limits in Auto.

Go deeper: Permission modes docs · Permission rules · Claude Code commands I use on repeat · How to Start a Big Project in Claude Code