npx claudepluginhub laozhong86/mempalaceDefined in hooks/hooks.json
{
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/plugin-save-hook.sh",
"timeout": 60
}
],
"matcher": "*"
}
],
"PreCompact": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/plugin-precompact-hook.sh",
"timeout": 60
}
]
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/plugin-session-start-hook.sh",
"timeout": 60
}
],
"matcher": "startup|clear|compact"
}
]
}"Runs shell scripts to initialize on SessionStart, capture learnings before PreCompact, and extract them on Stop. Executes commands, no file writes or bash touches."