{"by":"SachitRafa","descendants":53,"id":47914367,"kids":[47915378,47915703,47915138,47951561,47916612,47929507,47914610,47915005,47916461,47922170,47914506,47915756,47929511,47932840,47915368,47929564,47917458,47922657,47925070,47917363,47937585,47934874,47932757,47916441,47928082,47924954,47916590,47926716,47917342],"score":98,"text":"Most RAG setups fail because they treat memory like a static filing cabinet. When every transient bug fix or abandoned rule is stored forever, the context window eventually chokes on noise, spiking token costs and degrading the agent&#x27;s reasoning.<p>This implementation experiments with a biological approach by using the Ebbinghaus forgetting curve to manage context as a living substrate. Memories are assigned a &quot;strength&quot; score where each recall reinforces the data and flattens its decay curve (spaced repetition), while unused data eventually hits a threshold and is pruned.<p>To solve the &quot;logical neighbor&quot; problem where semantic search misses relevant but non-similar nodes, a graph layer is layered over the vector store. Benchmarked against the LoCoMo dataset, this reached 52% Recall@5, nearly double the accuracy of stateless vector stores, while cutting token waste by roughly 84%.<p>Built as a local first MCP server using DuckDB, the hypothesis is that for agents handling long-running projects, &quot;what to forget&quot; is just as critical as &quot;what to remember.&quot; I&#x27;d be interested to hear if others are exploring non-linear decay or similar biological constraints for context management.<p>GitHub: <a href=\"https:&#x2F;&#x2F;github.com&#x2F;sachitrafa&#x2F;cognitive-ai-memory\" rel=\"nofollow\">https:&#x2F;&#x2F;github.com&#x2F;sachitrafa&#x2F;cognitive-ai-memory</a>","time":1777237111,"title":"Show HN: AI memory with biological decay (52% recall)","type":"story","url":"https://github.com/sachitrafa/YourMemory"}