Defined in hooks/hooks.json
{
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "if [[ \"$COMMAND\" == git*commit* ]]; then vibesafe diff; fi",
"enabled": true,
"timeout": 10
}
],
"matcher": "Bash"
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "if [[ \"$FILE_PATH\" == *.py ]] && grep -q '@vibesafe' \"$FILE_PATH\"; then vibesafe compile --target \"$FILE_PATH\" >/dev/null 2>&1 || true; fi",
"enabled": true,
"timeout": 5
}
],
"matcher": "Write"
}
]
}{
"riskFlags": {
"touchesBash": true,
"matchAllTools": false,
"touchesFileWrites": true
},
"typeStats": {
"command": 2
},
"eventStats": {
"PreToolUse": 1,
"PostToolUse": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 0,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 0
}
}