Claude Code hooks

Shell commands that Claude Code runs automatically at lifecycle events such as before or after a tool call, so rules can be enforced by code rather than requested in prose.

Events include
PreToolUse, PostToolUse, UserPromptSubmit, Stop, SessionStart

Connected

More agent tooling & protocols

Sources