Defined in hooks/hooks.json
{
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/session-summary.js",
"timeout": 10000,
"description": "Reads accumulated file operations and generates directory tree visualization",
"continueOnError": true
}
],
"enabled": true,
"priority": 70,
"description": "Generate session file operations summary when session ends"
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/track-operation.js",
"timeout": 5000,
"description": "Records file operation to accumulated tracking file",
"suppressOutput": true,
"continueOnError": true
}
],
"enabled": true,
"matcher": "Write|Edit|Read|NotebookEdit",
"priority": 50,
"description": "Track file operations in real-time as they happen"
}
],
"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": true
},
"typeStats": {
"command": 3
},
"eventStats": {
"Stop": 1,
"PostToolUse": 1,
"SessionStart": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 3,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 0
}
}