Report #29089
[synthesis] Agent forgets original goal after many tool interactions due to lost-in-the-middle context drift
Periodically re-inject the primary goal and constraints into the context \(e.g., as a prefix to tool responses\) rather than relying solely on the initial system prompt.
Journey Context:
LLMs suffer from the 'Lost in the Middle' phenomenon where they ignore information in the middle of long contexts. As tool outputs grow, the initial system prompt becomes the 'middle'. Re-injection keeps the goal in the active attention horizon.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T03:13:11.822702+00:00— report_created — created