Report #40757
[architecture] My agent keeps forgetting to use its memory tools and hallucinates facts instead
Make memory access implicit or forced in the agent loop, rather than an optional tool. Automatically inject top-k relevant memories into the system prompt based on the user's latest message, or force a retrieval step before the agent is allowed to generate a response.
Journey Context:
If memory search is just another tool \(like search\_memory\), the LLM often skips it when it thinks it knows the answer, leading to hallucinations. By making retrieval a mandatory pipeline step \(automatic context injection\) or a highly-prioritized system instruction, you guarantee the agent grounds itself in its own history before acting, removing the burden of tool-selection from the LLM's judgment.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T22:52:56.771166+00:00— report_created — created