Executes bash commands and modifies files before, during, and after tool usage, sessions, and subagent events.
npx claudepluginhub sienklogic/towlineDefined in hooks/hooks.json
{
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/auto-continue.js",
"statusMessage": "Checking for next command..."
}
]
}
],
"PreCompact": [
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/context-budget-check.js",
"statusMessage": "Preserving state before compaction..."
}
]
}
],
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/pre-bash-dispatch.js",
"statusMessage": "Validating Bash command..."
}
],
"matcher": "Bash"
},
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/pre-write-dispatch.js",
"statusMessage": "Checking write rules..."
}
],
"matcher": "Write|Edit"
}
],
"SessionEnd": [
{
"hooks": [
{
"type": "command",
"async": true,
"command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/session-cleanup.js",
"timeout": 30,
"statusMessage": "Cleaning up session..."
}
]
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/post-write-dispatch.js",
"statusMessage": "Validating write output..."
}
],
"matcher": "Write|Edit"
},
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/post-write-quality.js",
"statusMessage": "Running quality checks..."
}
],
"matcher": "Write|Edit"
},
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/check-subagent-output.js",
"statusMessage": "Validating agent output..."
}
],
"matcher": "Task"
},
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/suggest-compact.js",
"statusMessage": "Checking context budget..."
}
],
"matcher": "Write|Edit"
},
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/track-context-budget.js",
"statusMessage": "Tracking context budget..."
}
],
"matcher": "Read"
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/progress-tracker.js",
"statusMessage": "Loading project state..."
}
]
}
],
"SubagentStop": [
{
"hooks": [
{
"type": "command",
"async": true,
"command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/log-subagent.js stop",
"timeout": 30,
"statusMessage": "Logging agent completion..."
}
]
},
{
"hooks": [
{
"type": "command",
"async": true,
"command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/event-handler.js",
"timeout": 10,
"statusMessage": "Checking for auto-verification..."
}
]
}
],
"SubagentStart": [
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/log-subagent.js start",
"statusMessage": "Logging agent spawn..."
}
]
}
],
"PostToolUseFailure": [
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/log-tool-failure.js",
"statusMessage": "Logging tool failure..."
}
]
}
]
}{
"riskFlags": {
"touchesBash": true,
"matchAllTools": true,
"touchesFileWrites": true
},
"typeStats": {
"command": 15
},
"eventStats": {
"Stop": 1,
"PreCompact": 1,
"PreToolUse": 2,
"SessionEnd": 1,
"PostToolUse": 5,
"SessionStart": 1,
"SubagentStop": 2,
"SubagentStart": 1,
"PostToolUseFailure": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 15,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 12
}
}