Claude Code 2.1.330 asks approval for more root-level rm commands
Anthropic's changelog says more rm commands aimed at the root, home, a top-level folder or the working folder now ask for approval.
Anthropic's Claude Code 2.1.330 changelog, dated November 20, 2026, widens the set of rm commands that must be approved before they run. According to the changelog, rm commands aimed at the root, the home folder, a top-level folder or the working folder now ask the user for approval. Where nobody can answer the prompt, those commands are refused rather than run.
The changelog says "more" rm commands are covered but doesn't list which forms are newly caught or what the rule covered before. It also doesn't define "top-level folder" or "working folder", so how far the rule reaches in practice depends on terms the changelog leaves undefined. For sessions where nobody can answer a prompt, the changelog says the command is refused instead of waiting for approval.
What changed
More rm commands aimed at the root, home folder, a top-level folder or the working folder now ask for approval, and are refused where nobody can answer the prompt.
Type: Breaking change · Takes effect: Friday, November 20, 2026 · Applies to: Claude Code 2.1.330, rm commands
Why it matters
Agent workflows that run shell commands get stricter default protection against deleting key directories, which may stop some unattended jobs.
What you can do
Teams running Claude Code unattended should check that refused rm commands will not stall their pipelines.
Original source
Where we saw it
Claude Code changelog
AI wrote this summary from the sources listed, and nobody reviewed it individually before publication. Check the original source before you rely on it. How it works