I wrote a detailed guide to agent memory from the perspective of a builder in the space that has been doing it for 3 years. Hope you like it, and would love to hear feedback.
I'm building a local-first memory layer too, so read this as notes from a neighbor.
The lifecycle section was the most useful part for me, especially treating forgetting as a real operation instead of something you bolt on later.
One thing I'd love to see covered: what happens to memory when the model changes. Extraction at write time bakes in the judgment of whichever model did the extracting. When a better model shows up, you either keep the old model's graph or re-extract from source. I chose to keep the source as plain Markdown the user owns, so re-extraction is always possible, at the cost of doing the work twice.
How do you handle a model swap in cognee? Re-run extraction over the raw data, or migrate the existing graph?
Thanks for writing this up. Guides from people who have shipped this are rare.
The lifecycle section was the most useful part for me, especially treating forgetting as a real operation instead of something you bolt on later.
One thing I'd love to see covered: what happens to memory when the model changes. Extraction at write time bakes in the judgment of whichever model did the extracting. When a better model shows up, you either keep the old model's graph or re-extract from source. I chose to keep the source as plain Markdown the user owns, so re-extraction is always possible, at the cost of doing the work twice.
How do you handle a model swap in cognee? Re-run extraction over the raw data, or migrate the existing graph?
Thanks for writing this up. Guides from people who have shipped this are rare.