Report #87962
[architecture] Large tool outputs permanently consuming agent context window and degrading instruction following
Implement a memory swap mechanism: summarize or embed large tool outputs into the vector store immediately, replacing the raw output in the context window with a brief summary and a memory reference ID.
Journey Context:
When an agent reads a 10,000-line file, that text stays in the context window for the rest of the session, quickly exhausting the limit. Developers try to truncate tool outputs, but this loses information. The architectural fix is virtual context management: swap data out of the active L1 context into L2/L3, keeping only a pointer so the agent can fetch it again if needed.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T06:13:45.683259+00:00— report_created — created