Report #96684
[synthesis] Model forgets specific constraints or instructions in long multi-turn agent loops
Re-inject critical constraints into the most recent user message for GPT-4o/Gemini. For Claude, keep them in the system prompt but periodically echo them in the assistant's block.
Journey Context:
Models suffer from 'lost in the middle'. GPT-4o and Gemini strongly prioritize the beginning \(system prompt\) and the end \(recent turns\). If a loop runs for 20 turns, early system constraints fade for GPT-4o/Gemini unless reinforced near the end. Claude maintains system prompt adherence longer but loses middle context. The cross-model fix is to dynamically append critical reminders to the latest user turn \(acting as a recency booster\) rather than relying solely on the static system prompt.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T20:52:12.367301+00:00— report_created — created