Claude Code Auto Mode: What It Is, How to Switch, and How It Differs from Accept Edits (2026)
I opened the official permission-modes page on 1 December 2026 at 10:11 Beijing time. Since v2.1.283, auto mode is the built-in starting permission mode for interactive terminal and VS Code sessions. This page explains what the classifier does, how to switch with Shift+Tab, and how auto mode differs from acceptEdits. I did not run the file-delete or local-request test: Claude Code 2.1.312 is installed, but it was not signed in.

I opened the official Claude Code permission-modes page on 1 December 2026, at 10:11 Beijing time (CST, UTC+8). This piece is about what auto mode is. It is not about the error that says auto mode is temporarily unavailable. We already have a page for that error; I link it below.
Short version, from that page. Auto mode is a permission mode. A second model, the classifier, reviews actions instead of you, so Claude Code asks less often. With v2.1.283 or later, it is the built-in starting permission mode for interactive terminal and VS Code sessions, on every plan and provider the docs list. You can still switch. In the terminal, the first press of Shift+Tab from auto mode goes to Manual.
I did not run the delete-a-test-file check today, and I did not send a request to a local address we control. Claude Code 2.1.312 is installed on this machine. claude doctor, run at 10:11 Beijing time, said it was not signed in to claude.ai, and there was no API key. I did not start a login. So I have not seen the classifier approve or block those actions myself. What follows is from the official docs I opened, plus that doctor output.

What auto mode actually is
The docs put it simply. In Manual mode, Claude Code stops and asks you before most actions that edit files, run shell commands, or reach the network. In auto mode, a second model reviews those actions instead of you. The docs call that model the classifier. It looks for actions that go beyond your request, target unrecognized infrastructure, or follow hostile content Claude already read.
The official warning is worth keeping in view: auto mode reduces permission prompts but does not guarantee safety. Use it when you trust the general direction, not as a substitute for review on sensitive work.
Availability, from the same page, opened today: all plans. On Team and Enterprise, administrators can turn it off for the organization with permissions.disableAutoMode set to "disable" in managed settings. Older models, including Sonnet 4.5, Opus 4.5, Haiku 4.5, and the claude-3 models, are not supported on any provider. If a session starts in Manual with no error after you set defaultMode: "auto", the docs say the setting is probably in the project’s .claude/settings.json or settings.local.json. auto does not take effect from those two files. Move it to ~/.claude/settings.json.
By default, classifier requests go to Claude Sonnet 5. If that model is unavailable, Claude Code falls back, often to the session’s own model. From v2.1.302 you can set CLAUDE_CODE_AUTO_MODE_MODEL to a full model ID for the client-side classifier. That variable does not change the model used when the server itself reviews the actions. The env block can live in settings.json.
The six permission modes, side by side
This table is the official one, rewritten in shorter wording. Manual mode appears under its config value, default. The CLI also accepts manual as an alias for that value.
| Mode | What runs without asking | Best for |
|---|---|---|
default (Manual) | File reads inside your working directories, and other actions that need no approval | Sensitive work, unfamiliar code |
acceptEdits | Reads, file edits, and common filesystem commands (mkdir, touch, mv, cp, and the like) | Iterating on code you’re reviewing |
plan | Reads, plus classifier-approved commands when auto mode is available | Exploring a codebase before changing it |
auto | Everything, with background safety checks | Long tasks, reducing prompt fatigue |
dontAsk | File reads inside your working directories and pre-approved tools; anything that would prompt is denied | Locked-down CI and scripts |
bypassPermissions | Everything | Isolated containers and VMs only |
Modes are only the baseline. Deny rules still block in every mode, including bypassPermissions. Some things are never auto-approved, even there: tools matched by an explicit ask rule, recognized rm and rmdir critical-path removals, and a few others listed on the same page. Our /permissions and blockWrites guide covers the working-directory write block, which is a separate switch.
I am not writing a full plan mode tutorial here. That is a separate queued piece. The row above is only the official comparison.
How to switch, and how a session starts
In the terminal, press Shift+Tab to cycle permission modes. From auto, the first press switches to default, which the status bar shows as ⏸ manual mode on. The cycle then runs default → acceptEdits → plan, and back to auto when auto is available. bypassPermissions is not in the default cycle; dontAsk never is. You set those with a flag, for example:
claude --permission-mode default
In VS Code, click the mode indicator at the bottom of the prompt box. The labels there are Manual, Edit automatically, Plan, Auto, and Bypass permissions.
How a new terminal session picks its starting mode, in this order: the --permission-mode flag (or --dangerously-skip-permissions); then permissions.defaultMode in a settings file; then the built-in default. The built-in default for an interactive terminal or VS Code session is auto, starting with v2.1.283. On earlier versions it was auto only on Pro, Max, Ultra, and Team plans, and Manual otherwise. That wording is still on the page I opened today. It was already on the 25 November snapshot we kept.
One later changelog detail matters if you run headless jobs. From v2.1.302, claude -p and Agent SDK runs with no permission mode set start in Manual, not auto. Pass --permission-mode auto if you want the classifier on those runs.
To make every terminal session on the machine start in Manual, the docs give this user-level setting:
{
"permissions": {
"defaultMode": "default"
}
}
Save it in ~/.claude/settings.json. The next session should show ⏸ manual mode on in the status bar. Putting "auto" or "bypassPermissions" in the project’s .claude/settings.json or settings.local.json will not do what you expect; the docs are explicit about that.
What the classifier allows, and what it blocks
The classifier trusts your working directory and the remotes that were already configured for it when the session started. Everything else is treated as external until you add it under autoMode.environment.
Allowed by default, from the official list:
- Local file operations in your working directory
- Installing dependencies declared in your lock files or manifests
- Read-only HTTP requests
- Pushing to any branch of the repository you’re working in, including the default branch, unless another rule blocks that push (secrets, a branch name that marks a deploy target, and so on)
- Deleting the exact jobs Claude created earlier in the same session
Blocked by default, a shorter cut of the same list, the parts that matter for a first reading:
- Downloading and executing code, like
curl | bash - Sending sensitive data to external endpoints
- Irreversibly destroying files that existed before the session
- Force push, and several git commands that would discard uncommitted work, such as
git reset --hard - A recursive forced delete whose target is a shell variable the classifier cannot resolve, such as
rm -rf "$VAR" - Deleting files in
/tmpor another shared scratch directory by wildcard or age filter, rather than by a specific named path
Critical-path removals are a separate check, not the classifier’s ordinary list. The filesystem root, top-level directories, your home directory, and your working directory itself count as critical paths. A recognized rm or rmdir aimed at one of those is not auto-approved in any mode. In auto mode, the terminal asks you, with a two-minute countdown; elsewhere it denies the command. That is not the same thing as deleting one named test file inside a project folder.
I have not seen, myself, what the classifier does with a dummy file created in the same session, or with a request to a local server we control. The allowed list says local file operations in the working directory, and read-only HTTP, run without a prompt. The blocked list says irreversibly destroying files that existed before the session is blocked. Those two sentences can both be true. I am not going to pick a winner for a case I did not run.
The test I did not run
The brief for this article was to try two things in a throwaway directory, and only those: delete test files, and send an outbound request only to an address we control, then record whether the classifier allowed or blocked them. I prepared to do that. I stopped before launching a session.
What I did see. claude --version printed 2.1.312 (Claude Code). claude doctor at 10:11 Beijing time reported: not signed in to claude.ai; no API key or claude.ai sign-in for the policy lookup; managed settings not fetched, no usable credentials. There was no ANTHROPIC_API_KEY in the environment. I did not run claude auth login, and I did not sign up for anything.
So this is not a reproduced test. If we get a signed-in session later, the same sandbox-only check can be added before the piece goes live. I would not want the article to invent a classifier verdict in the meantime.
If you see “temporarily unavailable”
That message is a different problem. It means the classifier did not produce a decision, so auto mode refused to approve the action. It is not a judgment about your command. We already wrote that up, with the official wording and a mock-API test, in Claude Code auto mode temporarily unavailable. This article does not replace that page, and it does not change its URL.
The official error reference is Auto mode cannot determine the safety of an action. For other Claude Code errors, start at our errors hub. Repeated (timed out) or (connection failed) categories still belong with the unable to connect to API checks.
FAQ
Is auto mode the same as bypassPermissions?
No. Auto mode still runs a classifier. bypassPermissions is for isolated containers and VMs only, and the docs keep several checks even there, including recognized critical-path removals. I would not switch to it just to get past a prompt.
How do I stop sessions starting in auto mode?
Set permissions.defaultMode to "default" in ~/.claude/settings.json, or pass --permission-mode default for one session. Organizations can set permissions.disableAutoMode to "disable" so nobody can select auto mode.
Does claude -p start in auto mode?
Not by default, from v2.1.302. Those runs start in Manual unless you pass --permission-mode auto or approve the calls another way, such as allow rules.
When should I use acceptEdits instead?
When you want fewer prompts for edits, but you still want to approve shell commands and network yourself. There is no classifier in that mode. Auto mode is the one that reviews “everything, with background safety checks.”
Sources
- Claude Code: Choose a permission mode — opened 1 December 2026, 10:11 Beijing time (CST, UTC+8), HTTP 200
- Eliminate permission prompts with auto mode
- What the classifier blocks by default
- Configure auto mode
- Errors: Auto mode cannot determine the safety of an action
- Claude Code CHANGELOG — raw file fetched the same morning; latest heading then was 2.1.333
- This machine: Claude Code 2.1.312,
claude doctorat 10:11 Beijing time, not signed in. Classifier actions were not tested.