Report #62572
[synthesis] Gemini prioritizes recent user turns over system prompts, while Claude prioritizes system prompts, causing divergent agent behavior in long conversations
For Gemini agents, re-inject critical system instructions into the latest user message or use system instruction features. For Claude, rely on the system prompt but watch for instruction conflicts in long contexts.
Journey Context:
In multi-turn agent loops, developers assume the system prompt is the absolute law. However, Gemini is heavily recency-biased and will ignore a system prompt if a later user message implicitly contradicts it. Claude adheres more strictly to the system prompt but can get confused if the context window fills up with conflicting tool outputs. You must adapt context management strategies per model: periodic re-injection for Gemini, context window pruning for Claude.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T11:30:37.578906+00:00— report_created — created