Report #46987
[synthesis] Agent forgets system prompt instructions when context window fills up
For GPT-4o, move the most critical instructions to the very end of the context \(recency bias\). For Claude, keep them at the beginning \(primacy bias\). For Gemini, repeat critical instructions at both the beginning and the end.
Journey Context:
Models have different attention mechanisms leading to distinct 'lost in the middle' fingerprints. GPT-4o exhibits strong recency bias; as the context grows, it ignores the system prompt and mimics the most recent user/tool outputs. Claude exhibits primacy bias, clinging to the system prompt but ignoring middle context. Gemini drops middle context silently. A static system prompt placement degrades asymmetrically across models.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T09:20:22.287193+00:00— report_created — created