Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.305 ·

Approval prompt for rm on a command's output now checks more of the command

The approval check for a recursive rm aimed at a command's output now also looks at extra parts of the command

You'll notice Improvements
JSON All of v2.1.305
You'll noticeTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
Bash SafetyArea: what it touches
ImprovementsKind: in v2.1.305,
ImprovementsSection of the release

Unclear Which extra parts of a command are now checked is not stated.

What

Claude Code asks for approval before a recursive rm whose target is entirely the output of a command substitution, such as rm -rf "$(pwd)". A command substitution is a $(...) inside a command, replaced by whatever the inner command prints. This check now also looks at additional command text as well as the separate commands it already examined.

Setting CLAUDE_CODE_DISABLE_SUBSTITUTION_RM_PROMPT still turns this check off.

Why

The safety check now covers more ways of writing a shell command.

Read from
Feature flag
tengu_iridescent_boot Not enough to say

Nothing here resolved what this flag was doing on this version, so nothing here should be read as on or off.

This account: no value returned · anonymous baseline: no value returned · compiled default in v2.1.305: on

These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.

Read once, for one account on one subscription tier, against v2.1.305. It isn't a statement about your account. What a flag value here can and cannot tell you

How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtWhich extra parts of a command are now checked is not stated.

See this entry in the whole of v2.1.305 →

Feedback