npx claudepluginhub astrosteveo/engram --plugin engramDefined in hooks/hooks.json
{
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/live-index.sh"
}
]
}
],
"PreCompact": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/live-index.sh"
}
],
"matcher": "auto|manual"
}
],
"SessionEnd": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/live-index.sh"
}
]
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/live-index.sh",
"timeout": 10
}
],
"matcher": "Edit|Write|MultiEdit|Bash|TodoWrite|Read|Glob|Grep|WebSearch|WebFetch|Task"
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/session-start.sh"
}
]
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/prompt-submit.sh",
"timeout": 5
}
]
}
]
}"Executes TypeScript hooks via bun across 6 lifecycle events: SessionStart, UserPromptSubmit, PreCompact (auto/manual), PostToolUse (Write/Edit/Bash/Task), SessionEnd, Stop. Involves bash execution and file writes."