npx claudepluginhub gentleman-programming/engram --plugin engramDefined in hooks/hooks.json
{
"Stop": [
{
"hooks": [
{
"type": "command",
"async": true,
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/session-stop.sh",
"timeout": 5
}
]
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/session-start.sh",
"timeout": 10,
"statusMessage": "Loading engram memory..."
}
],
"matcher": "startup|clear"
},
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/post-compaction.sh",
"timeout": 10,
"statusMessage": "Recovering engram context after compaction..."
}
],
"matcher": "compact"
}
],
"SubagentStop": [
{
"hooks": [
{
"type": "command",
"async": true,
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/subagent-stop.sh",
"timeout": 10
}
]
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/user-prompt-submit.sh",
"timeout": 2
}
]
}
]
}"Runs shell scripts on Stop, SessionStart (startup/clear/compact), SubagentStop, UserPromptSubmit to load cortex memory, recover context post-compaction, and manage session lifecycle. No bash or file writes."