Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.176 Home All releases olderv2.1.175 v2.1.177newer
Claude Code v2.1.176

rm/rmdir Safety Analysis Expanded

The dangerous-removal checker that guards rm and rmdir commands has been significantly reworked with several new detection patterns:

  • Detects when a cd precedes a relative glob removal, making the target statically unresolvable
  • Detects when the removal target (after glob expansion) cannot be resolved to a directory
  • Detects when a glob pattern traverses multiple directories that cannot be statically enumerated (more than one wildcard level deep)
  • Now checks against all configured working directories, not just the primary CWD — additional working directories and their parents are also protected
  • The old check ("remove CWD or its parent") has been replaced by the more precise "workspace directory" check
Evidence

Removal safety expansion (search for "This command changes directories before the removal" and "This command's glob pattern traverses directories")

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.176 →