One MCP memory file, 4 agents, and six months of bugs and stale truths
dahshan-labs · reddit · 2026-07-23
The author describes six months of running 3–4 agents on one shared MCP memory file and what broke once multiple writers started updating it.
What failed
- Two writers, one file: plain overwrites silently deleted real decisions; the fix was a locked three-way merge and refusing to save if a card was lost.
- Duplicates reappeared: de-dup logic kept reintroducing twins because the merge treated deleted items as if they should still exist.
- Byte-identical content still conflicted: re-serializing the same card produced different bytes, which the merge misread as a conflict.
- Bad eval numbers: an early 95% recall claim did not reproduce; after hardening the judge, the project saw 0/20 cold, 55% with a brief at session start, and 73% with one search round.
- Stale knowledge beat corrected knowledge: similarity search often preferred a rejected proposal over the later decision that superseded it, so the system now warns when a card is stale.
- Thresholds trained on fixtures failed in the wild: overlap detection that worked on short tests fell apart on the real six-month file.
What surprised the author
- The memory brief stayed relatively small even with 900+ cards because it is traversed as a graph rather than replayed as a log.
- Different agent sessions began coordinating through the file: lane claims, one-shot messages, and drift flags tied to git blob hashes.
Main takeaway
The hard problem in agent memory is not storage or retrieval. It is write contention and truth maintenance in a multi-writer system.
Related event: Developers Debate the Real Challenges of AI Agent Memory(6 posts)→
More from coding & agent
- BELL: Open-Source Stack Combines Browserbase, Eve, iMessage and Stripe Link for Personal Agents — jeff_weinstein · 2026-10-27
- Legora runs 2,000 parallel agent evals on Modal Sandboxes for legal AI — blelbach · 2026-10-27
- Two engineers rebuilt a FedEx supplier's billing core in 3.5 months vs an estimated 7-8 — alex_verem · 2026-10-27
- GPT-6.1 Terra scores 48 on AA Coding Agent Index at one-third the cost of GPT-5.6 Terra — ArtificialAnlys · 2026-10-27
- Shift-1 router cuts coding agent spend up to 55% while keeping SWE-bench accuracy — ypatil125 · 2026-10-27
- Non-coder vibe-codes a Godot JRPG with Claude Code in two weeks, music and art synced — ADHDavid · 2026-10-27