tags

#Hooks

Click a filter to scope results to projects or posts.

posts 04 May 2026

Claude Code Hooks: Event-Driven Automation in Your Agent

Hooks let you run shell commands automatically at specific points in Claude Code's lifecycle — before a tool runs, after an edit, when a session starts, when Claude stops. They are the harness's escape hatch for enforcing conventions, running formatters, sending notifications, and gating risky actions.