Report #46770
[architecture] Agent failing to follow new instructions because its context window is dominated by earlier less relevant tool outputs
Implement a working memory eviction strategy that actively removes or summarizes old conversational turns and large tool outputs once they are no longer directly needed for the current reasoning step.
Journey Context:
LLLMs suffer from the lost in the middle phenomenon and recency bias. If the context window retains a massive JSON output from step 1 while the agent is on step 10, the agent reasoning degrades. Agents need an explicit eviction mechanism: once a tool output is parsed and its essence recorded in semantic memory or a scratchpad, the raw output should be dropped from the context window. The tradeoff is that the agent loses the ability to re-read the raw data later in the session, but this is necessary to prevent attention dilution and stay within context limits.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T08:58:39.331085+00:00— report_created — created