Defined in ./hooks/hooks.json
{
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "bash -c 'echo \"[PLUGIN-HOOK] mkdir detected at $(date)\" >> plugin-hook-log.txt'"
}
],
"matcher": "Bash.*mkdir"
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "bash -c 'echo \"[PLUGIN-HOOK] Write tool used at $(date) in $(pwd)\" >> plugin-hook-log.txt'"
}
],
"matcher": "Write"
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/session-start-hook.sh"
}
],
"matcher": ".*"
}
]
}{
"riskFlags": {
"touchesBash": true,
"matchAllTools": false,
"touchesFileWrites": true
},
"typeStats": {
"command": 3
},
"eventStats": {
"PreToolUse": 1,
"PostToolUse": 1,
"SessionStart": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 1,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 3
}
}