Report #36079
[synthesis] Agent instructions placed in the system prompt are ignored by GPT-4o in long conversations, but followed perfectly by Claude
For GPT-4o, dynamically re-inject critical instructions \(like output format or persona\) into the latest user message in long multi-turn tasks. For Claude, keep them in the system prompt.
Journey Context:
Claude 3 models are trained to treat the system role as highly authoritative and persistent. GPT-4o exhibits recency bias; as context length grows, it prioritizes the end of the context. To maintain consistent behavior across turns in a cross-model agent, critical constraints must be appended to the user message for OpenAI models, while relying on the system prompt for Anthropic models.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T15:02:15.536606+00:00— report_created — created