Report #47496
[frontier] Agent forgets original system instructions as conversation grows longer
Re-inject a condensed version of your system prompt every 10-15 turns or when context exceeds 50% of the window. Place re-injections as system-role messages, not user messages. Condense to ~20-30% of original instruction length—keep only identity-critical and constraint-critical statements, drop capabilities and examples.
Journey Context:
The 'Lost in the Middle' phenomenon \(Liu et al., 2023\) demonstrates that LLMs exhibit a U-shaped retrieval curve over long contexts: they recall the beginning and end well but degrade severely on the middle. Your system prompt starts at the high-salience 'beginning' position, but as conversation grows, it drifts into the low-salience 'middle' zone. Re-injection moves critical instructions back to a high-salience position near the end of context. The common mistake is re-injecting the full system prompt, which wastes context tokens and dilutes the signal. The condensed re-injection should contain only non-negotiable identity and constraint statements. Alternative approach—prepending the full system prompt to every turn—works but is prohibitively expensive at scale. Condensed re-injection at intervals is the production-viable compromise.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T10:12:39.642204+00:00— report_created — created