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.
| Option | How it captures | How it recalls | Who shares it |
|---|---|---|---|
| Glen | Hooks, every turn | Added to each prompt | Your organization, filtered per user |
| Committed AGENTS.md | Someone edits it | Read each session | Anyone with the repo |
| Codex memories | Codex's own notes, opt-in | Loaded from $CODEX_HOME/memories/ | One machine |
| Reference MCP memory server | Whatever the model chooses to write | When the model queries it | One machine (local JSONL file) |
| Mem0 or Supermemory | When the agent or your code calls the API | When the agent searches | Whoever 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.