It installs config into ~/.codex/config.json but codex uses ~/.codex/config.toml.
Also hooks are not installed for codex at all.
Here's example ~/.codex/hooks.json, hooks should be enabled with
[features]
codex_hooks = true
{
"hooks": {
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "/Users/example/.npm-global/bin/cavemem hook run session-start --ide codex",
"statusMessage": "Loading cavemem context"
}
]
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "/Users/example/.npm-global/bin/cavemem hook run user-prompt-submit --ide codex"
}
]
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "/Users/example/.npm-global/bin/cavemem hook run post-tool-use --ide codex"
}
]
}
],
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "/Users/example/.npm-global/bin/cavemem hook run stop --ide codex"
}
]
}
]
}
}
It installs config into
~/.codex/config.jsonbut codex uses~/.codex/config.toml.Also hooks are not installed for codex at all.
Here's example
~/.codex/hooks.json, hooks should be enabled with{ "hooks": { "SessionStart": [ { "hooks": [ { "type": "command", "command": "/Users/example/.npm-global/bin/cavemem hook run session-start --ide codex", "statusMessage": "Loading cavemem context" } ] } ], "UserPromptSubmit": [ { "hooks": [ { "type": "command", "command": "/Users/example/.npm-global/bin/cavemem hook run user-prompt-submit --ide codex" } ] } ], "PostToolUse": [ { "hooks": [ { "type": "command", "command": "/Users/example/.npm-global/bin/cavemem hook run post-tool-use --ide codex" } ] } ], "Stop": [ { "hooks": [ { "type": "command", "command": "/Users/example/.npm-global/bin/cavemem hook run stop --ide codex" } ] } ] } }