Pattern 04: shared memory (the blackboard)
How does a shared blackboard work?
A shared knowledge base that agents use to post and retrieve information.
An agent that discovers something writes it; others check the board before acting. Nobody has to forward facts to every other agent.
It shows up in many forms: LangGraph's shared state object that every node reads and updates; Microsoft Agent Framework's Group Chat, where agents share one conversation; Letta's stateful agents with long-term memory; and BAND's cross-agent Memories.
Why do teams pick shared memory?
It answers the Cognition complaint directly. If "share context" is the rule, a shared store is the most literal way to follow it. It scales better than every agent messaging every other agent, which grows as n(n-1)/2 connections. And it gives humans something to inspect.
Where does shared memory break?
Stale reads. Agent B reads the board, starts a long task, and in the meantime Agent A updates the fact B depended on.
Conflicting writes. Two agents record different answers to the same question. Without ownership rules, last write wins, and it may be the wrong one.
Everything-in-the-pot. If every agent writes everything, the board becomes a second context window problem: too long to read, so agents skim.
Privacy. Not every agent should see every fact. A2A's design deliberately lets agents collaborate "without needing to share internal memory, tools, or proprietary logic." (A2A) Shared memory needs scopes.
Anthropic's caution also applies: tasks that "require all agents to share the same context" are hard for multi-agent systems today. A shared store helps but does not make tightly coupled work parallel. (Anthropic)
When does shared memory work, and when does it break?
When it works
- Many agents contribute facts to one picture (research, incident review)
- Facts have a clear owner
- You can scope who sees what
- Humans want to inspect state
When it breaks
- Agents act on facts that changed
- Writes conflict without ownership
- The store grows unread
- Agents from different vendors must keep internals private
Which tools use shared memory?
| Tool | How it coordinates | Good for | Source |
|---|---|---|---|
| LangGraph | Shared graph state with checkpoints | Single-app state | LangChain docs |
| Microsoft Agent Framework | Group Chat orchestration (shared conversation) | Discussion-style agents | Microsoft Learn |
| Letta | Stateful agents with long-term memory; subagents | Memory-heavy agents | Letta |
| BAND | Cross-agent Memories plus rooms; three-tier isolation (personal, org, global) | Shared context across frameworks | BAND platform |
What do people ask about shared memory?
Not sure which pattern fits?
Six questions, about a minute. You'll get a pattern, a shortlist and the tradeoffs.
Last reviewed: September 2026