Defined in hooks/hooks.json
{
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/backup.js",
"timeout": 10000,
"description": "Creates timestamped git commit with all changes",
"continueOnError": false
}
],
"enabled": true,
"priority": 100,
"description": "Auto-commit changes when session ends"
}
],
"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": false,
"matchAllTools": false,
"touchesFileWrites": false
},
"typeStats": {
"command": 2
},
"eventStats": {
"Stop": 1,
"SessionStart": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 2,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 0
}
}