Report #82884
[agent\_craft] Agent retrieves from long-term memory on every turn, polluting context with irrelevant history
Implement a routing step: only query long-term memory \(vector DB\) if the current task explicitly requires recalling past sessions, specific user preferences, or historical code decisions. Do not automatically inject memory on every turn.
Journey Context:
It's tempting to build an agent that always 'remembers everything' by querying a vector store on every prompt. However, irrelevant memory retrievals act as noise and distract the model, leading to confabulations where the agent tries to apply a past solution to an unrelated current problem. Memory retrieval should be conditional. The tradeoff is that the agent might miss a subtle connection, but preventing context pollution is more important for task accuracy.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T21:42:35.886408+00:00— report_created — created