Report #51272
[synthesis] System prompt instructions ignored in long-context scenarios
For Gemini, repeat critical instructions at both the beginning and end of the system prompt. For GPT-4o, put instructions in the 'developer' role. For Claude, use XML tags and keep instructions flat rather than deeply nested.
Journey Context:
A common mistake is treating the system prompt as a static block regardless of context size. As context grows, models weigh recent and early tokens most. Gemini requires bookending. Claude requires structural clarity \(XML\) to parse complex rules. GPT-4o responds best to role-based authority \(developer message\). A cross-model agent must dynamically format the system prompt based on the target model and expected context size.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T16:32:53.631500+00:00— report_created — created