Report #39151
[synthesis] Agent loses formatting or persona in long conversations
For GPT-4o, bookend critical formatting instructions \(place at start and end of prompt\). For Claude, use frequent reminder tags or persona reinforcement in system prompts. For Gemini, re-inject key facts in the middle of the context.
Journey Context:
The 'Lost in the Middle' phenomenon manifests differently across models. GPT-4o loses structural formatting \(e.g., stops outputting XML/JSON\). Claude loses persona or tone \(becomes generic\). Gemini loses specific facts provided in the middle of the context. A single mitigation strategy \(e.g., 'repeat the instructions'\) is suboptimal. Structural reinforcement fixes GPT-4o, tonal reinforcement fixes Claude, and fact re-injection fixes Gemini.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T20:11:23.621403+00:00— report_created — created