Executes custom commands before and after tool usage plus at session start and stop events.
npx claudepluginhub bifrost-mcp/cost-guardianDefined in ./hooks/hooks.json
{
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "bash <INSTALL_PATH>/hooks/scripts/session-end-summary.sh"
}
],
"matcher": ".*"
}
],
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "bash <INSTALL_PATH>/hooks/scripts/pre-tool-budget-check.sh"
}
],
"matcher": ".*"
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "bash <INSTALL_PATH>/hooks/scripts/post-tool-tracker.sh"
}
],
"matcher": ".*"
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "bash <INSTALL_PATH>/hooks/scripts/session-start-init.sh"
}
],
"matcher": ".*"
}
]
}{
"riskFlags": {
"touchesBash": false,
"matchAllTools": false,
"touchesFileWrites": false
},
"typeStats": {
"command": 4
},
"eventStats": {
"Stop": 1,
"PreToolUse": 1,
"PostToolUse": 1,
"SessionStart": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 0,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 4
}
}