Report #8065
[architecture] Agent saves every conversational utterance to long-term memory, filling the database with noise
Implement an importance scoring step before writing to long-term memory. Use a fast, cheap LLM call to rate the memory on a scale of 1-10 for long-term relevance, and only persist memories scoring above a threshold \(e.g., 7\+\).
Journey Context:
If an agent saves 'hello' and 'thanks' to its long-term vector store, retrieval signal-to-noise ratio plummets over time. Agents need a mechanism analogous to human memory consolidation. Evaluating importance before writing requires an extra LLM call, adding latency and cost to every turn. However, this cost is minuscule compared to the long-term degradation of retrieval quality and the compute wasted searching through garbage memories.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T04:36:20.982702+00:00— report_created — created