r/EverMindAI • u/No-Table6122 • 14h ago
Long-Term memory structure
I wanted a lossless portable long term memory for a persistent agent without having to worry about eventual context rot. So I built a Long-Term memory structure for Claude.

Compaction is just a small mutation. By taking the graph out of the window and making it accessible through a small search surface with a fixed cost or ~7k tokens.


All memories are encoded in prose, never as an embedding. This is done to preserve the semantic depth of information and also to decouple the system from any tokenizer/model. So a RAGDAG was built in order to implement semantic search. In a RAGDAG the RAG resolves to an address on a RAG to which the system is point to consume information encoded in prose.

I have been running this set up continuously without compaction for roughly 400 consecutive sessions and documented all my findings.
I am releasing this system as an open code projects so other could use it.