claude code auto mode what it wont delete

Claude Code Auto Mode Is the Default. Here’s What It Still Won’t Delete.

TL;DR: Claude Code auto mode is the starting mode for interactive sessions, and it approves almost everything itself — a classifier model reviews each action instead of you. Over five releases between 16 and 20 November, Anthropic quietly tightened what that permission covers. The useful bit is the short list of things no mode auto-approves at all, led by rm aimed at your home folder or your project folder.

What changed, release by release

Claude Code ships most days. Five releases last week all touched the same thing: how much your assistant does without asking.

The versions below are dated from the npm registry, because the changelog itself carries no dates.

VersionPublishedWhat it changed about permissions
2.1.32616 NovTerminal and VS Code sessions with no mode set now “start in auto mode, not Manual mode”. File tools refuse writes to Claude Code’s own sign-in files, “such as .credentials.json“
2.1.32717 NovChanged “what counts as inside a working directory, so some paths now ask for permission”
2.1.32818 NovAuto mode extended to Opus 4.6 and Sonnet 4.6 on Bedrock, Google Cloud and Microsoft Foundry
2.1.33020 Nov“Changed more rm commands aimed at the root, home, a top-level folder or the working folder to ask for approval; where nobody can answer, they’re refused”

The direction is clear: the default got more permissive a while ago, and the guardrails behind it are still being hardened. One correction, because it’s easy to get wrong — 2.1.328’s auto-mode entry covers third-party providers. The change for ordinary terminal and VS Code users was 2.1.326.

What Claude Code auto mode actually approves

Claude Code has six permission modes. In plain English:

ModeWhat it does without asking
default (or manual)Reads inside your working folders, and little else
acceptEditsReads, file edits, and routine file commands like mkdir and mv
planReads only — edits are blocked until you approve a plan
auto“Everything, with background safety checks”
dontAskReads and pre-approved tools; “anything that would prompt is denied”
bypassPermissionsEverything. Anthropic says “isolated containers and VMs only”

Auto mode doesn’t remove the review step — it moves it. Anthropic’s security page says: “A separate classifier model reviews actions instead of you and blocks the ones it judges unsafe.” A second model checks the first model’s homework. Better than nothing, and not the same as you reading the command — as the docs themselves warn: “Auto mode reduces permission prompts but does not guarantee safety.”

On exactly which versions auto mode became the starting mode, the documentation contradicts itself — one passage names v2.1.283, another v2.1.228. Treat “it’s probably already on” as the safe assumption rather than a date.

The list nothing auto-approves

This is the part worth knowing, and it holds in every mode — including bypassPermissions.

The headline entry: recognised rm and rmdir removals aimed at a “critical path”, which the docs say “no allow rule or PreToolUse hook "allow" approves”. You cannot pre-authorise these. Critical paths are:

  • The filesystem root, and any direct child of it — /usr, /etc, /data
  • Your home directory (on Windows, its short C:\Users\LONGNA~1 form counts too)
  • Windows drive roots and their top-level folders, such as C:\ and C:\Windows
  • Your working directory and its parents

There’s a gap worth noticing. For additional working folders, the check only fires on a glob — rm -rf <dir>/* is caught, while rm -rf <dir> on the folder itself, the docs say, “doesn’t trigger this check”.

The two-minute rule

In Claude Code auto mode, a critical-path deletion in the terminal gets a prompt with a two-minute countdown. If it expires: “Claude Code denies the command and tells Claude what to do instead, so an unattended session keeps working.” Press any key to stop the clock. There’s a three-strikes rule on top — after three unanswered prompts, Claude Code “stops showing them and denies further critical-path removals immediately”, until you send a new message.

Outside the terminal — a cloud session, a scheduled task, anything unattended — auto mode skips the prompt and denies outright. dontAsk denies in all cases.

So the honest summary is reassuring: the dangerous default is deny, not approve. Walking away from your machine is the safe choice, not the risky one.

The docs are blunt about the limits, though. The check is pattern-based: “it doesn’t replace an operating-system control such as sandboxing.” A command it misses “gets no special handling”. And sandboxing isn’t a complete answer either — “sandboxed commands can still delete your working directory”.

Why this matters if you don’t code

You are the review step that got automated. Claude Code auto mode’s proposition is fewer interruptions, and Anthropic’s security page still puts the duty on you: “You’re responsible for reviewing proposed code and commands for safety before approval.” Fewer prompts means the ones you get matter more. A two-minute countdown isn’t a moment to click through on autopilot.

Your project folder is protected; your files aren’t. The critical-path list covers deleting whole folders. It says nothing about rewriting a file badly or committing a secret — which is why “don’t ask again” is worth understanding too.

Nobody can switch you into a looser mode by accident. Per the settings docs, permissions.defaultMode values of auto and bypassPermissions “don’t take effect from project or local settings” — so a repository you clone can’t quietly widen your permissions.

Three checks, five minutes

  1. Update. Run claude update. The critical-path improvements only exist in recent builds — 2.1.330 landed on 20 November.
  2. Find out which mode you’re in. Open /config and look at the permission mode. If it says auto, Claude Code auto mode is live and your assistant is approving its own commands with a classifier as the check.
  3. If you run anything unattended, decide deliberately. For scheduled or headless runs the docs point at permissions.denyInsteadOfPrompting set to true, so a session that would otherwise wait on a prompt keeps going.

One thing not to do: reach for bypassPermissions to stop the prompts. Anthropic’s line is unambiguous — “only use this mode in isolated environments like containers or VMs where Claude Code can’t cause damage.”

Who should care (and who shouldn’t)

  • Building a revenue app: Care. Your working folder holds real customer code. Know your mode, and keep backups outside that folder.
  • Internal tool for your business: Care most, especially if anything runs on a schedule. Unattended, Claude Code auto mode denies critical deletions — confirm that’s what you want rather than discovering it mid-run.
  • Website or landing page: Low stakes if you build in a browser tool like Lovable or Bolt. This is a Claude Code story, not a hosted-builder one.
  • Learning: Auto mode is a pleasant way to learn and a poor way to learn what commands do. default mode for a fortnight teaches more.
  • No idea yet: Nothing to do today.

Our take

We’d leave Claude Code auto mode on and treat the countdown as the feature, not the nuisance. Denying by default when nobody answers is the right call — plenty of tools would have chosen “proceed” and called it convenience.

What we’d push back on is discoverability. The countdown, the three-strikes rule and the gap for non-glob deletions are all in the documentation and none are in the product’s face. A reader who never opens the docs meets the countdown for the first time under time pressure — the worst moment to learn what it means.

If you take one thing: check which mode you’re in.

—

Not sure whether Claude Code is right for you? Take the 60-second Tool Finder quiz →

New to the terms? The vibe coding glossary covers permission modes and agents in plain English — or start with our Claude Code guide.

Some links on this page are affiliate links. If you buy through them we may earn a commission at no extra cost to you.

FAQ

What is Claude Code auto mode?

It’s the permission mode interactive Claude Code sessions start in. Rather than prompting you for each action, a separate classifier model reviews what Claude Code wants to do and blocks what it judges unsafe. Anthropic’s documentation warns that it “reduces permission prompts but does not guarantee safety”.

Can Claude Code delete my home folder?

Not without a prompt. Your home directory is a “critical path”, and the docs say no allow rule or hook can pre-approve an rm aimed at one. In auto mode you get a two-minute countdown in the terminal; if it expires, or the session is unattended, the command is denied.

How do I check which Claude Code permission mode I’m in?

Open /config in a Claude Code session and look at the permission mode setting. The options are default (also called manual), acceptEdits, plan, auto, dontAsk and bypassPermissions. Claude Code auto mode is the built-in starting mode for interactive terminal and VS Code sessions.

Similar Posts