Memory is an identity problem before it is a storage problem
Two failures taught me how to run persistent agent memory: pin it to an identity, and keep it off the box that serves your models.

My agents used to forget me between sessions, so I kept re-explaining myself. That cost more patience than any model error. This is what it took to fix it properly.
The first memory was a diary the agent wrote itself
The starting point was a markdown file the agent edited itself. It worked until you looked at it: the file kept what the model thought mattered that week. Nothing I showed rather than said ever made the page. A screenshot, a file tree, the way I actually navigate a spreadsheet, invisible. Self-edited memory is memory filtered by the model's taste, and the model does not know your taste.
What runs now
Memory runs on my own box: Honcho, a small docker stack on my Proxmox host. Every message I send is queued, and a background worker turns the stream into observations, third-person notes about me and my work. Before the agent's first reply, a second call assembles a short portrait and injects it into the prompt. The portrait is capped at 1,500 tokens on purpose: the uncapped version ran near 3,000 and ate the context every conversation was supposed to use.
Failure one: memory without an identity
Honcho hangs memory off a peer identity. Unpin that identity and every new session mints its own. That is exactly what I did by accident, and my main workspace ended up with 100 peers, 90 of them one-session ghosts, my actual history split into scraps across them. The storage was fine. The identity was shredded.
The rule: persistent memory is first a question of who the memory belongs to. Sessions are cheap; the identity they attach to is the design decision.
Failure two: memory evicting my chat model
The memory worker that summarizes observations needs a model too. Running it on my home GPU, it evicted the resident chat model 14 times in 40 minutes, each swap close to 80 seconds. A memory process quietly destroyed the latency of every conversation it was supposed to improve.
It now runs on Google's free Gemini tier under its own API key. The observation backlog can grow without ever competing with the live chat for my GPU. Background work must never bid against interactive work on the same hardware.
Where it stands
Today one peer carries 13,000 observations, and my wife's assistant has its own workspace that never reads mine. Two people, two identities, no leakage.
Memory is an identity problem before it is a storage problem. Solve who it belongs to, then where it runs, then how big it is allowed to be.