Skip to content
← All guides

Claude Code auto mode: what it allows, blocks and still misses

How Claude Code auto mode decides, how to turn it on or off, which plans and models get it, what it blocks by default and what it still lets through.

7 min read

Auto mode is a Claude Code permission mode in which a second model, the classifier, reviews actions instead of you. With Claude Code v2.1.283 or later, it is the built-in starting mode for interactive terminal and VS Code sessions, so you may already be in it without having picked it. The docs carry a plain warning: auto mode reduces permission prompts but does not guarantee safety. Unlike bypass permissions (--dangerously-skip-permissions), which runs every call unreviewed, auto mode sends risky actions to a classifier. It sits between prompting for everything and skipping checks entirely, the trade-off covered in YOLO mode for AI agents.

How auto mode decides

Each action goes through a fixed order, and the first match wins.

  1. Your allow, ask and deny rules resolve first, with exceptions. Writes to protected paths such as .git and .claude go to the classifier even when an allow rule matches.
  2. Reads and file edits in your working directory are approved.
  3. Everything else goes to the classifier.
  4. If the classifier blocks, Claude receives the reason.

The docs say the classifier looks for actions that go beyond your request, target unrecognized infrastructure or follow hostile content Claude read. It sees your messages, Claude’s tool calls and your CLAUDE.md. In the requests Claude Code sends itself, tool results are stripped, so text in a file or web page can’t address the classifier directly. A separate server-side probe scans incoming tool results for suspicious content.

When you enter auto mode, broad allow rules that grant arbitrary code execution are dropped, such as Bash(*), Bash(python*) and package-manager run commands. Narrow rules like Bash(npm test) stay. The dropped rules come back when you leave.

How to turn it on

  • Shift+Tab. Auto appears in the cycle when it’s available to your session. The status bar shows ⏵⏵ auto mode on.
  • The flag. claude --permission-mode auto, which also works with -p. Since v2.1.302, -p runs with no mode set start in Manual.
  • A default. Set permissions.defaultMode to "auto" in ~/.claude/settings.json. It doesn’t take effect from a project’s .claude/settings.json or .claude/settings.local.json.
  • From a prompt. In Manual and acceptEdits, a Bash permission prompt offers Yes, and switch to auto mode. Approving a plan offers Yes, and use auto mode.

The installed help for Claude Code 2.1.322 lists auto among the --permission-mode choices. claude auto-mode defaults prints the built-in rules.

Who can use it, and why it’s unavailable

The docs list auto mode on all plans. On Team and Enterprise it’s on by default, and administrators can turn it off. On the Anthropic API it needs Claude Opus 4.6 or later, Sonnet 4.6 or later, Haiku 5.5 or a Fable model. On Amazon Bedrock, Google Cloud’s Agent Platform and Microsoft Foundry, it needs Sonnet 5 or later, Opus 4.7 or later, Haiku 5.5 or a Fable model. Sonnet 4.5, Opus 4.5 and Haiku 4.5 aren’t supported anywhere.

If it shows as unavailable, check for a disableAutoMode setting in any settings file and an unsupported model. Anthropic can also turn it off server-side, or the server can reject it for your account. Either lasts until the session ends. A “cannot determine the safety” message means a classifier request failed, usually briefly.

What it blocks by default

The classifier trusts your working directory and the Git remotes configured when the session started. Everything else counts as external until you list it in autoMode.environment. Blocked by default, among others:

  • Downloading and running code, like curl | bash
  • Sending sensitive data to external endpoints
  • Production deploys and migrations
  • Force push, git reset --hard, git clean -fd and other commands that discard uncommitted work
  • Irreversibly destroying files that existed before the session
  • Printing a live credential or token into the transcript or a file
  • Starting another agent loop with --dangerously-skip-permissions

Allowed by default: local file work in your working directory, installing dependencies declared in your lock files, read-only HTTP requests, reading .env and sending credentials to their matching API, and pushing to any branch of the repository you’re working in, including the default branch.

When it falls back to prompting

  • A blocked action shows a notification and lands in /permissions under Recently blocked, where you can approve a retry.
  • After 3 blocks in a row or 20 in total, auto mode pauses and prompts again. In a -p run with no prompt tool, the action just doesn’t run.
  • Explicit ask rules still prompt, and so do AskUserQuestion and MCP tools marked requiresUserInteraction.
  • A recognized rm or rmdir of a critical path, such as rm -rf ~, asks in the terminal with a two-minute countdown. Elsewhere it’s denied.
  • The first Read, Grep or Glob outside your working directories prompts in the terminal.
  • If the classifier returns no verdict, the action is blocked.

Auto mode vs bypass permissions and the other modes

ModeRuns without askingWrites to protected pathsCritical-path rm
default (Manual)Reads in your working directoriesPromptedAsks
acceptEditsReads, edits and common filesystem commands in scopePromptedAsks
planReads, plus classifier-approved commands when auto is availableClassifier or promptAsks
autoEverything the classifier approvesClassifier decidesAsks in the terminal, with a time limit
dontAskReads and pre-approved tools; the rest is deniedDeniedDenied
bypassPermissionsEverythingAllowedAsks in the terminal, with a time limit

The difference from --dangerously-skip-permissions is the classifier. Bypass runs every call with no review, and the docs reserve it for isolated containers and VMs. See the skip-permissions flag and Claude Code permissions.

Turn it off for an organization

Set disableAutoMode to "disable" in managed settings, where users can’t override it.

{
  "permissions": {
    "disableAutoMode": "disable"
  }
}

That removes auto from the Shift+Tab cycle, and --permission-mode auto starts in Manual. A running auto session leaves the mode when the setting arrives from an admin-deployed source. On a Mac, the managed file is /Library/Application Support/ClaudeCode/managed-settings.json. To change only the starting mode, set permissions.defaultMode to "default" instead.

Is Claude Code auto mode safe?

It is safer than bypass, but not safe on its own: the docs say auto mode reduces permission prompts but does not guarantee safety. They recommend it for tasks where you trust the general direction, not as a replacement for review on sensitive operations.

What still needs your own checks

  • Pushes to the default branch. They run without a prompt by default. An ask rule on Bash(git push *) adds a checkpoint, but the docs note that git -C <dir> push doesn’t match it. Branch protection on the Git host still applies.
  • Boundaries you say in chat. “Don’t push” makes the classifier block matching actions, but it re-reads that from the transcript, and compaction can drop the message. Use a deny rule for anything firm.
  • Rule text. Deny rules block before the classifier runs, but they match commands as written. The critical-path check can miss commands too. For limits the operating system enforces, use the Claude Code sandbox.
  • Organization rules. autoMode entries combine across scopes, and a developer’s allow entry can override an organization soft_deny. The docs call this additive, not a hard policy boundary. Use permissions.deny in managed settings for that.

Afterward, read what the session did. Check what your AI agents did.

Checked against the vendor documentation on November 27, 2026. Permission modes · Configure auto mode · Settings reference · Managed settings

Where Excellent fits

Excellent Pro blocks or asks before the risky actions it checks for. In Claude Code, an ask shows as a prompt. It blocks some steps (your email going to a website, keys typed into commands, deleting protected folders) and asks before others (reading key files, overwriting history on main). Pro can also configure Claude Code’s native Mac sandbox from your file and folder rules, with a plan to review first. Pro is sold in most countries. Sandbox setup · Pricing

Excellent’s free scan reads supported logs on the Mac and reports findings for review. It reads the session logs of Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code. Run the free scan · See a sample report

Related guides

View all