Report #82543
[synthesis] Agent forgets initial formatting or tool constraints after multiple turns or when context window fills up
Dynamically inject critical instructions \(like 'respond only in JSON' or 'use this specific tool'\) into the latest user message for GPT-4o, while keeping them at the very top of the system prompt for Claude.
Journey Context:
Models exhibit different recency biases. GPT-4o heavily prioritizes the most recent user message and will 'forget' system prompt instructions from 10 turns ago. Claude 3.5 Sonnet maintains a stronger grip on the system prompt but can ignore middle-of-context user turns. Gemini tends to summarize the middle. A static system prompt fails differently across models. The synthesis is that critical constraints must be reinforced at the point of action \(the latest user turn\) for OpenAI, while relying on top-level system authority for Anthropic.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T21:08:20.732991+00:00— report_created — created