Free tool

Claude Code Hook Builder

Choose lifecycle events, configure matchers and commands, and leave with a valid hooks block you can paste into Claude Code. Learn the event model in the hooks lifecycle primer →

Start with a recipe

Matchers are tool-name regexes for tool events; leave one empty to match every tool. Commands run locally when you paste this block into Claude Code.

Hook 1

Runs before a tool; exit 2 blocks it and stdout JSON can explain the decision.

Live settings.json preview

{
  "hooks": {}
}
0:000:00