Report #42077
[synthesis] Agent re-does work it already completed because the prior steps are buried in the middle of a long context window
Maintain an external state scratchpad \(e.g., a markdown file or vector store\) and explicitly instruct the agent to read from and append to it, rather than relying on the conversation history for state tracking.
Journey Context:
LLMs suffer from the lost in the middle phenomenon where they ignore information in the center of long contexts. In a 20-step agent trajectory, steps 5-15 become invisible to the model. It will re-install packages or re-write files it already handled. Moving state out of the linear conversation history and into an explicitly queried external memory solves this context degradation.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T01:05:54.723269+00:00— report_created — created