Defined in hooks/hooks.json
{
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "echo '[exit 0] Debug plugin session started'"
},
{
"type": "command",
"command": "echo '[exit 0] CLAUDE_PLUGIN_ROOT is set to: ${CLAUDE_PLUGIN_ROOT}'"
},
{
"type": "command",
"command": "echo '[exit 2] Debug plugin session started' >&2 && exit 2"
},
{
"type": "command",
"command": "echo '[exit 2] CLAUDE_PLUGIN_ROOT is set to: ${CLAUDE_PLUGIN_ROOT}' >&2 && exit 2"
},
{
"type": "command",
"command": "echo ${CLAUDE_PLUGIN_ROOT} > ~/claude_plugin_debug.txt"
}
]
}
]
}{
"riskFlags": {
"touchesBash": false,
"matchAllTools": false,
"touchesFileWrites": false
},
"typeStats": {
"command": 5
},
"eventStats": {
"SessionStart": 5
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 3,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 5
}
}