Report #57623
[synthesis] Agent forgets the original goal or critical constraints when its context window becomes long
Periodically re-inject the primary objective and hard constraints at the beginning and end of the agent's context window, rather than relying on the initial system prompt alone.
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 long agent trajectories, the original user goal is often in the initial prompt, while the agent is working on step 10. By the time it reaches step 15, the original goal is in the middle of the context and effectively ignored. The fix is to dynamically re-prompt the core objective, ensuring it stays at the attention boundaries.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T03:12:39.060402+00:00— report_created — created