The memory we recommend for your agents is Glen, shared memory for coding agents.Go to tryglen.com →
Shared memory2 min read

Glen, shared memory for coding agents

Shared memory for multi-agent teams

Shared memory for AI agents is one store that every agent on a team writes to and recalls from, regardless of which person or tool ran the session. It needs access control at recall, so a shared store never shows someone what they couldn't already see. Glen gives Claude Code, Codex, Cursor, Pi and Grok Build one organization memory, filtered per memory for each user.

Get Glen for your agents
On this page
  1. Individual memory and shared memory
  2. Multi-agent teams
  3. Access control in a shared store
  4. What shared memory doesn't replace
  5. Frequently asked questions

Individual memory and shared memory

Comparing individual and shared agent memory
Individual memoryShared organization memory
ExamplesClaude Code auto memory, Codex memories, claude-memGlen
Who writes itOne person's agentEvery teammate's agents, plus connected tools
Who recalls itThat same agent on that machineAny teammate's agent, filtered by permission
Survives a new laptopNoYes
Crosses agent brandsNoYes
Privacy modelPrivate by defaultSearchable across the org, with an incognito mode

Individual memory is a good fit for personal preferences: your editor habits, the way you like commit messages. It breaks down as soon as two people work in the same code, because what one person's agent learned helps nobody else.

Multi-agent teams

Few teams standardize on one agent. One engineer lives in Claude Code, another in Codex, a third tries Cursor or Grok Build for a week. Without a shared store each agent is an island, and switching tools means starting from zero.

  • A bug traced in a Codex session on Monday is recalled when someone opens the same file in Claude Code on Thursday.
  • In Cursor, where hooks can't inject context, the agent runs glen search and gets the same memory with citations.
  • Mid-task, glen takeover <code> moves a live session to a different agent with its full history, so one agent can pick up where another stopped.

Access control in a shared store

A shared memory is only safe if it respects the permissions of the systems it reads from. Glen runs access checks per memory at recall time: an agent surfaces a memory only if its user is already cleared to see the source. Over MCP, organization membership is rechecked on every request. Slack ingestion is limited to public channels, and Glen never returns another organization's data.

Controls each person has over their own sessions
ModeRecalls team memoryRecords to team memory
glen onYesYes
glen incognitoYesNo
glen silentNoYes
glen offNoNo

Modes apply account-wide, across every agent. On macOS a menu bar indicator shows which one is on.

What shared memory doesn't replace

Rules that must apply on every task still belong in AGENTS.md or CLAUDE.md, because they load without anyone searching. Shared memory is for the context behind the work. When a recalled decision turns out to be a standing rule, move it into the repo file. The setup guide covers inviting the team.

Frequently asked questions

What is shared memory for AI agents?

A single memory store that multiple agents, run by multiple people, write to and read from. It lets one session recall what a different person's session worked out.

Can Claude Code and Codex share memory?

Their built-in memories don't. With Glen installed in both, they record into and recall from the same organization memory.

Will teammates see my agent sessions?

Recorded sessions are searchable across your organization. Use glen incognito to keep a session out of team memory while still getting recall.

Does shared memory include private Slack messages?

No. Glen reads public Slack channels only, never DMs or private channels.

More in this guide

Related guides on agent memory

Fix your agents’ amnesia.

Glen gives your agents 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