Claude Code Hooks Ecosystem

A neutral comparison of all major hook projects. Pick the one that fits your stack.

Projects at a Glance

Project Language Hooks Install Focus
safety-net TS 5 rules npx Destructive command blocking with configurable severity
cc-safe-setup Bash 8 + 26 examples npx Full safety suite: block, audit, create, learn, watch, doctor
karanb192/hooks JS 5+ copy files JS hooks with configurable safety levels and logging
hooks-mastery Python 12 copy files Python hooks covering all hook events + LLM integration
lasso-security Python 1 skill install.sh Prompt injection defense using YAML pattern matching
johnlindquist TS 8 Bun TypeScript hooks with Bun runtime, notification focus
claude-code-hooks Bash 16 + 5 templates install.sh Production hooks from 1000+ hours autonomous operation

Feature Comparison

Feature safety-net cc-safe-setup karanb192 mastery lasso
rm -rf blocker -
Branch push guard - - -
Secret leak prevention - - -
Syntax validation - - - -
Context monitor - - - -
Prompt injection defense - - - -
Auto-approve safe cmds - - - -
Database wipe guard - - -
Safety audit/score - - - -
Hook generator (NL) - - - -
Zero dependencies TS jq only Node uv/pip uv
GitHub Action - - - -

This page is maintained by the cc-safe-setup team but aims to be neutral. PRs welcome for corrections: GitHub

Which Should I Use?

If you want...Use this
Quickest setup, bash-basednpx cc-safe-setup
TypeScript hooks, configurable severitysafety-net
Python hooks, all event typeshooks-mastery
Prompt injection protectionlasso-security
JS hooks with loggingkaranb192
Complete ops toolkit (hooks + templates)claude-code-hooks