Executes bash commands at key events like session start, tool use, and agent termination.
/plugin marketplace add ao-cyber-systems/devflow-claude/plugin install devflow@devflow-claudeDefined in hooks/hooks.json
{
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/stop-hook.sh",
"timeout": 60
}
]
}
],
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/security-hook.sh"
}
],
"matcher": "Bash"
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/session-start-hook.sh",
"timeout": 10
}
],
"matcher": "startup"
},
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/session-start-hook.sh",
"timeout": 10
}
],
"matcher": "resume"
},
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/session-start-hook.sh",
"timeout": 10
}
],
"matcher": "compact"
}
],
"SubagentStop": [
{
"hooks": [
{
"type": "command",
"command": "echo 'TRD implementation complete. Check results and update task status.'"
}
],
"matcher": "trd-implementer"
}
]
}{
"riskFlags": {
"touchesBash": true,
"matchAllTools": false,
"touchesFileWrites": false
},
"typeStats": {
"command": 6
},
"eventStats": {
"Stop": 1,
"PreToolUse": 1,
"SessionStart": 3,
"SubagentStop": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 5,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 2
}
}