# Shared memory for multi-agent teams

URL: https://memoryforaiagents.com/shared-memory
Last updated: 2026-11-07
Published by Glen (https://tryglen.com), shared memory for coding agents.

> 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.

## Individual memory and shared memory

*Comparing individual and shared agent memory*

|  | Individual memory | Shared organization memory |
| --- | --- | --- |
| Examples | Claude Code auto memory, Codex memories, claude-mem | Glen |
| Who writes it | One person's agent | Every teammate's agents, plus connected tools |
| Who recalls it | That same agent on that machine | Any teammate's agent, filtered by permission |
| Survives a new laptop | No | Yes |
| Crosses agent brands | No | Yes |
| Privacy model | Private by default | Searchable 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](https://codexmemory.com) on Monday is recalled when someone opens the same file in Claude Code on Thursday.
- In [Cursor](https://cursormemory.com), 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*

| Mode | Recalls team memory | Records to team memory |
| --- | --- | --- |
| `glen on` | Yes | Yes |
| `glen incognito` | Yes | No |
| `glen silent` | No | Yes |
| `glen off` | No | No |

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

> **Put your team's agents on one memory** Free for up to 3 people. Each teammate runs one install command and joins the same organization. Install: `npx @tryglen/cli@latest install`. Start free at https://tryglen.com

## 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](https://memoryforaiagents.com/setup) 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.
