Claude Code Hooks

Shell commands that run automatically on every Claude Code event (over thirty documented events, including SessionStart, PostToolUse, SubagentStart and Stop). Configured in settings.json. Examples you can write yourself: a formatter run after each Edit, a guard checking naming conventions after each write, an alert when the context nears its limit. A hook can also feed Claude instead of policing it: a SessionStart hook that injects the relevant projects, decisions and rules when the session opens avoids loading everything permanently into CLAUDE.md.

Strengths

Limitations

Best for

Official site

View on Coeurdar