npx claudepluginhub vvkmnn/claude-emporium --plugin claude-praetorianDefined in hooks/hooks.json
{
"PreCompact": [
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/hooks/pre-compact.js"
}
],
"matcher": "*",
"description": "Save context before compaction resets it"
}
],
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/hooks/pre-plan.js"
}
],
"matcher": "EnterPlanMode",
"description": "Check for prior compactions before planning"
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/hooks/post-research.js"
}
],
"matcher": "WebFetch|WebSearch",
"description": "Compact after web research"
}
],
"SubagentStop": [
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/hooks/post-subagent.js"
}
],
"matcher": "*",
"description": "Compact subagent findings when agent completes"
}
]
}"Reminds to merge into existing compactions on PreCompact; nudges to check before Task/WebSearch/WebFetch tools and update after WebFetch/WebSearch or SubagentStop, via Node scripts."