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
- Seeking stack advice for building an AI WhatsApp assistant for small businesses — aarondiaz92 · 2026-08-24
- RAG Trend: Two-Pass Document Processing Balances Cost and Accuracy — llama_index · 2026-08-24
- Fabien's agent.md workflow for LLM-assisted code quality — Thrumpwart · 2026-08-24
- Discussing Plugins for Qwen 3.8 27B on Low VRAM — radlinsky · 2026-08-24
- Stanford's LLM-as-a-Verifier Boosts DeepSeek Score to 88% on Terminal-Bench — Saboo_Shubham_ · 2026-08-24
- Build 5 Real LLM Tools in 5 Weekends: From Meeting Notes to Codebase QA — KevinNaughtonJr · 2026-08-24