Bible Network Crypto DeFi Onchain RWA AI Agent Stablecoin Chain SAFU CryptoTax DeFAI AGI Claude Me Claude Skill Claude Design Claude Cowork
Independent Media
Not affiliated with any project
Learn Claude Skills. Do Everything Better.
claudeskill-me.com
LATEST
Watching Claude Code Compaction and Hooks Through OpenTelemetry: Reading the compaction, hook_execution_complete and precompute_reuse Fields  ·  Blind Spots in Bash Permission Rules: deny Misses /bin/rm, bash -c and git -C, and devbox run * Lets Any Inner Command Through  ·  CLAUDE.md Too Long? Use .claude/rules/ and paths So Rules Load Only When Claude Touches Matching Files  ·  Chromium Says No usable sandbox! Inside Claude Code's Sandbox: What --no-sandbox, excludedCommands and allowNestedUserNamespaces Each Give Up  ·  Claude Code v2.1.309 Fixes a Batch of Sandbox and Permission Gaps: Startup Files Outside the Sandbox, denyWrite Through Symlinks and More  ·  The auto mode $defaults Trap: Leave One String Out of autoMode.soft_deny and the Built-In Force-Push Rules Disappear
Glossary · Tools Integration

Auto Mode

Tools Integration intermediate

30-Second Version · For the impatient
A Claude Code permission mode in which a classifier reviews each tool call and blocks anything irreversible, destructive or aimed outside your environment, so routine actions need no prompt; it is separate from the Sandbox's auto-allow mode.
Full Explanation +
01 · What is this?

What is auto mode?

Per the official docs, Claude Code stops asking you about routine actions and instead routes tool calls through a classifier that blocks anything irreversible, destructive or aimed outside your environment. By default the classifier trusts only the working directory and the current repo's configured remotes, so pushing to your company's other organizations or writing to a team cloud bucket is blocked until you add it to autoMode.environment.

02 · Why does it exist?

Why does it exist, and how does it differ from confirming every action or allowing everything?

Confirming every action trains people to click approve without reading, while bypass mode has no check at all. Auto mode is the middle path: a classifier makes the first judgment instead of a person. It is not a hard boundary, though. The docs say deny and explicit ask rules are evaluated before the classifier and still Block or prompt; the classifier is a second gate after the permissions system.

03 · How does it affect your decisions?

How does the classifier decide, and how do I tune it?

Inside the classifier there are four tiers: hard_deny blocks unconditionally; soft_deny blocks but user intent and allow exceptions can clear it; allow acts as an exception to soft rules; and a user message that directly describes the specific action can also clear it. Settings live in the autoMode Block (environment, allow, soft_deny, hard_deny) and are read only from ~/.claude/settings.json, managed settings and --settings, never from project settings. An array needs "$defaults" to keep the built-in rules; without it the array replaces them. Use claude auto-mode defaults, config, critique, reset and /auto-mode-setup to inspect and draft.

04 · What should you do?

So what does this mean for me?

If you turn on auto mode: put your repo organizations, internal domains and cloud buckets into environment to cut false blocks; for things that must never happen use managed permissions.deny rather than classifier settings; the docs also say a developer-added allow can override an organization soft_deny, so organization-level hard rules belong in permissions.deny. I have not tested the classifier's accuracy, and the official page gives no false-Block or missed-block rates.

Sources: Configure auto mode - Claude Code Docs, Configure the sandboxed Bash tool - Claude Code Docs
Real-World Example +

From the official docs: asking Claude to "clean up the repo" does not authorize a force push, but saying "force-push this branch" is explicit intent and the classifier allows it. Another: a push to a branch whose name marks it as a deploy target, such as production, release or gh-pages, is judged separately as a production deploy.

Common Misconceptions +
✕ Misconception 1
× Misconception: auto mode means everything is allowed, when actually: the classifier blocks irreversible, destructive or outside-the-environment actions, and deny and ask rules still apply before it
✕ Misconception 2
× Misconception: auto mode and the sandbox's auto-allow are the same thing, when actually: auto-allow relies on the sandbox boundary to contain commands, auto mode relies on a classifier reviewing the action; they are independent and can run together
The Missing Link +
Direct Impact

Pros: fewer routine prompts while keeping a layer of checking. Cons: environment facts the classifier cannot see must be written into settings, omissions cause false blocks, and leaving "$defaults" out of an array silently removes built-in rules.

Ask a Question
Please enter at least 10 characters
More Related Topics