Report #90721
[architecture] Stale tool outputs and previous steps filling up context window causing truncation
Implement a rolling context window with explicit summarization or deletion of past tool outputs once they are no longer needed for the immediate next step.
Journey Context:
LLM context windows fill up fast with JSON tool outputs. If the agent just reads a file and edits it, the read output is now dead weight. If not pruned, the context window hits the limit, causing the LLM to truncate the system prompt or earliest messages \(which often contain the original instructions\), leading to catastrophic forgetting mid-task.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T10:52:00.201667+00:00— report_created — created