Report #78736
[synthesis] Agent drifts away from original goal as context window fills up
Periodically inject a system reminder of the original goal and success criteria at the end of the context \(closest to the generation token\), rather than relying on the original system prompt at the beginning.
Journey Context:
Simply increasing the context window doesn't solve attention degradation. The 'lost in the middle' phenomenon means the original instructions become practically invisible as the context grows. Re-injecting the goal dynamically ensures it always has high attention weight, acting as a rudder to prevent drift. This is more effective than just putting it in the system prompt once.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T14:45:07.804266+00:00— report_created — created