feat(mem0-plugin): add Codex lifecycle hooks via opt-in installer (#4917)

This commit is contained in:
Gabriel Stein
2026-04-27 22:59:35 +05:30
committed by GitHub
parent bd9d27ff50
commit 30ce028a71
20 changed files with 1608 additions and 401 deletions
+39
View File
@@ -0,0 +1,39 @@
{
"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": "Searching mem0 memories...",
"timeout": 5
}
]
}
],
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "${CODEX_PLUGIN_ROOT}/scripts/on_stop_codex.sh",
"timeout": 10
}
]
}
]
}
}