Articles tagged “hooks”
-
Claude Code PreModelSwitch Hook: Block or Confirm /model
How Claude Code's PreModelSwitch and PostModelSwitch hooks work: the input fields, allow/ask/deny decisions, matcher rules, and three tested example scripts.
-
Claude Code Hooks: A Practical Guide
A practical guide to Claude Code hooks. The events worth knowing, exit code semantics, matcher syntax, and working examples you can copy into settings.json.