Many Agents, One Memory: Hindsight Cross-Agent Memory in Practice
1. The real problem isn't forgetting. It's memory that doesn't travel.
If you work with AI long enough, you run into a problem worse than "forgetting":
You keep adding agents β a main assistant, a coding assistant, one on your phone, one on your computer, this client, that client β and every one of them keeps its own memory. The background you gave assistant A is unknown to assistant B. A pitfall your coding assistant already learned, your chat assistant asks you about again. Switch tools, and it's like hiring a new colleague with amnesia.
Memory follows the client, not the person. That's the root cause.
I'm a DBA, so to me this is an architecture problem. Applications used to keep their own data, until we got databases: applications and data decoupled, data belongs to data, applications just read and write. Now it's AI's turn: every agent keeps its own memory, and it's time for a memory bank. Decouple the memory layer from the agent layer. Memory follows the person; agents are just the read/write endpoints.
That's why I deployed Hindsight.
2. Hindsight's answer: one bank, many agents
Hindsight is Vectorize's open-source agent memory system (MIT license, 63,000+ stars on GitHub). Its core design is one sentence: the memory bank is separate from the agents.
In the middle sits a memory bank. Around it, a standard interface: MCP. Any MCP-capable client β Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, or your own program β connects to it and reads and writes the same bank. What one agent stores, another agent can recall the next time it is asked.
The bank holds four kinds of memory: world facts (objective facts), experiences (first-person facts), opinions (views with confidence scores), and observations (summaries of people and things). On top are three operations:
- Retain: after a conversation ends, extract the facts and store them;
- Recall: when a question comes in, retrieve relevant memories four ways in parallel β semantic, BM25 keywords, knowledge graph, timeline β then fuse and rerank them into context;
- Reflect: generate answers from memory plus your profile, and update the system's understanding of you.
The key point: Retain, Recall, and Reflect are capabilities the bank provides, not features owned by any single agent. Change agents, the memory stays. Change clients, the profile stays. That is what "cross-agent" means.
3. Is there evidence it works?
First, a caveat: sharing only helps if the memory itself is accurate. Sharing errors just spreads them faster.
On LongMemEval, the standard long-term memory benchmark, Hindsight scores 94.6% accuracy, against 74.0% for a Qdrant RAG setup on the same test; average recall takes 675 ms versus 1,600 ms. The results were independently reproduced by Virginia Tech and The Washington Post, and live scores are posted on the official benchmark site.
4. My setup today: one agent connected, the door open to all
To be honest: the agent actually connected to this bank right now is Muse β the assistant I talk to every day. It has been running for over a month, and how well it performs is why I decided to keep going.
The deployment itself is simple; any DBA will recognize it at a glance:
- One cloud server, Docker running two containers: the API (port 8888) and the control plane (port 9999);
- The database is not the one bundled in the container β an external PostgreSQL 16 with pgvector. Memory is data, and data belongs in a real database, where backup, monitoring, and scaling follow database rules;
- Public access goes through a domain and a tunnel, no ports exposed directly;
- Clients connect through MCP.
For the LLM that extracts memories, I didn't use OpenAI. I connected my own WorkBuddy gateway and use the cheap DeepSeek-V4.1-Flash β one retain costs about 0.24 credits, which is practically free. Gemini is the backup. Full backups run automatically every night and are kept for 14 days; a patrol checks every 30 minutes and stays silent when nothing is wrong.
There is one main bank, main, with 6 mind models covering six sides of my life: DBA work, novel writing, a pinyin game, Hindsight operations, personal profile, and stock investing. As of November 25, 2026, it holds 5,399 memories, 385 documents, and 100,319 links. Open the control plane and you see a "memory constellation": every node is a memory, and nodes connect by semantics, time, entities, and cause and effect.
These memories already work across sessions and across devices: something I mention on my phone, I don't have to repeat when I'm back at the computer. A new session remembers the career direction I chose, how my gateway splits accounts, and that I told it "don't keep asking me for permission, just do it."
Cross-agent is the next step, and the road is already paved: the MCP interface is right there. Any agent that connects reads and writes this same main bank. My coding assistant and backup models are next in line β no need for every agent to build its own memory, and switching agents won't lose any memory. That is also why I wrote this article: get the road working first, then share how.
One pitfall I just hit, while you're here: when I upgraded to 1.2.3 on November 21, the API container kept crash-looping after the rebuild, failing to resolve host.docker.internal. The rebuild had dropped one flag: --add-host=host.docker.internal:host-gateway. Add it back and it works. That lesson is already stored in the bank, too.
5. Four things I learned
First, memory follows the person, not the agent. This was the most important criterion when choosing. A memory solution that only works inside one client solves that client's amnesia, not your problem.
Second, the bank is the boundary. One bank can be shared by all agents, or split by person or project for isolation. You need both sharing and isolation; missing either one is a deal-breaker.
Third, memory doesn't expire β it needs tending. Hindsight has no automatic time-based expiry, and recall ranks by relevance only, not by recency. Outdated facts have to be marked invalid by hand β and that operation is reversible, so a mistake can be undone. Full deletion is blocked by default on my setup; every deletion needs a separate approval. Memory is an asset. Deleting should be ten times more deliberate than storing.
Fourth, check permissions before connecting a new client. Its MCP token holds full tool permissions on the server. Connecting it to your main assistant is fine, but every additional client is another copy of read, edit, and invalidate powers handed out. Think before you connect.
6. Who this is for
- People with more and more agents. One agent, you won't feel it. Three or more, and it starts getting messy β each with its own context, its own preferences, its own pitfalls. Centralizing memory is a matter of time.
- People across devices and clients. Phone, computer, coding tools, back and forth β if memory doesn't follow the person, you keep introducing yourself.
- DBAs and data engineers. The memory lives in Postgres. You can query it with SQL and back it up and monitor it by database rules. That has a natural pull for our profession.
- People who care about data sovereignty. Self-hosting means the memory lives on your own server. There is also an official cloud service if you'd rather not run it yourself.
7. Closing
Models keep getting cheaper, more like utilities. Agents will get more numerous and more mixed. What turns a group of agents into "your team" instead of "a bunch of temps with their own agendas" is the memory they share: your projects, your habits, your history of mistakes.
Memory shouldn't be locked inside one agent's session. It should stand on its own, like a database β any agent can connect to it, and when one leaves, it takes nothing with it.
Thanks to @vectorize_io for building Hindsight in the open.
Links:
GitHub: https://github.com/vectorize-io/hindsight
Docs: https://hindsight.vectorize.io
Live benchmarks: https://benchmarks.hindsight.vectorize.io
Architecture and benchmark images are from Hindsight's official repo, docs, and paper illustrations; the control-plane and constellation shots are real screenshots from my own deployment, with sensitive details removed. Deployment details and hands-on experience are from my own testing, version 1.2.3.