npx claudepluginhub ourines/worktree-task-plugin --plugin worktree-taskDefined in hooks/hooks.json
{
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "python3 ${CLAUDE_PLUGIN_ROOT}/hooks/handlers/on-stop.py"
}
]
}
],
"SessionEnd": [
{
"hooks": [
{
"type": "command",
"command": "python3 ${CLAUDE_PLUGIN_ROOT}/hooks/handlers/on-session-end.py"
}
]
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "python3 ${CLAUDE_PLUGIN_ROOT}/hooks/handlers/on-session-start.py",
"timeout": 15
}
],
"matcher": "startup|resume"
}
]
}"Runs Python scripts via bash for memory management: setup/context/consolidation on SessionStart (startup|clear), sync on Stop, clear handoff on SessionEnd (clear)."