Defined in hooks/hooks.json
{
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/pre-tool-use.js",
"timeout": 3000,
"description": "Warns about unreviewed code before committing",
"continueOnError": true
}
],
"enabled": true,
"matcher": "Bash",
"priority": 100,
"description": "Validate code quality before git commits"
}
],
"SessionEnd": [
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/session-end.js",
"timeout": 5000,
"description": "Creates session summary with statistics and recommendations",
"continueOnError": true
}
],
"enabled": true,
"priority": 85,
"description": "Generate comprehensive AI pair programming session report"
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/post-tool-use.js",
"timeout": 5000,
"description": "Monitors file changes and suggests code review after 5 files or 5 minutes",
"suppressOutput": true,
"continueOnError": true
}
],
"enabled": true,
"matcher": "Write|Edit",
"priority": 60,
"description": "Track code changes and suggest review after significant modifications"
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/init-config.js",
"timeout": 5000,
"description": "Creates default configuration file if it doesn't exist",
"suppressOutput": true,
"continueOnError": true
}
],
"enabled": true,
"priority": 100,
"description": "Initialize plugin configuration at session start"
}
]
}{
"riskFlags": {
"touchesBash": true,
"matchAllTools": false,
"touchesFileWrites": true
},
"typeStats": {
"command": 4
},
"eventStats": {
"PreToolUse": 1,
"SessionEnd": 1,
"PostToolUse": 1,
"SessionStart": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 4,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 0
}
}