Sweep 19 Sep 2026 · 02:36Z Build v2.1.278 500 read Stable v2.1.267 Latest v2.1.278 Next v2.1.278 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.273 ·

Dangerous-rm check gains a pluggable extra-deny hook

The dangerous-rm safety check for bash commands can now be extended with an extra custom check

TierUnder the hoodhow much it should matter to you
Useful1my rating, 1 to 5
Signal1worth watching, 1 to 5
AreaBash Safetywhat it touches
KindInternal Changesin v2.1.273,
Under the hood

The dangerous-rm safety check for bash commands can now be extended with an extra custom check

What

The function that screens bash commands for dangerous rm/rmdir patterns (like recursive deletes) now accepts an extra callback function as a parameter. This callback runs early, and if it returns a denial, that denial is used immediately.

Why

This makes the dangerous-rm check pluggable, allowing additional deny rules to be layered in without changing the core check itself.

See this entry in the whole of v2.1.273 →