Overview
Switch between Codex, Claude Code, Gemini, and Cursor without losing context. The recommended Codex setup is hybrid: install the package for Working Memory, automatic Codex thread capture, bundled local MCP, and nmem fallback. If you use remote Mem or a custom local port, override the bundled MCP server in Codex config.
Setup
codex plugin marketplace add nowledge-co/community
Legacy Codex fallback:
codex marketplace add nowledge-co/community
Open Codex /plugins and install nowledge-mem@nowledge-community.
Then enable the plugin in ~/.codex/config.toml:
[features]
plugins = true
codex_hooks = true
[plugins."nowledge-mem@nowledge-community"]
enabled = true
Enable automatic thread capture:
HOOK_SETUP="$(find ~/.codex/plugins/cache -path '*/nowledge-mem/*/scripts/install_hooks.py' -print 2>/dev/null | sort | tail -1)"
test -n "$HOOK_SETUP" && python3 "$HOOK_SETUP"
Restart Codex and ask "What was I working on?" to verify. The plugin includes the default local MCP endpoint.
For remote Mem, configure nmem once and generate the Codex MCP override:
nmem config client set url https://your-server
nmem config client set api-key your-key
nmem config mcp show --host codex
Update
If you installed the Codex package before 0.1.10, marketplace update alone refreshes plugin files but does not reliably install the host-level Stop hook. Run the hook setup after updating.
codex plugin marketplace upgrade nowledge-community
HOOK_SETUP="$(find ~/.codex/plugins/cache -path '*/nowledge-mem/*/scripts/install_hooks.py' -print 2>/dev/null | sort | tail -1)"
test -n "$HOOK_SETUP" && python3 "$HOOK_SETUP"
If the marketplace is not registered yet:
codex plugin marketplace add nowledge-co/community || codex marketplace add nowledge-co/community
Skills
- Working Memory: reliable session-start bootstrap
- Search: strongest when the Codex package is paired with MCP
- Save thread: Stop hook imports the real Codex transcript; the skill remains the manual fallback
- Distill: stronger when Codex can choose MCP memory-write tools directly
- Status: check connectivity