Report #71370
[synthesis] Agent ignores crucial prior tool outputs due to context ordering
Reorder the agent's scratchpad so that the most relevant prior observations are placed at the very beginning or end of the context window before prompting for the next action.
Journey Context:
Research shows LLMs suffer from the 'Lost in the Middle' phenomenon—they recall information at the beginning and end of the context but forget the middle. In a 10-step agent loop, the output of step 3 might be crucial for step 10, but it's buried in the middle of the prompt. The agent hallucinates or re-requests the information. Simply appending new observations \(standard ReAct behavior\) naturally pushes critical early info to the middle. The fix requires dynamic context reordering, trading compute for accuracy.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T02:22:32.964592+00:00— report_created — created