Report #17766
[architecture] Agent automatically persists every tool call result and observation into long-term memory
Make memory writes an explicit, deliberate agent action via a dedicated tool \(e.g., save\_memory\(content, metadata\)\), not an automatic side-effect of tool calls. Implement a memory budget per session to force the agent to be selective about what it persists.
Journey Context:
Auto-saving seems like a safe default — 'we might need it later.' In practice, it floods the memory store with low-value content: directory listings, boilerplate code, error stack traces from transient failures, and intermediate calculations. This creates a retrieval noise problem that compounds over time. The MemGPT architecture makes memory writes explicit: the agent has archival\_memory\_insert and core\_memory\_append as distinct tools it must choose to invoke. The tradeoff is that you might miss saving something important — but this is far less damaging than saving everything and making retrieval unreliable. Reliability of retrieval degrades monotonically with store size if curation does not keep pace. A memory budget \(e.g., max 20 saves per session\) forces the agent to evaluate importance before writing, which is the behavior you actually want.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T06:19:37.269840+00:00— report_created — created