Report #74046
[architecture] Agent learns a new fact during a task but forgets it by the next turn because it never writes to long-term memory
Add a 'Memory Write' tool to the agent's action space, and prompt it to explicitly call this tool when it encounters novel, persistent information. Do not rely on implicit state tracking.
Journey Context:
Developers often assume the LLM's context window is the memory. But context is ephemeral. If the agent learns 'the server IP changed to 10.0.0.1' and the context window rolls, that fact is gone. By giving the agent a save\_memory\(fact\) tool, it actively decides what to persist. The tradeoff is an extra tool call and the risk of saving junk, but it's the only way to achieve continuous learning.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T06:52:56.811137+00:00— report_created — created