Defined in hooks/hooks.json
{
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/auto-open-file.js",
"description": "Opens modified file in VSCode without focusing",
"suppressOutput": true,
"continueOnError": true
}
],
"enabled": true,
"matcher": "Write|Edit",
"priority": 50,
"description": "Auto-open modified files in VSCode without focus"
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/init-config.js",
"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": 2
},
"eventStats": {
"PostToolUse": 1,
"SessionStart": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 2,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 2
}
}