Five AI Agents Now Share One Memory: Search Finds the Right Page in 89% of Cases
Five AI agents on three machines had no idea what the others were doing, so the author built them a shared wiki of markdown files in Obsidian. Across 66 test questions, hybrid search, which combines keyword and semantic matching, put the correct page first in 59 cases (89%). Keyword search alone managed 52 (79%). For anyone running several agents, investing in shared memory may pay off more than choosing a particular model. The setup is unusually practical. Everything lives in plain markdown files, nothing is locked in a proprietary database, and no existing note is ever overwritten.
AI-processed from X: @kaostyl; edited by Hamidun News
When you have one AI assistant, memory is not a problem: it remembers its own chat. When you have five agents, confusion sets in. One made an architectural decision yesterday, a second proposes the opposite today, and a third has no idea you already worked through this bug.
The author of the post, @kaostyl on X, took his cue from Andrej Karpathy's idea of an "LLM wiki": a knowledge base made of ordinary text files that the models themselves can work with. He built a shared Obsidian wiki for Claude, two Hermes agents, Codex and ChatGPT. Tested on 66 questions, hybrid search, which matches both keywords and meaning, ranked the correct page first in 59 cases, roughly 89%.
Keyword-only search managed 52 cases, about 79%.
How the shared memory works
The author runs five agents on three machines. Previously, each lived in its own little world. Now they share a common "head," assembled from down-to-earth parts:
- a single Obsidian vault, simply a folder of markdown files, with no database and no closed formats;
- every night at 3:30, a script goes through the agents and collects what they recorded: memories, documents, decisions. It also strips out all secrets, so keys, tokens and passwords never reach the shared memory;
- an AGENTS.md file tells any agent how to read the wiki and how to update it. It works like onboarding instructions for a new employee, written for a model;
- Syncthing copies the vault to all three machines, and only within the local network;
- an MCP server gives any agent search over the wiki, by keyword and by meaning.
If you tell any agent "save this to the brain," it drops a dated note into the inbox. Nothing gets overwritten, so one agent cannot erase another's work.
The numbers: cost and search accuracy
The most interesting figure here is cost. Embeddings (numerical "fingerprints of meaning" used to find similar text) for 19,535 chunks cost the author $0.98. Indexing an entire personal archive costs less than a dollar.
The author tested search quality on 66 questions. Hybrid search put the correct page first in 59 of 66 cases, about 89%. Keyword-only search managed 52 cases, about 79%. A ten-percentage-point gap sounds modest, but in practice it means roughly one question in ten where an agent would otherwise pull the wrong page and cite it confidently.
A caveat is needed: this is one person's experiment on his own data. 66 questions is a small sample, the scoring criteria are not disclosed in the post, and there is no independent verification. The numbers should not be transferred directly to a corporate knowledge base.
What to take away
First, agent memory does not have to be complex infrastructure. Plain markdown files can be read by a human, stored in git or Obsidian, and easily corrected by hand if an agent writes something wrong. That is a clear advantage over an opaque vector store.
Second, nightly consolidation is a useful pattern. Instead of syncing agents in real time, the author gathers everything in one place once a day. That is cheaper and easier to debug, and it provides a natural moment to scrub secrets.
Third, the "inbox instead of overwrite" rule is worth borrowing. When several agents write to one store, conflicts are inevitable. Separate dated notes turn a conflict into an ordinary review: a human or a curator agent later decides what to merge.
Fourth, hybrid search pays for itself almost for free. If you already have full-text search, adding embeddings costs pennies and improves accuracy.
The author's conclusion: the model matters less than the memory. Debate is possible, since model quality still determines what an agent does with the page it finds. But for anyone running several agents at once, the argument holds up: swapping Claude for another model is easier than rebuilding months of lost context. If you are building a multi-agent setup, start with a shared store, writing rules and search, and only then choose which model will use them.
- Nov 29, 2026Codex now pulls 80% less data from the API: a 7.48 MB thread shrinks to 930 KB
- Nov 29, 2026Free LLMs via API Routers: Four Calls to TeamoRouter Cost $0.00000043
- Nov 29, 2026Mira Murati's Laptop Model With 32 GB Beat Qwen 27B in 32 of 48 Benchmarks
- Nov 28, 2026openset-llm Promises a 27-Billion-Parameter Model on an 8 GB CPU at 17–20 Tokens/s
Key Questions Answered
How the shared memory works?
The author runs five agents on three machines. Previously, each lived in its own little world. Now they share a common "head," assembled from down-to-earth parts: a single Obsidian vault, simply a folder of markdown files, with no database and no closed formats; every night at 3:30, a script goes through the agents and collects what they recorded: memories, documents, decisions.
What are the key details on The numbers: cost and search accuracy?
The most interesting figure here is cost. Embeddings (numerical "fingerprints of meaning" used to find similar text) for 19,535 chunks cost the author $0.98. Indexing an entire personal archive costs less than a dollar. The author tested search quality on 66 questions. Hybrid search put the correct page first in 59 of 66 cases, about 89%. Keyword-only search managed 52 cases, about 79%.
What to take away?
First, agent memory does not have to be complex infrastructure. Plain markdown files can be read by a human, stored in git or Obsidian, and easily corrected by hand if an agent writes something wrong. That is a clear advantage over an opaque vector store. Second, nightly consolidation is a useful pattern. Instead of syncing agents in real time, the author gathers everything in one place once a day. That is cheaper and easier to debug, and it provides a natural moment to scrub secrets.
Test Frontier LLMs & Autonomous Agents in One Workspace
Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.
Daily 60-sec AI Voice Brief + Weekly Production AI Agent Playbook
Listen to a 60-second AI news brief every morning and get a weekly hands-on playbook for shipping AI agents to production — tools, MCP servers and patterns that work. Curated by Jemal Hamidun, Head of AI at Alpina Digital.
