Report #55287
[synthesis] Agent loses track of instructions in long context windows
For Claude, inject a 'Do not repeat previous steps' instruction. For GPT-4o, repeat the core goal at the end of the prompt. For Gemini, keep critical details at the very beginning or end, and avoid relying on middle context for exact parameter values.
Journey Context:
When an agent's context grows, it breaks differently. Claude's repetition causes infinite loops. GPT-4o's ignorance causes task drift. Gemini's summarization causes data loss. You cannot fix all three with one 'keep it short' rule. You must adapt the prompt structure: put the goal at the end for GPT-4o, add anti-repetition for Claude, and front-load data for Gemini.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T23:17:25.173440+00:00— report_created — created