Claude Code and Codex read the same notes on my server through MCP, with rules for what gets saved. Here's the setup and a cheap version to try.

How I gave Claude and Codex one shared memory

I build apps, voice agents and automations with Claude Code and Codex every day, for my own products and for clients. Both tools remember things about me, but they remembered different things. Tell Claude something useful and I'd still have to tell Codex. I had become the office messenger for my own engineers.

One shared place for memory fixed it, with a few strict rules about what goes in. Below is the setup, then six steps you can copy without building anything.

One memory on my server, reached through MCP

Mana keeps my working memory as plain notes on a server at home. Claude Code and Codex reach it through MCP (Model Context Protocol), a standard way for AI tools to connect to other systems. Any other tool can use the same memory if it supports MCP and I connect it.

I can open the notes, read them, fix them and take them anywhere. If I switch tools tomorrow, I keep everything.

Every connected agent is told to start the same way:

  1. Read a one-page brief on how to work with me.
  2. Ask Mana for what's relevant to this project and this conversation.
  3. Check this project's inbox.

Step 2 matters most. Mana doesn't dump my whole life into every chat. The agent gets the short brief plus the few memories that fit what we're doing. One honest limit: the notes live on my server, but that relevant context still goes to whichever AI tool I'm using.

The rules for what gets kept

Useful work facts are saved without asking. How a server is set up. What a system needs. The lesson from a nasty bug. Non-sensitive facts that save a future session from working something out again. The agent tells me what it kept.

Personal memories wait for my OK. My preferences, my decisions, my habits. The agent proposes, I approve, then it's written.

New facts are checked against old ones. A repeat confirms what Mana already knows. A correction replaces the older fact but keeps its history, with dates showing what used to be true. A weekly pass merges duplicates and flags stale or conflicting facts.

Sometimes the right answer is no memory. If nothing matches strongly enough, Mana returns nothing extra. The agent gets fewer weak guesses to work from.

Every project gets a mailbox

When an agent finishes something another project needs, it leaves a message addressed to that project. The next agent checks the inbox when it starts, whether that's tomorrow or next month, Claude or Codex.

One recent message was a report from a finished writing run: the drafts it kept, the ones it rejected and why. The run was over, but its reasoning was still there for the next session. A live conversation is a walkie-talkie: if nobody's listening, the message is gone. A mailbox holds the letter until someone opens it.

Mana also keeps a directory of my projects: where each one lives, what it's built with and what it's for. Say "fix the form on the website" and the agent looks it up instead of guessing which copy to open.

The payoff: I can pick up a project in Codex that I last touched in Claude Code, and it already knows what's in progress and what's next. No re-briefing. I didn't carry anything across.

The one-page brief every agent reads first

The simplest part has made the biggest difference: one page about how to work with me.

  • Anything that needs me goes first, with one question at most. If nothing does, say so in the first line.
  • Talk product, not code: what changed, why, and is it live or only on my machine.
  • Pull me back from tangents. If I'm bikeshedding (arguing over small details while the big decision waits), say so in one sentence. I asked for this one. I need it.

The brief also has a glossary, because I dictate everything and the transcriber has opinions. "Comics" means Convex. "Mercel" means Vercel. "Brocum" means "bro, c'mon". No, it's not a product.

What this doesn't solve

The agent still has to ask for context and read what comes back. Mana can't see conversations I haven't connected. It can miss a useful memory, and an old note can still be wrong. I still decide what to build and check whether it works. What I've lost is the time spent rebuilding what we already knew.

Start with the brief and a glossary

1. Write one brief for all your tools. For a project, put the shared instructions in AGENTS.md, which Codex reads. Claude Code can read it too: a CLAUDE.md beside it containing @AGENTS.md is an explicit way to share the same file. Say what you're building, how you want answers and what needs your approval. Steal my rules above.

2. Add a glossary. If you dictate, list the words that get mangled. If you type, list your shorthand: project nicknames, client abbreviations.

3. Keep shared notes in one folder. Give each tool access, directly or through an MCP filesystem connector. Tell agents where the notes are and when to read them. A shared folder gives you a common record. Selective search, approvals and automatic cleanup are extra machinery you can add later.

4. Decide what may be saved without asking. Useful, non-sensitive work facts are a good start. Personal details and anything sensitive need a clear line. Keep only what a future session will need.

5. Weed it. Read the notes now and then. Fix what's wrong, combine repeats and retire stale facts. Do it by hand before you automate any of it.

6. More than one project? Add a mailbox and a directory. One inbox note per project, plus a list of where each project lives. Tell agents to read their inbox when they start and to leave a handoff when another project needs one.

Write the brief and the glossary this week. Run your next three sessions with them, and only build more when you hit a wall they don't solve.


Claude drafted this post from a conversation we had, and Codex edited it.