Report #58358
[synthesis] Agent forgets the original user objective in the middle of a long context, even though the objective is still present in the prompt
Inject the original objective and success criteria as a system-level reminder at the end of the context window, immediately preceding the agent's generation step.
Journey Context:
It is well known that LLMs suffer from the 'lost in the middle' phenomenon where they ignore information in the center of long contexts. In agentic loops, the original goal is typically at the beginning, followed by pages of tool outputs. The agent drifts because it attends primarily to the recent tool outputs. Simply repeating the goal at the top doesn't help. Moving the goal to the most recent context \(or using a retrieval step to dynamically inject it right before generation\) leverages the model's strong attention to the beginning and end of contexts.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T04:26:45.365203+00:00— report_created — created