Guides

Claude Code auto mode and permissions: allow and deny rules, or skip the prompts?

Claude Code asks before it edits files, runs shell commands or fetches pages, unless a mode or a rule says otherwise. You have four ways to deal with those prompts: answer them one by one, let auto mode review each action, approve safe commands ahead of time with allow rules and block the dangerous ones with deny rules, or skip the checks, which Anthropic recommends only in containers and virtual machines. Since late September 2026, interactive sessions start in auto mode on every plan. For most people the best setup is auto mode plus deny rules for anything that can’t be undone. Below: why clicking “Yes” isn’t checking, each mode, how the rules work, and the setup I use.

As of Claude Code v2.1.332, released November 25, 2026. Modes and defaults change often: /permissions shows the rules that apply to you and where each one comes from.

Why clicking “Yes” isn’t checking

Anthropic’s engineers found that people accept 93% of permission prompts anyway. I’m in that 93%. After the tenth prompt you stop reading and just click. The agent waits for you, and you don’t really check anything.

In a test with 1,053 paid testers, Anthropic swapped one prompt per session for a clearly dangerous command: “human review caught just 13.6% of dangerous commands, while auto mode caught 89%.” People caught about 17% early in a session and about 5% after fifty prompts. It was a test environment, not their own code, but the direction is clear: the more you approve, the less you see.

It’s the guard at a gate who waves every car through after the first hour. Not because he’s lazy. Almost every car was fine.

The permission modes

ModeWhat it doesWhen to use it
Manual (default)Asks before most edits, shell commands and network requestsWhen you want to see every step, or auto mode isn’t available
acceptEditsFile edits and common file commands (mkdir, touch, mv, cp) in the working folders go through; the rest asksSmall changes you’ll review in the diff anyway
planReads and runs read-only commands; no edits until you approve a planBefore a big change (plan mode)
autoA separate model checks each action before it runs; routine ones go through, risky ones are blockedMost work; the default for interactive sessions
dontAskDenies anything that would prompt; only allow-listed tools runScripts and CI
bypassPermissionsSkips prompts and most safety checksIsolated containers and virtual machines only

Shift+Tab switches modes during a session: from auto, the first press goes to Manual, then Accept edits, then Plan. To start in a mode, use claude --permission-mode plan and so on. To change the default, set permissions.defaultMode in ~/.claude/settings.json: a project’s settings files can’t switch you into auto or bypass mode.

Auto mode: what it checks and what it doesn’t

In auto mode a separate classifier model reviews each action before it runs. By default it blocks things like piping a script from the internet into a shell, sending sensitive data out, deploys and migrations in production, force push, git reset --hard, mass deletion in the cloud and terraform destroy. A blocked action doesn’t run.

Who has it. All plans, with a supported model. On Team and Enterprise, admins can turn it off. Since late September 2026 it’s the start mode for interactive sessions in the terminal and VS Code on every plan and provider; claude -p and Agent SDK runs still start in Manual. If you had set your own default mode before, Claude Code keeps it.

Turning it off. For one session, Shift+Tab or --permission-mode default. For good, "defaultMode": "default" under permissions in ~/.claude/settings.json. To remove it completely, "disableAutoMode": "disable"; in a company’s managed settings, users can’t override it.

Allow, ask and deny rules

Rules are three lists in a settings file. allow runs without asking, ask always asks, deny never runs. A rule is a tool name, or a tool with what it may touch:

.claude/settings.json

{
  "permissions": {
    "allow": [
      "Bash(npm test)",
      "Bash(git status)",
      "Bash(git diff *)"
    ],
    "ask": [
      "Bash(git commit *)"
    ],
    "deny": [
      "Bash(git push *)",
      "Read(./.env)",
      "Edit(/migrations/**)"
    ]
  }
}

/fewer-permission-prompts

A skill that comes with Claude Code. It looks through your past sessions for read-only shell and MCP calls you run often and adds them as an allowlist to the project’s .claude/settings.json. It appeared in version 2.1.111 in April 2026 as /less-permission-prompts; the docs now call it /fewer-permission-prompts. Read what it adds before you commit it: an allow rule in the project file works for everyone who opens the project.

Should you skip permissions?

--dangerously-skip-permissions, or bypassPermissions mode, skips prompts and most safety checks. Deny and ask rules still apply; allow rules stop mattering. Anthropic’s docs say to use it only in isolated environments, such as containers, virtual machines and dev containers without internet access, and warn that it gives no protection against prompt injection. On macOS and Linux it refuses to run as root, and a company can switch it off with disableBypassPermissionsMode in managed settings.

Personally, I don’t use it on my Mac. Auto mode gives most of the speed with a second pair of eyes.

My setup: Claude decides what can be undone

My rule is simple. Anything that can be undone, Claude decides on its own and writes down. Anything that can’t, it asks me about. This is the prompt I give it at the start of a task:

Stop waiting for my yes.
If the answer is in the code, find it there.
If a choice can be undone, make it yourself: take the simpler option and write one line in DECISIONS.md, what you picked and why.
Ask me only about what can't be undone: deleting data, pushing, paying, writing to anyone.
When you're done, show me DECISIONS.md.

The same irreversible things go into deny rules too, because a rule in a prompt can get lost when Claude compacts the chat. At the end I read one file instead of fifty prompts in the middle.

Where Meowdoro fits

We built Meowdoro, a focus timer around the MacBook notch for people who work with Claude Code and Codex. When a session stops at a permission prompt, the notch shows which one and what it’s asking, and a click takes you to it. During a break it shows nothing about agents, and the prompt waits for you. Its hooks only listen: they never approve a permission for you. Try it and tell us what’s missing.

Questions

How do I stop Claude Code from asking for permission all the time?

Use auto mode: Shift+Tab, or nothing at all, since it’s the default for interactive sessions. Add allow rules for safe commands you run often, or let /fewer-permission-prompts suggest them. Skipping all checks with --dangerously-skip-permissions is for containers and virtual machines.

Is auto mode safe?

Safer than clicking “Yes” on everything, not a guarantee. In Anthropic’s test it caught 89% of planted dangerous commands, against 13.6% for people; on their own set of real overeager actions it missed 17%. Add deny rules for whatever can’t be undone.

What does “Yes, and don’t ask again” do?

It saves an allow rule to .claude/settings.local.json in the project. If the command had a password or a key in it, the rule keeps it there too.

Does a deny rule override an allow rule?

Yes. Deny rules are checked first and win across all settings files, even in bypass mode.

Why does Claude Code still ask me in auto mode?

Either auto mode paused after 3 blocks in a row or 20 in total, or the session isn’t in auto mode: claude -p and Agent SDK runs start in Manual, and an unsupported model falls back to it too. /permissions shows what applies.

Where are Claude Code permission rules stored?

In ~/.claude/settings.json for you, .claude/settings.json for the project, .claude/settings.local.json for you in that project, and in managed settings if your company sets them.

How modes, rules, auto mode, bypass mode, hooks and the bundled skills work: the Claude Code documentation on permission modes, permissions, settings, the CLI reference, commands and hooks, and the changelog up to v2.1.332, read on November 26, 2026. The 93% and the 17% miss rate: Anthropic’s engineering post on auto mode, March 25, 2026. The test with 1,053 testers: Anthropic’s blog post on auto mode becoming the default, August 7, 2026, updated October 22, 2026. The prompt is the one from our Instagram reel.