Review the decision behind it
Claude Code sees the saved decision and its source, so it stops flagging Codex’s deliberate choices as mistakes.
Let Claude Code review Codex’s code with the reasons behind it, not just the diff.
Connect Codex CLI and Claude Code to one MemoryLake project over MCP. Both agents share memory: the same decisions, each traced to how it was made.
Use case demo
Codex CLI writes the code and Claude Code reviews it. In API review, the team decided list endpoints use cursor pagination, because offset queries timed out on the 12-million-row orders table. Here is how both tools work from that decision on the same project.
Codex CLI · saved to ~/.codex/config.toml
codex mcp add memorylake --url https://app.memorylake.ai/memorylake/mcp/v2
Claude Code
claude mcp add --transport http --scope user memorylake https://app.memorylake.ai/memorylake/mcp/v2
Extracted from api-decisions.md
List endpoints use cursor pagination, not offset.
“Switch list endpoints to cursor pagination. Offset queries timed out on the 12M-row orders table.”
Rule for Codex
Before adding an endpoint, search MemoryLake for API decisions and follow them.
List endpoints use cursor pagination, not offset.
Review the diff Codex wrote for GET /orders.
Searched MemoryLake · 1 memory
List endpoints use cursor pagination, not offset.
This endpoint pages with offset. The saved decision requires a cursor: offset timed out on 12M rows. MemoryLake
Free to start · One MemoryLake project for both tools
Claude Code sees the saved decision and its source, so it stops flagging Codex’s deliberate choices as mistakes.
Claude Code reads saved decisions, not Codex’s session. A reviewer from another company stays a real second opinion.
MCP tools only read. Neither Codex nor Claude Code can rewrite a decision; a teammate with edit permission can.
AGENTS.md and CLAUDE.md both point to one MemoryLake project, so both tools apply the same rules.
Save one decision and its reason, then check both come back before you connect Codex and Claude Code.
Create your free account and open the Playground in your MemoryLake workspace.
Say “Remember that list endpoints use cursor pagination, because offset queries timed out on the 12-million-row orders table.” Open Memories to inspect the saved fact.
In a new chat, ask “How should a new list endpoint paginate, and why?” Check that the reply includes the reason.
Already have a workspace? Open your workspace, then add MemoryLake to Codex CLI and Claude Code with the commands in step 01 above.
What changes when Codex and Claude Code read the same decisions on the same project.
| Codex + Claude Code workflow | Without shared memory | With MemoryLake |
|---|---|---|
| Project rules | Copied into AGENTS.md and CLAUDE.md separately | Saved once, read by both tools |
| Claude Code’s review | Judges the diff alone | Checks the diff against saved decisions |
| Codex’s next session | Starts without past decisions | Searches decisions before writing code |
| Why a choice was made | Buried in one tool’s chat | Traced to where it was decided |
| Switching tools | Re-explain the project each time | Both read the same MemoryLake project |
| Changing a decision | Each tool keeps its own copy | One record, updated by a teammate |
Yes. Connect both tools to the same MemoryLake project over MCP and pick the same workspace and memory boundary when you sign in. They read the same saved decisions. They don’t share chat history.
Let Codex make the change, then ask Claude Code to review the diff. In CLAUDE.md, tell it to search MemoryLake for the decision behind each changed area and flag code that breaks one.
Yes. Swap the roles: put the review rule in AGENTS.md and the coding rule in CLAUDE.md. Both tools still read the same MemoryLake project.
Yes. Codex reads AGENTS.md and Claude Code reads CLAUDE.md, so each file holds that tool’s instructions. MemoryLake holds the decisions and reasons both files point to.
Not over MCP. MemoryLake’s MCP tools read and analyze; they don’t modify or delete memories. MemoryLake extracts decisions from the notes, documents, and Playground chats you add, and teammates with edit permission update them.
No. The MCP connection only reads from MemoryLake, so neither tool’s session is saved there. Claude Code sees the saved decisions and their sources, which keeps its review independent.