Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.323 ·

Stricter check on dangerous rm commands, and results name the rule that matched

Claude Code's check on risky rm commands now inspects redirects, backticks and nested commands, asks when unsure, and names the rule that fired

Group of 2 You'll notice Internal Changes
JSON All of v2.1.323
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
PermissionsArea: what it touches
Internal ChangesKind: in v2.1.323,
ImprovementsSection of the release

What

Before Claude runs a shell command that deletes files with rm, Claude Code checks whether it could be dangerous. A risky command needs your approval first. This check was reworked.

  • The result of a dangerous-removal check now includes removalRule, the rule that matched.
  • File redirect targets, the files a command writes into with >, are now collected and checked again.
  • Text inside backticks, a way to run one command inside another, is also collected and checked again. One check is named backtick_body_overrun.
  • The command text is checked a second time in a nested pass, marked rereading.
  • When the check cannot finish, it now falls back to one shared ask-for-approval result, nestedSpansOverrun, instead of failing with an error. The message reads "not ruled out - some nested commands or function substitutions could not be analyzed".
  • An outer safety net catches any other error and returns the same ask.
  • Asks caused by a variable that could expand to nothing are tagged removalRule: "emptyExpansion".
  • A new usage report records the cause and the permission mode for each ask.

Before, the check only handled ${HOME} spans.

Why

Some rm commands that used to run without a prompt now ask for approval first. This is most likely when the command is built from redirects, backticks or substitutions. The removalRule field makes it possible to show which rule triggered the prompt.

See this entry in the whole of v2.1.323 →

Feedback