Install
1
Install the plugin$
npx claudepluginhub thebushidocollective/han --plugin coreWant just this hook?
Add to a custom plugin, then install with one command.
Risk Indicators
Matches all tools
Source
Defined in hooks/hooks.json
Configuration
{
"PreCompact": [
{
"hooks": [
{
"type": "command",
"command": "han hook dispatch PreCompact",
"timeout": 5
}
]
}
],
"SessionEnd": [
{
"hooks": [
{
"type": "command",
"command": "han hook dispatch SessionEnd",
"timeout": 5
}
]
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/ensure-han.sh\"",
"timeout": 15
}
]
},
{
"hooks": [
{
"type": "command",
"command": "han coordinator ensure --background",
"timeout": 5
}
]
},
{
"hooks": [
{
"type": "command",
"command": "han plugin migrate --silent",
"timeout": 5
}
]
},
{
"hooks": [
{
"type": "command",
"command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/register-config-dir.sh\"",
"timeout": 5
}
]
},
{
"hooks": [
{
"type": "command",
"command": "han hook context",
"timeout": 10
}
]
},
{
"hooks": [
{
"type": "command",
"command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/session-references.sh\"",
"timeout": 10
}
]
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/current-datetime.sh\"",
"timeout": 5
}
]
},
{
"hooks": [
{
"type": "command",
"command": "han hook reference hooks/no-excuses.md --must-read-first \"no excuses for pre-existing issues\"",
"timeout": 5
}
]
}
],
"PermissionRequest": [
{
"hooks": [
{
"type": "command",
"command": "han hook dispatch PermissionRequest",
"timeout": 5
}
]
}
],
"PostToolUseFailure": [
{
"hooks": [
{
"type": "command",
"command": "han hook dispatch PostToolUseFailure",
"timeout": 5
}
]
}
]
}Summary
{
"riskFlags": {
"touchesBash": false,
"matchAllTools": true,
"touchesFileWrites": false
},
"typeStats": {
"command": 12
},
"eventStats": {
"PreCompact": 1,
"SessionEnd": 1,
"SessionStart": 6,
"UserPromptSubmit": 2,
"PermissionRequest": 1,
"PostToolUseFailure": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 4,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 0
}
}Stats
Stars106
Forks13
Last CommitMar 2, 2026
Actions