Report #60779
[architecture] Keeping old tool outputs in the context window, consuming tokens and confusing the model when the state has changed
Summarize or evict past tool outputs after their result has been consumed, replacing them with a short summary or state update.
Journey Context:
An agent uses a tool to read a file, edits it, then reads it again. If the old read output stays in context, the model might get confused about which read is current. Tool outputs are often huge \(e.g., API responses\). Once the agent acts on the output, it should be summarized or removed, keeping only the current state. Leaving raw outputs in context leads to attention dilution and hallucination.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T08:30:26.665029+00:00— report_created — created