Prevent Claude Code Shell Variable Expansion Disasters

Claude Code rm -rf with shell variables like ${LOCALAPPDATA} can delete system directories. One hook to prevent it.

npx cc-safe-setup

9,200+ tests 655 examples

Hook if field (v2.1.85) · All tools · GitHub

Related: rm -rf · force-push · if field · autonomous · all tools

Learn more: Production Guide · All Tools