Versus · AI tools
Claude Code auto mode vs bypass permissions
- Last checked
- 2 sources, linked below
- By the vectaai team
We read every plan page. Paid links are labelled. Money never changes a ranking. How we pick.
Verdict Our pick
The bar guide has a call.

- Pick bypass only inside a throwaway container or VM with no internet, as Anthropic's docs tell you to.
Compared here
- 01Auto mode
- 02Bypass permissions
Short answer
Both stop Claude Code from asking you before every command. The difference is who is watching. Auto mode sends each risky action to a separate classifier model that blocks things like force pushes, production deploys and piping downloads into bash. Bypass permissions ("--dangerously-skip-permissions") turns off prompts and safety checks entirely, including writes to protected paths, and Anthropic says it "offers no protection against prompt injection or unintended actions."
Pick auto mode for everyday long tasks on your own machine; with Claude Code v2.1.283 or later it is already the starting mode in the terminal and VS Code. Pick bypass only inside a throwaway container or VM with no internet, as Anthropic's docs tell you to. Keep manual mode for production infrastructure: Anthropic's own numbers show the classifier still missed 17% of real overeager actions.
At a glance
| Auto mode | Bypass permissions | |
|---|---|---|
| Config value | auto | bypassPermissions (flag: --dangerously-skip-permissions) |
| Prompts you | Rarely; resumes prompting after 3 blocks in a row or 20 in total | No, except explicit ask rules, AskUserQuestion and critical-path deletes |
| Safety check before each action | Yes, a classifier model reviews risky actions | No |
| Writes to .git, .bashrc, .claude and other protected paths | Classifier decides | Allowed |
| Your allow rules | Narrow ones kept; broad ones like Bash(*) dropped | No effect |
| Deny rules | Still block | Still block |
| Prompt injection protection | Input probe plus classifier | None, per the docs |
| Where Anthropic says to use it | Long tasks, reducing prompt fatigue | Isolated containers and VMs only |
| Available in cloud sessions (web, mobile) | Yes | No |
| Runs as root | Not restricted in the docs we read | Refuses on Linux and macOS outside a recognized sandbox |
Picture the old way. Claude Code wants to run npm test. You press yes. It wants to edit a file. Yes. It wants to list a folder. Yes. Forty yeses later you are approving things without reading them, which is worse than not being asked at all. Anthropic measured it: users accept 93% of manual prompts anyway, according to its engineering post on auto mode.
Both auto mode and bypass permissions exist to end that. One puts a bouncer on the door. The other takes the door off.
Money note: nobody pays us for this page. Anthropic has no affiliate deal with us; display ads may show around it. We did not run a red team against either mode. We read the permission modes docs and Anthropic's engineering post on 3 December 2026 and quote them.
The six modes in one breath
Claude Code has six permission modes, per the docs:
- default (Manual): asks for most things.
- acceptEdits: file edits and common file commands like mkdir and mv run without asking.
- plan: reads and plans, does not change things until you approve.
- auto: "Everything, with background safety checks."
- dontAsk: anything that would prompt is denied. For locked-down CI and scripts.
- bypassPermissions: "Everything." For "Isolated containers and VMs only."
Shift+Tab cycles modes during a terminal session. VS Code calls them Manual, Edit automatically, Plan, Auto and Bypass permissions in the mode indicator.
How auto mode decides
The docs describe auto mode as "A separate classifier model reviews actions before they run and blocks the ones it judges risky." The order of play:
- Your own allow, ask and deny rules settle an action first, except writes to protected paths, which go to the classifier.
- Reads and edits inside your working directory are approved straight away.
- Everything else goes to the classifier.
- If it blocks, Claude gets told why and tries another way.
One detail people miss: entering auto mode drops broad allow rules like a blanket Bash(*). Narrow ones like Bash(npm test) stay.
Blocked by default, per the docs: downloading and running code (curl | bash), sending sensitive data to outside endpoints, production deploys and migrations, mass deletes on cloud storage, force push, git reset --hard, terraform destroy, and destroying files that existed before the session.
Allowed by default: local file work in your directory, installing dependencies already declared in your lock files, read-only web requests, and pushing to branches of the repo you are in (with exceptions for deploy branches).
The engineering post adds the plumbing. A server-side probe scans tool outputs for prompt injection. A transcript classifier then reviews actions in two stages: a fast filter told to err toward blocking, and a slower reasoning stage that runs only on flagged actions. The classifier sees your messages and Claude's tool calls but not Claude's own prose or tool results. Anthropic calls that "reasoning-blind by design", so Claude cannot talk its way past it.
The docs name Sonnet 5 as the default classifier model now; the earlier engineering post described Sonnet 4.6. The model can be changed with CLAUDE_CODE_AUTO_MODE_MODEL from v2.1.302.
The honest numbers
Anthropic published its own test results, which is more than most vendors do:
- False positives on real traffic (10,000 actions): 0.4% for the full pipeline. So it rarely blocks harmless work.
- Misses on real overeager actions (52 cases): 17%. The post calls this "the honest number".
- Misses on synthetic data exfiltration (1,000 cases): 5.7%.
Anthropic's own reading: a clear improvement over skipping permissions, but auto mode "is not a drop-in replacement for careful human review on high-stakes infrastructure". We agree, and we have no reason to be nicer to them than they are to themselves.
When auto mode hands control back
"If the classifier blocks an action 3 times in a row or 20 times total, auto mode pauses and Claude Code resumes prompting." Approve the prompted action and auto mode resumes. You cannot change those thresholds. Blocked actions show up under /permissions in a Recently blocked tab, which is the first place to look when auto mode feels nagging.
What bypass permissions really turns off
The docs do not soften it: "bypassPermissions mode disables permission prompts and safety checks so tool calls execute immediately, including writes to protected paths."
Protected paths include .git, .vscode, .idea and .claude folders, and files like .gitconfig, .bashrc, .zshrc, .npmrc and .mcp.json. In bypass, Claude can rewrite your shell startup file without asking. In auto mode, the classifier decides. In manual mode, you are asked.
What still stops even in bypass:
- Deny rules. They block in every mode. Allow rules, though, have no effect in bypass.
- Explicit ask rules, the AskUserQuestion tool, and recognized
rmorrmdirdeletes on critical paths.
And the guard rails around switching it on:
- Start with
claude --permission-mode bypassPermissionsor--dangerously-skip-permissions. You cannot enter bypass from a session started without it. - First start shows a warning you must accept.
- It refuses to run as root or with sudo on Linux and macOS, except inside a recognized sandbox.
- Not available in restricted mode or in cloud sessions on web and mobile.
- Admins can block it with
permissions.disableBypassPermissionsMode. - Setting
bypassPermissionsorautoas default inside a project's.claude/settings.jsondoes not take effect; terminal sessions start in Manual instead. That stops a cloned repo from switching off your prompts.
The final line in that section is the one to tape to your monitor: bypass "offers no protection against prompt injection or unintended actions". If Claude reads a web page or README with hidden instructions, nothing stands between those instructions and your shell.
Requirements for auto mode
From the docs:
- Version: with Claude Code v2.1.283 or later, auto mode is the built-in starting mode for interactive terminal and VS Code sessions on every plan and provider.
- Plans: all plans. On Team and Enterprise it is on by default; admins can turn it off with
permissions.disableAutoMode. - Models on the Anthropic API: Claude Opus 4.6 or later, Sonnet 4.6 or later, Haiku 5.5, or a Fable model. On Bedrock, Google Cloud's Agent Platform and Microsoft Foundry the list is narrower: Sonnet 5 or later, Opus 4.7 or later, Haiku 5.5 and Fable.
- Not supported anywhere: Sonnet 4.5, Opus 4.5, Haiku 4.5 and claude-3 models.
If your plan is the question, our Claude Pro vs Max page covers what each plan gives you in Claude Code.
Which one when
- Daily coding on your laptop: auto mode. It is the default for a reason.
- A long refactor you want to leave running: auto mode, with deny rules for anything that touches production credentials.
- Production servers, cloud consoles, infrastructure as code: Manual. Anthropic says auto mode is not a replacement for careful review there, and 17% misses is not a number you want near terraform.
- A disposable container or VM, no internet, no secrets, nothing you love: bypass is fine, and it is faster because nothing is classified.
- CI pipelines: dontAsk, with pre-approved tools. Neither of the two modes in the title.
- You are reading untrusted content (web pages, random repos): never bypass. That is precisely the prompt injection case.
A sane setup in four lines
- Let auto mode be your default. It is already, on recent versions.
- Write deny rules for the scary stuff: production deploy commands, secrets folders, cloud delete commands.
- Keep a dev container for the days you really want bypass, and start bypass only there.
- Check /permissions, Recently blocked, once a week. It tells you what Claude tried that you did not ask for.
More Claude Code comparisons: Claude commands vs skills, Claude Code vs Windsurf, and the AI tools hub. How we work: how we pick.
How we checked
We read Claude Code's permission modes documentation and Anthropic's engineering post on auto mode on 3 December 2026. Version numbers and model lists change often; check the docs before you rely on them. We did not run our own classifier tests; every number above is Anthropic's.
Questions people ask
What is the difference between auto mode and bypass permissions in Claude Code?
Auto mode skips most prompts but routes risky actions to a classifier model that can block them and tell Claude why. Bypass permissions skips prompts and safety checks altogether, so tool calls run immediately, including writes to protected files like .bashrc and .git. Deny rules still apply in both. Anthropic recommends bypass only in isolated containers or VMs.
Is Claude Code auto mode safe?
Safer than bypass, not perfect. Anthropic's own docs say auto mode reduces permission prompts but does not guarantee safety. Its engineering post reports the full classifier pipeline missed 17% of real overeager actions in a 52-case test set, and calls that the honest number. Use it for normal work, keep manual approval for production systems.
How do I turn on bypass permissions in Claude Code?
Start Claude Code with --permission-mode bypassPermissions, or the equivalent --dangerously-skip-permissions flag. You cannot switch into it from a session started without it. On first start you must accept a warning. It refuses to run as root on Linux and macOS unless inside a recognized sandbox, and is not available in cloud sessions.
Why does auto mode keep asking me for permission?
Two common reasons. If the classifier blocks an action three times in a row or twenty times in total, auto mode pauses and normal prompts return until you approve one. And writes to protected paths, unusual network calls or destructive git commands get classified rather than waved through. Check the Recently blocked tab under /permissions.
Does auto mode work on every plan and model?
The docs list auto mode for all plans, available by default on Team and Enterprise unless an admin turns it off. Model support varies by provider: on the Anthropic API it needs Opus 4.6 or later, Sonnet 4.6 or later, Haiku 5.5 or a Fable model. Older models such as Sonnet 4.5 are not supported anywhere.
Sources
Every fact above comes from these pages. Prices change, so each one carries the date we read it.
- Claude Code docs: Permission modes, checked 3 Dec 2026
- Anthropic Engineering: Claude Code auto mode, checked 3 Dec 2026