Report #1351
[architecture] Agent saves every single intermediate thought or tool output to long-term cross-session memory, polluting the knowledge base with transient, low-value, or erroneous data
Only persist memories that pass an importance threshold \(e.g., scored 1-10 by the LLM\) or explicitly represent user preferences/facts. Use lazy evaluation: save to long-term memory only at the end of a successful task or upon explicit user confirmation.
Journey Context:
A common mistake is hooking a save\_memory function to every LLM output or tool result. This leads to memory diarrhea—the vector DB fills up with 'I am searching the web...', 'Error: file not found', etc. This makes future retrieval noisy. By forcing the agent to evaluate the importance of a memory before saving it, or by batching saves to the end of a task, you ensure the persistent store remains a curated knowledge base rather than a log dump.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-14T19:33:53.744670+00:00— report_created — created