npx claudepluginhub linxule/memex-plugin --plugin memexDefined in hooks/hooks.json
{
"PreCompact": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/pre-compact.py",
"timeout": 10
}
],
"matcher": "*"
}
],
"SessionEnd": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/session-end.py",
"timeout": 30
}
],
"matcher": "*"
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/session-start.py",
"timeout": 7
}
],
"matcher": "*"
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/user-prompt-submit.py",
"timeout": 3
}
],
"matcher": "*"
}
]
}"Executes Python scripts for agent persona loading and peer memory on session start, learning extraction on PreCompact/SessionEnd, and prompt routing on UserPromptSubmit. Enables persistent session memory."