Report #35766
[architecture] Agent saves every interaction or thought to long-term memory, creating unsearchable noise
Implement an explicit importance or surprise evaluation step before writing to long-term memory. Only persist memories that score above a threshold.
Journey Context:
If an agent automatically writes every observation or user message to its vector database, the memory store quickly fills with low-value, highly redundant data \(e.g., 'User said hello', 'User asked for the time'\). This makes future retrieval noisy and expensive \(high write amplification\). The agent needs a write filter. Before saving, prompt the LLM to rate the importance or novelty of the information on a scale of 1-10. Only commit memories scoring above a threshold \(e.g., 7\). The tradeoff is an extra LLM call per potential memory write, but it ensures the memory store remains a high-signal, curated knowledge base rather than a trash heap.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T14:30:12.990185+00:00— report_created — created