Claude Code hooks: a practical guide with examples
This story is from 2026-10-08. It is preserved in the archive; the latest stories are on the live feed.
Claude Code hooks are commands that run at fixed points in a session: before a tool runs, after a file is edited, when a prompt is submitted, when Claude stops. Unlike a line in CLAUDE.md , a hook is not advice. It always runs, and a PreToolUse hook can block the action outright by exiting with cod…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-10-08 12:00 · DEV Community — AI
Claude Code hooks: a practical guide with examples