{ "hooks": { "SessionStart": [ { "matcher": "startup|resume|compact", "hooks": [ { "type": "command", "command": "${CLAUDE_PLUGIN_ROOT}/scripts/on_session_start.sh", "statusMessage": "Loading mem0 context..." } ] } ], "PreToolUse": [ { "matcher": "Write|Edit", "hooks": [ { "type": "command", "command": "${CLAUDE_PLUGIN_ROOT}/scripts/block_memory_write.sh" } ] } ], "PreCompact": [ { "hooks": [ { "type": "command", "command": "${CLAUDE_PLUGIN_ROOT}/scripts/on_pre_compact.sh", "statusMessage": "Preparing pre-compaction summary..." }, { "type": "command", "command": "python3 ${CLAUDE_PLUGIN_ROOT}/scripts/on_pre_compact.py", "statusMessage": "Saving session state to mem0...", "timeout": 30 } ] } ], "Stop": [ { "hooks": [ { "type": "command", "command": "${CLAUDE_PLUGIN_ROOT}/scripts/on_stop.sh", "timeout": 10 } ] } ], "UserPromptSubmit": [ { "hooks": [ { "type": "command", "command": "${CLAUDE_PLUGIN_ROOT}/scripts/on_user_prompt.sh", "statusMessage": "Checking memory relevance...", "timeout": 5 } ] } ], "TaskCompleted": [ { "hooks": [ { "type": "command", "command": "${CLAUDE_PLUGIN_ROOT}/scripts/on_task_completed.sh", "timeout": 10 } ] } ] } }