cd /news/artificial-intelligence/show-hn-tried-some-experiments-with-… · home topics artificial-intelligence article
[ARTICLE · art-94218] src=github.com ↗ pub= topic=artificial-intelligence verified=true sentiment=↑ positive

Show HN: Tried some experiments with architecture for Long term memory for LLM

Faisal Iitian released MindCache, a Python SDK with an MCP server for long-term memory in LLMs, reporting a 64% average rubric pass rate on his BEAM evaluation versus about 53% for Mem0. The system uses four memory types (user, knowledge, episodic, decision), decision anchors, LLM-guided ingestion, and hierarchical summaries to improve summarization, contradiction resolution, and multi-session reasoning.

read1 min views1 publishedAug 12, 2026

The main ideas that survived the experimentation are:

using four memory types — user, knowledge, episodic, and decision memories, each with different lifecycles, different roles and different token budget in the retrieved context. Decision analysis + anchors — decisions can evolve overtime so they can be active or superseded or conditional instead of remaining as unrelated memories. we keep the track of decision memory which is active, superseded or conditional with additional context and using such active decisions related to the query as anchors to further retrieve memories using lexical bm25 often helps. Smart injection — New memories aren't simply assigned to a topic based on similarity. An LLM-guided ingestion step uses the existing topic structure as context to decide where a memory belongs and how it relates to what is already there. This lets the hierarchy grow dynamically instead of becoming a collection of isolated memory nodes. Hierarchical summaries — MindCache adapts the static RAPTOR-style tree idea into a dynamic hierarchy that is incrementally updated as new memories arrive. Organizing memories into broader topics and maintaining summaries at those levels helps with broad queries, where retrieving individual memories one by one may miss the overall context. The topic structure also gives retrieval additional lexical/contextual signals, so a query can match against the organized topic structure as well as the underlying memories. On my BEAM evaluation, MindCache achieved about 64% average rubric pass rate vs ~53% for Mem0, with stronger results on several categories including summarization, contradiction resolution, and multi-session reasoning. It's now released as a Python SDK and has an MCP server for connecting it to MCP-compatible clients. Check it out. Feedbacks are appreciated. I also wrote a short overview of the project if you are interested:https://medium.com/@faisaliitian/i-built-an-ai-memory-system...

Comments URL: [https://news.ycombinator.com/item?id=49277842](https://news.ycombinator.com/item?id=49277842)

Points: 1

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @mindcache 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-tried-some-e…] indexed:0 read:1min 2026-08-12 ·