# hooks/ **Claude Code only.** Hook definitions that run in response to Claude Code events. The `hooks.json` in this directory is read by Claude Code. Structure: ```json { "hooks": { "PostToolUse": [ { "matcher": "Bash", "hooks": [ { "type": "command", "command": "echo 'tool used'" } ] } ] } } ``` Supported events: `PreToolUse`, `PostToolUse`, `Notification`, `Stop`. Use `${CLAUDE_PLUGIN_ROOT}` to reference scripts inside this plugin — the plugin runs from a cache path after install, not its original repo location. For GitHub Copilot CLI hooks, see `hooks.json` at the plugin root.