Learn / Claude Code auto mode
Auto mode is the default in Claude Code. What a pre-action gate still adds
4 min read · For developers running Claude Code
TL;DR: Anthropic made auto mode the default for new Claude Code sessions on Pro, Max, Ultra and Team plans. A classifier now reviews tool calls instead of asking you. Hooks still run first. We changed ThumbGate to follow the same rule auto mode uses for broad allow rules, and added an auto mode section to npx thumbgate doctor.
What Anthropic shipped
From Anthropic's article (linked below). The numbers are Anthropic's own; we did not reproduce them.
- A classifier instead of prompts. Each tool call goes through a classifier "targeted at blocking actions that are irreversible, destructive, or aimed outside your environment." When a call is blocked, Claude looks for another route or asks you.
- Why. People approve 97% of permission prompts, and approve more of them as a session goes on. In Anthropic's controlled study, people caught 13.6% of dangerous commands; auto mode blocked 89%.
- Broad allow rules are set aside. "Permission rules still fire before the classifier in auto mode, except for allow rules broad enough to grant arbitrary code execution (e.g. python:*)." Your settings file is not changed; those rules apply again in other modes.
- A fallback. After three blocks in a row, or twenty in a session, Claude Code goes back to asking you.
- Admin control. A pinned
defaultMode keeps your mode, and admins can turn auto mode off with disableAutoMode.
- Stated limit. Anthropic says it "does not eliminate risk" and still recommends reviewing high-stakes production changes yourself.
How a ThumbGate hook fits
ThumbGate runs as a PreToolUse hook. We tested how hooks and auto mode interact on Claude Code 2.1.332 with claude -p --permission-mode auto:
- A hook deny still blocks the call in auto mode. ThumbGate's hard blocks (force-push,
rm -rf on home or root, git reset --hard, dropping tables, sending secrets out) work the same in every mode.
- A hook allow skips the classifier. That matters for ThumbGate's opt-in 👍 auto-approve, which turns a call you approved into an allow.
The two layers do different jobs. The classifier judges general risk. ThumbGate checks the call against rules your own thumbs-down taught it in this project, in milliseconds, the same way every time.
What we changed in ThumbGate
- The same line Anthropic drew. Auto mode sets aside allow rules that let an agent run any code. A ThumbGate 👍 on
python build.py or npx some-tool was doing what those rules do. Now, in auto mode, a learned approval for an interpreter or one-off package runner (python, node, bash, npx, uvx, npm exec, uv run and similar) is left to the classifier. Other modes keep the approval. This was already true for git commands that can discard work.
- An auto mode check in
thumbgate doctor. It shows whether your mode is pinned or auto mode is turned off, lists allow rules like Bash(python:*) that auto mode sets aside, and says whether ThumbGate can skip the classifier.
- A claim we checked and dropped. We had a note that
ask rules stop prompting in auto mode. On Claude Code 2.1.334, run headless in auto mode, an ask rule was still honored. So ThumbGate makes no claim about it.
Try it
- Install or update:
npx thumbgate init.
- Check the fit:
npx thumbgate doctor, and read the "Claude Code auto mode" section.
- Optional:
npx thumbgate auto-approve on to turn your 👍 into fewer interruptions, without skipping the classifier on code runners.
What this does not do
- It adds no new blocking. The change only stops ThumbGate from skipping the classifier.
- The doctor reads settings files only. It does not know which mode a running session is in.
- Neither layer is perfect. Anthropic reports its own miss rates; ThumbGate only knows the rules it has learned.
Sources
ThumbGate is an independent project and is not affiliated with or endorsed by Anthropic.
Fewer prompts, your own rules
Pre-action gates built from your own thumbs-down, checked before every tool call, in auto mode too.
npx thumbgate init