Claude Code auto mode: what it does and when to turn it off
Auto mode is now Claude Code's starting mode. What its classifier blocks, how to switch, and when Manual or Plan is the safer pick.

Key takeaways
- Auto mode runs steps without prompts while a classifier blocks risky ones such as force pushes, production deploys and curl | bash.
- It is the starting mode for interactive terminal and VS Code sessions from Claude Code v2.1.283; claude -p and the Agent SDK still start in Manual.
- Three blocks in a row or twenty in a session send Claude Code back to normal approval prompts.
- Switch with Shift+Tab, the desktop mode selector or defaultMode; admins can turn it off with disableAutoMode in managed settings.
- Pick Manual or Plan for production credentials, untrusted input and unfamiliar code, and keep must-hold limits as deny rules.
Auto mode is the Claude Code permission mode that lets Claude work without asking you to approve each step. A separate classifier model checks every action before it runs and blocks the ones that look destructive, irreversible or aimed outside your project; if it blocks three times in a row or twenty times in a session, Claude Code falls back to normal approval prompts. It is now the starting mode for new terminal and VS Code sessions, so it's worth knowing what it does and when a stricter mode is the better choice.
The permission modes in Claude Code
Claude Code has six permission modes. Each one sets what runs without asking you, and you can add allow, ask and deny rules on top. Anthropic's permission modes page describes them like this:
| Mode | Runs without asking | Best for |
|---|---|---|
Manual (default) | Reads in your working folders | Sensitive work, unfamiliar code |
| Accept edits | Reads, file edits, simple file commands | Changes you review as they happen |
| Plan | Reads only; Claude writes a plan | Exploring before changing |
| Auto | Everything, with a background safety check | Long tasks, fewer prompts |
| dontAsk | Only pre-approved tools; the rest is denied | Locked-down CI and scripts |
| Bypass permissions | Everything, no checks | Isolated containers and VMs only |
Deny rules block in every mode, even Bypass. A few steps still ask in every mode, such as deleting a critical path like your home folder.
Why Anthropic made it the default
In its August announcement (updated 22 October 2026), Anthropic argued that approval prompts had become a reflex: users approved 97% of permission prompts. In a controlled study with 1,053 paid testers, people caught 13.6% of a planted dangerous command, while auto mode blocked 89% of the same commands. The company also stopped charging Pro, Max, Ultra and Team users for the classifier's extra tokens.
According to the docs, from Claude Code v2.1.283 auto mode is the built-in starting mode for interactive terminal and VS Code sessions. claude -p runs and the Agent SDK still start in Manual. If you already pinned another default in ~/.claude/settings.json, it stays, though some plans see a one-time question asking whether to switch.
What the classifier blocks
The classifier trusts your working folder and the Git remotes configured when the session started. Everything else counts as external. Blocked by default, among others:
- Downloading and running code, such as
curl | bash - Sending sensitive data to outside endpoints, or printing a live token into the chat
- Production deploys and migrations,
terraform destroyand changes to shared infrastructure - Force pushes,
git reset --hardand other commands that throw away uncommitted work - Merging a pull request no person approved, approving Claude's own pull request, or disabling CI checks
- Deleting files that existed before the session, or weakening a test that guards security behaviour
Allowed by default: file work in your folder, installing dependencies from your lockfile, read-only web requests, and pushing to branches of the repository you're in. Run claude auto-mode defaults to print the full built-in lists.
When it falls back to manual approvals
A blocked action shows a notification and lands in /permissions under Recently blocked, where you can approve a retry. Claude usually looks for a safer route first. If the classifier blocks three actions in a row or twenty in total, auto mode pauses and Claude Code prompts you again; approving the prompted action resumes auto mode. These limits can't be changed. After three blocks in a row you get a two-minute countdown, and a timeout blocks the action.
You can also talk to it. "Don't push" or "wait until I review before deploying" counts as a boundary the classifier enforces. One catch from the docs: boundaries are re-read from the conversation, so if context compaction drops that message, the boundary goes with it. For a rule that must hold, write a deny rule.
How to switch modes
- In the terminal: press Shift+Tab. From auto, the first press goes to Manual, then Accept edits, then Plan. The status bar shows the active mode. Or start with
claude --permission-mode plan. - In the desktop app: in the Code tab, use the mode selector under the prompt box. The choice is remembered per folder.
- In VS Code: click the mode indicator at the bottom of the prompt box.
- As your own default: set
permissions.defaultModein~/.claude/settings.json. Note that"auto"placed in a project's.claude/settings.jsonis ignored. - For a whole team: admins pin a default or turn auto mode off in managed settings:
{
"permissions": {
"defaultMode": "acceptEdits",
"disableAutoMode": "disable"
}
}
When to choose a stricter mode
Anthropic itself says auto mode "does not eliminate risk" and recommends reviewing Claude's actions yourself for high-stakes changes to production infrastructure. Switch to Manual or Plan when:
- the session has credentials for production, cloud consoles or a database with real customer data;
- Claude will read untrusted content (issues, web pages, emails) that could carry prompt injection;
- you're in an unfamiliar codebase and want to see the approach before anything changes (Plan);
- you're learning, and reading each step is the point;
- plugins, hooks or remote front ends can answer prompts for you.
That last point comes from recent research. A Cloud Security Alliance research note from 26 November 2026, "When 'Yes' Rewrites the Rules", summarises papers on what it calls coding-agent authorization drift. One (arXiv 2611.32195) reports that a party allowed only to answer a permission prompt in Claude Code could attach updates that delete deny rules; another (arXiv 2610.29869) shows how compaction summaries can turn text the agent read into what looks like a user instruction. CSA's practical advice: put deny rules that must hold in managed settings or on the command line, and check which plugins and relays can answer prompts for you.
Whatever the mode, commit before a long autonomous run so you can roll back. Our guide to undoing AI code changes covers the options, and this review routine fits the end of an auto-mode session.
The same choice in Ninja Builder
If you use Claude Code through Ninja Builder, each chat has an Autonomy setting (Project settings › Project › Autonomy) with four levels: Just build it, Check key decisions (asks before deploys, deletes or sending things out), Approve each step and Plan first (nothing changes until you approve the plan). Shift+Tab in the message box cycles them in the same order as Claude Code. A risky step shows a Needs your OK card with the exact command, and Restore to here on any message puts your files back as they were before that reply.


Download Ninja Builder to try it free for 14 days; after that: it's $4.99 a month.
Frequently asked questions
How do I turn off auto mode in Claude Code?
Press Shift+Tab to move to Manual, or set permissions.defaultMode to default in ~/.claude/settings.json. Admins can disable it for everyone by setting permissions.disableAutoMode to disable in managed settings.
Is Claude Code auto mode safe?
Anthropic's testing found it blocked far more planted dangerous commands than people clicking through prompts, but it relies on a classifier and does not remove all risk. Anthropic recommends reviewing high-stakes production changes yourself.
Does auto mode cost extra tokens?
The classifier uses some extra tokens per action. Anthropic stopped charging Pro, Max, Ultra and Team users for that overhead; sessions behind some gateways may still be billed for it.
What is the difference between auto mode and bypass permissions?
Auto mode checks each action with a classifier and blocks risky ones. Bypass permissions runs everything without checks and is meant only for isolated containers and virtual machines.
Keep reading

How to undo AI code changes: checkpoints, rewind and Git
Three layers of undo for AI edits, from one file to a full Git restore, with the exact commands.

How to review AI-generated code: a practical routine
Six steps, in the same order every time, to catch what AI coding agents get wrong before it reaches your main branch.

Claude Ship explained: AI that reviews, fixes and approves pull requests
Anthropic's three pull request agents in plain words: what they do, how to roll them out safely, and what they cost.