npx claudepluginhub ivintik/private-claude-marketplace --plugin famdeck-relayDefined in hooks/hooks.json
{
"PreCompact": [
{
"hooks": [
{
"type": "command",
"command": "cd ${CLAUDE_PLUGIN_ROOT} && python3 -m cli.main --format text prime",
"timeout": 10
}
],
"matcher": "*"
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "python3 ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/register-provider.py",
"timeout": 5
},
{
"type": "command",
"command": "mkdir -p ~/.local/bin && ln -sf ${CLAUDE_PLUGIN_ROOT}/bin/relay ~/.local/bin/relay",
"timeout": 3
},
{
"type": "command",
"command": "cd ${CLAUDE_PLUGIN_ROOT} && python3 -m cli.main --format text prime",
"timeout": 10
}
],
"matcher": "*"
}
]
}"Executes the 'bd prime' command via hooks on SessionStart and PreCompact events, automating custom actions at session initialization and pre-compaction phases."