To turn off Claude Code auto mode for one session, press Shift+Tab once. To stop every terminal session from starting in it, put "defaultMode": "default" under permissions in ~/.claude/settings.json. To remove it from the machine altogether, set "disableAutoMode": "disable".
That is the fix. The rest of this post is about the part that catches people after they leave auto mode on: telling Claude "don't push" in chat is not a rule, and the docs say so in plain words.
When auto mode became the Claude Code default permission mode
Anthropic announced the change on August 7, 2026. From August 14, new sessions on Pro, Max and Team plans started in auto mode. Enterprise, the Claude API, Amazon Bedrock, Google Cloud and Microsoft Foundry stayed opt-in at first.
That carve-out is gone. The permission modes docs now say that with Claude Code v2.1.283 or later, auto mode is the built-in starting mode for interactive terminal and VS Code sessions "on every plan and provider". The changelog dates v2.1.283 to September 25, 2026.
Two things did not change. If your ~/.claude/settings.json already pinned a different defaultMode, your sessions keep starting in that mode, and you may be asked once whether to switch. And claude -p and Agent SDK runs do not start in auto. Since v2.1.302 they start in Manual mode, whose config value is default. I checked on v2.1.332: a bare claude -p run reported "permissionMode": "default" in its init message.
So "auto mode is the default" is true for the thing you type into, and false for your scripts.
How the auto mode classifier decides
A second model reviews actions in your place. The order is fixed, and the first match wins:
- Your own allow, ask and deny rules resolve first.
- Read-only actions and file edits inside your working directory are approved without review.
- Everything else goes to the classifier, which blocks what it judges risky.
By default the classifier runs on Claude Sonnet 5, not the model you picked with /model. In the requests Claude Code sends itself, it reads your messages, the tool calls and your CLAUDE.md, and tool results are stripped out so a hostile web page cannot talk to it directly. If it blocks 3 actions in a row or 20 in a session, auto mode pauses and you are back to prompts. Those two thresholds are not configurable.
You can print the built-in rule lists with claude auto-mode defaults. On v2.1.332 that returned 72 soft-deny rules, 1 hard-deny rule and 16 allow rules on my machine.
Here is the default that surprises people. Force pushes are blocked. git reset --hard is blocked. But the docs list this under allowed by default: "Pushing to any branch of the repository you're working in, including the default branch." A plain git push origin main goes through with no prompt.
Is Claude Code auto mode safe?
Anthropic's own numbers make a decent case. Their post says users approve 97% of permission prompts. In a study with 1,053 paid testers, humans caught a planted dangerous command 13.6% of the time. Auto mode blocked 89% of the same commands. Those are Anthropic's measurements, not independent ones.
The same post reports a 7% miss rate on a set of synthetic attacks built by a red team, after hardening. And the docs carry a warning box: auto mode "does not guarantee safety". Both statements are true together. It beats a tired human clicking yes. It is not a wall.
The classifier costs tokens too. Anthropic says it stopped charging Pro, Max, Ultra and Team users for that overhead. The docs say classifier calls still count toward usage on Enterprise plans and on API and cloud-provider accounts, except where the server does the review inside the normal model request.
How to turn off Claude Code auto mode
For the current session, press Shift+Tab. From auto, the first press lands on Manual, and the status bar shows manual mode on.
For one session at launch:
claude --permission-mode defaultThe CLI also accepts manual as an alias for default.
For every terminal session on your machine, save this in ~/.claude/settings.json:
{
"permissions": {
"defaultMode": "default"
}
}Now the catch. The docs describe an odd case: if a project's .claude/settings.json sets "defaultMode": "auto", that value does not take effect, and Claude Code "then uses the built-in default rather than a defaultMode from ~/.claude/settings.json". The built-in default is auto. Read literally, a repo that ships that one line can skip past your personal Manual default. I have not reproduced this myself, so treat it as what the docs say, not what I measured.
defaultMode only picks where a session starts. You can still Shift+Tab back into auto. If you want it gone, use the kill switch.
disableAutoMode: the setting that removes it
{
"permissions": {
"disableAutoMode": "disable"
}
}The settings reference says this removes auto from the Shift+Tab cycle, and any session that would have started in auto starts in default instead, whether that came from the flag, a settings file or the built-in default.
Most write-ups call disableAutoMode an admin setting. Its documented scope is "Any file". It is most useful in managed settings because users cannot override it there, but it works in your own ~/.claude/settings.json too. For an organization, managed settings is the right place, and a running session drops out of auto when the setting reaches it.
VS Code has its own knob. claudeCode.initialPermissionMode pins the starting mode there, it does not accept auto, and the extension never reads a project's .claude/settings.json for the starting mode.
Why "don't push" in chat does not stick
If you tell Claude "don't push" in auto mode, the classifier treats that as a block signal. It will stop a push the default rules would have allowed. Good.
Then the docs add this: "Boundaries are not stored as rules. The classifier re-reads them from the transcript on each check, so a boundary can be lost if context compaction removes the message that stated it."
Think about when compaction happens. Long sessions. The ones you left running. Your instruction from hour one gets summarized away, and the default comes back: pushing to the current repo is allowed. Nothing tells you the boundary is gone.
The same applies to anything you wrote in CLAUDE.md as a polite request. The permissions docs are blunt about it: rules are "enforced by Claude Code, not by the model". A well structured CLAUDE.md shapes what Claude tries. It does not stop a tool call.
Make it stick: a deny rule, then a hook
The documented fix is a deny rule. It is checked before the classifier, and neither the classifier nor you in chat can override it.
{
"permissions": {
"deny": ["Bash(git push *)"]
}
}I tested this in a scratch git repo with no remote, in auto mode on v2.1.332. Asked to run git push origin main, Claude got back:
Permission to use Bash with command git push origin main has been denied.Then I asked for git -C . push origin main. Same push, different spelling. The deny rule did not match and the command ran. It failed only because my test repo had no origin.
This is documented, not a bug. Bash rules match the command text, and the docs list git -C . push origin main and git -c push.default=current push origin main as forms that Bash(git push *) does not stop. Their words: a deny rule "isn't a security boundary around the program".
For a boundary that reads the whole command, add a PreToolUse hook. This one blocked both spellings in my test:
#!/bin/bash
cmd=$(jq -r '.tool_input.command')
if echo "$cmd" | grep -qE '(^|[^[:alnum:]_-])git([[:space:]]+[^;&|]*)?[[:space:]]push([[:space:]]|$)'; then
echo "Blocked: no pushes from this repo until a human reviews" >&2
exit 2
fi
exit 0Register it in .claude/settings.json under PreToolUse with a Bash matcher, and add "onFailure": "block" so a broken script path fails closed. The pattern is blunt. It also blocks git log --grep push. I will take that trade.
Exit code 2 matters here. A hook that exits 1 does not block anything. Our older post on which Claude Code hooks are worth keeping covers the guard pattern.
If you want a checkpoint and not a ban, swap deny for ask. A permissions.ask rule for Bash(git push *) prompts you even in auto mode. It has the same text-matching limit.
The short version
Auto mode is the Claude Code default permission mode for interactive sessions as of December 2026, on every plan. Shift+Tab leaves it, defaultMode changes where you start, and disableAutoMode removes it.
If you keep it on, stop trusting sentences. Anything you need to hold for a whole session goes in permissions.deny, and anything you really cannot afford goes in a hook or behind a sandbox. If your instruction files are a mess across tools, start with AGENTS.md vs CLAUDE.md, then come back and write the deny rules.