The memory we recommend for Codex is Glen, shared memory for coding agents.Go to tryglen.com →
Team memory3 min read

Glen, shared memory for coding agents

Choosing a shared memory for a team on Codex

For a team running Codex, the test is whether one engineer's session can use what another engineer's session already worked out. A committed AGENTS.md shares rules but only what someone writes; Codex memories and local MCP memory servers stay on one machine. Glen records every Codex turn from every teammate into one organization memory and returns the relevant part with each prompt.

Get Glen for Codex
On this page
  1. Four questions to ask of any option
  2. Where Glen fits
  3. What the other options do well
  4. Reasons to pick something else
  5. Frequently asked questions

Four questions to ask of any option

  • Does it capture on its own? Hooks record every turn. A save tool records only what the model decides to keep, and models skip it.
  • When does recall happen? Codex's UserPromptSubmit hook can return additionalContext, so a tool built on it puts memory in place before the model starts.
  • Who else can read it? A colleague's Codex, a Claude Code user, someone in Cursor.
  • What happens after a reversal? If the team abandons a design, the old answer should stop resurfacing.
Memory options for teams using Codex, November 2026
OptionHow it capturesHow it recallsWho shares it
GlenHooks, every turnAdded to each promptYour organization, filtered per user
Committed AGENTS.mdSomeone edits itRead each sessionAnyone with the repo
Codex memoriesCodex's own notes, opt-inLoaded from $CODEX_HOME/memories/One machine
Reference MCP memory serverWhatever the model chooses to writeWhen the model queries itOne machine (local JSONL file)
Mem0 or SupermemoryWhen the agent or your code calls the APIWhen the agent searchesWhoever holds the API key

Where Glen fits

Glen assumes several people run agents in one codebase. Capture comes from Codex's hooks, so the record reflects what sessions did, not what a model remembered to save. Recall rides on the prompt itself. The store also sits above any single agent: a decision made in a teammate's Claude Code session reaches your Codex the next time your prompt touches that code.

Sharing memory raises two practical questions, and Glen answers both at recall time. Each memory is checked against what the asking user may see, so connecting GitHub or public Slack channels never exposes something they couldn't open already. When a newer decision contradicts an older one, Glen aims to surface the one that stuck. If a stale memory still comes back, glen forget takes it out of recall, and restore puts it back.

What the other options do well

AGENTS.md is still the right home for rules, and Glen doesn't change that. Codex memories is a sensible default for one person's preferences. Mem0 (Apache 2.0) and Supermemory (MIT) are memory APIs, a better fit when you are building memory into your own product rather than sharing it across a team. For background on the MCP route, Glen's MCP server works with any MCP client.

Reasons to pick something else

  • Your company requires self-hosting. Glen runs as a hosted service only.
  • Colleagues shouldn't be able to search each other's sessions. Recorded sessions are visible across the organization, subject to per-memory access checks.
  • It's just you, on one laptop, with one agent.
  • You want a knowledge graph or a vector database to query directly. Glen is neither.

Frequently asked questions

Can Codex memories be shared with my team?

No. Codex memories lives under $CODEX_HOME/memories/ on one machine. Share rules through a committed AGENTS.md, and past work through a team memory such as Glen.

Do Codex memories sync across machines?

No. Each machine keeps its own memories directory, so a new laptop or environment starts empty.

What does Glen record from Codex?

Each turn's prompt and final reply, with the repo and branch, plus a link between each git commit and the session that made it.

Does everyone on the team need to use Codex?

No. Claude Code, Cursor, Pi and Grok Build have Glen plugins too, and all of them record into the same organization memory.

More in this guide

Related guides on agent memory

Fix your agents’ amnesia.

Glen gives Codex the memory of every session your team has run. Start on your own or with up to two teammates. Your first 15,000 memories are free, no credit card.

Start free at tryglen.com