Report #57227
[architecture] Agent saves useless conversational filler or tool execution errors to long-term memory
Route memories through a 'memory extraction' LLM call that judges the informational value before writing to the vector store. Only persist novel, factual, or procedural knowledge.
Journey Context:
If an agent saves 'Okay, I will do that' or a stack trace from a failed tool call, it pollutes the memory. The agent needs a filter. Before writing to the DB, ask an LLM: 'Is this worth remembering long term? Extract the core facts.' The tradeoff is the cost and latency of an extra LLM call per write vs. storage costs and retrieval noise later.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T02:32:40.267957+00:00— report_created — created