97a3a2cf8d
- Add /mem0:dream --schedule support via Claude Code /schedule command with local launchd/cron fallback for non-cloud users - Add /mem0:digest --schedule and file output to ~/.mem0/weekly-digest.md with digest-history.log for trend tracking - Add on_post_commit.sh PostToolUse hook: interactive prompt after git commit asking user to save change as memory with category suggestion - Add on_bash_output.sh PostToolUse hook: detects stack traces and error patterns in bash command output, injects mem0 search rubric for prior occurrences (complements existing user prompt error detection) - Fix session-end report: now shows per-category breakdown "wrote 3 memories (decision 2, anti_pattern 1)" matching spec - Wire new hooks into all 3 platforms (Claude Code, Cursor, Codex) - Add post_commit and bash_error telemetry events - Add CTO demo testing guide with tier-by-tier manual test steps
72 lines
1.5 KiB
JSON
72 lines
1.5 KiB
JSON
{
|
|
"hooks": {
|
|
"SessionStart": [
|
|
{
|
|
"matcher": "startup|resume",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "${CODEX_PLUGIN_ROOT}/scripts/on_session_start.sh",
|
|
"statusMessage": "Loading mem0 context..."
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"UserPromptSubmit": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "${CODEX_PLUGIN_ROOT}/scripts/on_user_prompt.sh",
|
|
"statusMessage": "Checking memory relevance...",
|
|
"timeout": 5
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"PostToolUse": [
|
|
{
|
|
"matcher": "mcp__mem0__",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "${CODEX_PLUGIN_ROOT}/scripts/on_post_tool_use.sh",
|
|
"timeout": 3
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": "Bash",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "${CODEX_PLUGIN_ROOT}/scripts/on_post_commit.sh",
|
|
"timeout": 5
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": "Bash",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "${CODEX_PLUGIN_ROOT}/scripts/on_bash_output.sh",
|
|
"timeout": 5
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"Stop": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "${CODEX_PLUGIN_ROOT}/scripts/on_stop_codex.sh",
|
|
"timeout": 10
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|