Show HN: Claude Code Hooks – Block dangerous commands, protect secrets

1 pointsposted 4 hours ago
by karanb192

1 Comments

karanb192

4 hours ago

Author here. Built these after Claude tried to run rm -rf ~/ during a debugging session.

Wrote up a deeper dive on hooks here: karanbansal.in/blog/claude-code-hooks

Happy to answer questions.