My agent keeps its long-term memory in a service called Hindsight. Before every turn it asks Hindsight for anything relevant to the message it is about to answer, gets back a few dozen observations, and pastes them into the prompt. When that works, it remembers what we decided two weeks ago. When it doesn’t, it starts cold and asks me something I already answered.
I run an agent called Hermes with a long-term memory service called Hindsight behind it. Hindsight reads every conversation turn, pulls out facts worth keeping (one LLM call, the extraction pass), and later merges them into longer-lived observations (a background consolidation pass that dedupes and combines). The service runs on my own hardware, in Docker with embedded Postgres, and the embeddings and reranking happen locally on the box. So the only cloud spend in the whole system is those two calls, which makes the bill a clean measurement of exactly two model choices.