What a Regex-Based Claude Code Hook Can and Can't Block
A developer built and tested a minimal Claude Code PreToolUse hook that regex-matches Bash commands for destructive patterns like rm -rf and git push --force, and found it blocks literal matches but approves obfuscated v…