Get the latest tech news
Claude Code now supports hooks
Customize and extend Claude Code's behavior by registering shell commands
Hooks provide deterministic control over Claude Code’s behavior, ensuring certain actions always happen rather than relying on the LLM to choose to run them. By encoding these rules as hooks rather than prompting instructions, you turn suggestions into app-level code that executes every time it is expected to run. In this quickstart, you’ll add a hook that logs the shell commands that Claude Code runs.
Or read this on Hacker News