← All posts

Claude Code Permission Modes, Auto-Accept and Allowlists

Claude Code permission modes explained: Manual, acceptEdits, plan, auto, dontAsk and bypass, plus settings.json allowlists, deny rules and precedence.

Claude Code permission modes decide which actions Claude can take without asking you. There are six: Manual (config value default, reads only), acceptEdits (auto-accepts file edits and common filesystem commands), plan (explore and propose, no source edits), auto (a background classifier reviews actions instead of you), dontAsk (only pre-approved tools run, everything else is denied) and bypassPermissions (no prompts, for isolated containers only). You cycle the main ones with Shift+Tab, set a starting mode with --permission-mode or defaultMode, and layer allow, ask and deny rules in settings.json on top. This guide explains each piece and how they fit together in 2026.

The six permission modes
Mode What runs without asking Best for
Manual (default) Reads only Sensitive work, unfamiliar code
acceptEdits Reads, file edits, common filesystem commands in your working directories Iterating on code you are watching
plan Reads, plus classifier-approved commands when auto mode is available Exploring before changing anything
auto Everything, with background safety checks Long tasks, prompt fatigue
dontAsk File reads in working directories and pre-approved tools; the rest is denied CI and scripts
bypassPermissions Everything Containers and VMs only
Manual

Claude asks before most actions that edit files, run shell commands or reach the network. A built-in set of read-only commands runs without a prompt. The CLI accepts manual as an alias, so claude --permission-mode manual works.

acceptEdits (auto-accept edits)

This is what most people mean by "auto-accept". File edits are approved automatically, and so are common filesystem commands: mkdir, touch, rm, rmdir, mv, cp and sed. That only applies to paths inside your working directories. Other shell commands still prompt, and writes to protected paths such as .git and .claude are never auto-approved here.

plan

Claude researches and writes a plan without editing your source. When you approve, you choose which mode to continue in. Plan first, then approve into auto or manual review, is the pattern worth building a habit around.

auto

Instead of prompting, a second model (the classifier) checks actions like shell commands and network requests against what you asked for, and blocks things that look out of scope or risky. In current versions it is the built-in starting mode for interactive terminal and VS Code sessions, provided your model supports it and your organization has not turned it off with permissions.disableAutoMode. If you set defaultMode to auto, put it in ~/.claude/settings.json: it does not take effect from a project's .claude/settings.json.

dontAsk

Anything that would prompt is denied instead. Pair it with an exact allowlist for headless runs:

claude -p "run the test suite" --permission-mode dontAsk --allowedTools "Bash(npm test)" "Read"
bypassPermissions

No prompts, including writes to protected paths. --dangerously-skip-permissions starts a session this way. Use it only inside a container, VM or sandbox where Claude cannot damage anything that matters. Deny rules still apply in this mode, and allow rules have no effect. Our Claude Code devcontainer guide shows a safe setup.

Switching and setting modes
  • Mid-session: Shift+Tab cycles Manual, accept edits, plan, then optional modes like auto. From auto, the first press goes to Manual. The status bar shows the active mode.
  • One session: claude --permission-mode plan (or any mode name).
  • Every session on your machine: set permissions.defaultMode in ~/.claude/settings.json.
  • Every session in a repo: set it in .claude/settings.json (except auto, as noted above).
  • Organization-wide: set it in managed settings, which users cannot override.

dontAsk never appears in the Shift+Tab cycle. bypassPermissions only appears if you started with a flag or setting that enables it.

Allowlists: allow, ask and deny rules

Modes set the baseline. Rules fine-tune it per tool:

{
  "permissions": {
    "allow": [
      "Bash(npm run *)",
      "Bash(git commit *)",
      "WebFetch(domain:docs.github.com)"
    ],
    "ask": [
      "Bash(git push *)"
    ],
    "deny": [
      "Read(./.env)",
      "Read(./secrets/**)"
    ]
  }
}

How the syntax works:

  • Tool alone matches every use, like Bash or Read.
  • Tool(specifier) narrows it: an exact command, a path pattern, or domain: for WebFetch.
  • * matches any text. Put it after the subcommand: Bash(git log *) allows only git log, while Bash(git *) allows every git command.
  • A trailing * also matches the bare command. Bash(ls *) matches ls and ls -la, but not lsof.
Precedence

Rules are evaluated deny first, then ask, then allow, and the first match wins. A broad deny like Bash(aws *) blocks a narrower allow like Bash(aws s3 ls). Specificity does not change that order.

Across files, managed settings beat everything, including command-line flags. When you pick "Yes, and don't ask again" on a prompt, Claude Code saves the rule to .claude/settings.local.json in the repo, which stays personal.

File Scope Commit it?
~/.claude/settings.json You, every project No
.claude/settings.json Everyone on this repo Yes
.claude/settings.local.json You, this repo No
Managed settings Whole organization Set by admins

Run /permissions to see every rule and which file it came from, and to add or remove rules mid-session. The bundled /fewer-permission-prompts skill scans your transcripts and proposes an allowlist of common read-only commands.

One important caveat: rules are enforced by Claude Code, not by the model. Writing "never push" in CLAUDE.md shapes what Claude tries, but only a deny or ask rule actually stops it. For logic that rules cannot express, a PreToolUse hook can block specific commands; see the Claude Code hooks guide.

A sensible default setup
  1. Use auto mode for day-to-day work if it is available to you, and Manual for sensitive repos.
  2. Commit a project .claude/settings.json with allow rules for your test, lint and build scripts, and deny rules for secrets.
  3. Add ask rules for anything irreversible: git push, deploy scripts, database migrations.
  4. Use plan mode before multi-file changes.
  5. Keep bypassPermissions inside containers.
Where your terminal fits

Fewer prompts does not mean zero prompts. Ask rules, plan approvals and blocked actions still stop a session and wait. If you run several sessions, the real risk is a prompt sitting unseen in a background tab. MOLTamp, a skinnable terminal shell for Claude Code, puts attention badges on tabs whose session needs you or has finished. System notifications are another route, covered in the Claude Code notifications guide. For a broader comparison of terminals for this work, see the best terminal for Claude Code.

Verdict

Pick the mode for the risk of the task, then let rules carry the routine. Allow your own scripts, ask before anything irreversible, deny secrets, and remember the order: deny, then ask, then allow. Reserve bypassPermissions for disposable environments.

FAQ

How do I make Claude Code auto-accept edits? Press Shift+Tab until the status bar shows "accept edits on", or start with claude --permission-mode acceptEdits. File edits and common filesystem commands in your working directories then run without prompts.

What is the difference between auto mode and bypassPermissions? Auto mode runs without routine prompts but has a classifier review actions and block risky or out-of-scope ones. bypassPermissions skips prompts entirely and is meant only for isolated containers and VMs.

Where do I put a Claude Code allowlist? In the permissions.allow array of a settings file: .claude/settings.json to share with your team, .claude/settings.local.json for yourself in one repo, or ~/.claude/settings.json for all projects.

Do deny rules beat allow rules? Yes. Claude Code checks deny, then ask, then allow, and the first match decides. A deny rule cannot be overridden by a more specific allow rule.

Is --dangerously-skip-permissions safe? Only in an isolated environment such as a container or VM. It starts the session in bypassPermissions mode, which skips prompts, including for writes to protected paths like .git.


A quick honest note: MOLTamp is free to use with every feature working. A one-time $10 license removes a recurring popup and unlocks community skin uploads. If you want to see which session is waiting on a permission prompt at a glance, download MOLTamp.