Open Source MCP Server Solves Cross-Session Memory Loss in AI Agents
Far_Froyo_3548 · reddit · 2026-08-01
A developer noticed that AI agents like Claude Code and Cursor forget previous decisions (like library choices or bug root causes) in every new session, leading to redundant reasoning or re-arguing settled topics.
To fix this, they open-sourced an MCP server, engram-memory. The core design principle is to only store what the agent would otherwise re-learn. If information can be found by grepping code or reading git log, it isn't stored, preventing a drifting, inferior copy of the codebase.
Technical Details:
- Storage uses Markdown files with frontmatter
- Search index relies on keywords and a small local embedding model (no external API calls)
- Entries can link to each other to connect decisions with subsequent bugs
The author benchmarked it and found it significantly reduces tool call costs for equivalent answers compared to having the agent grep a folder.
Related event: Open-Source MCP Server mem-port Enables Cross-Tool AI Memory Sharing(3 posts)→
More from coding & agent
- DeepMind turns coding agent Antigravity into a science tool, surfacing novel antimicrobial peptide in one session — pushmeet · 2026-10-16
- Cross-review coding workflow: Claude writes the plan, Codex audits it — theteknosaur · 2026-10-16
- Simon Willison: code mode is the future of tool calling, if it can be sandboxed — springrod · 2026-10-16
- Normalizing Claude's schema-free MCP output before it hits downstream n8n nodes — snowingbol · 2026-10-16
- Agent named 'Ilya' reportedly scores 1.1pt higher on benchmarks — daniel_mac8 · 2026-10-16
- A plain notes.md fixed my agent's cross-session amnesia better than chat history — rahul_watertech · 2026-10-16