How prompt-based hooks work
Instead of executing a Bash command, prompt-based hooks:
- Send the hook input and your prompt to a Claude model, Haiku by default
- The LLM responds with structured JSON containing a decision
- Claude Code processes the decision automatically