Report #84727
[frontier] Agent forgets system prompt instructions after 30\+ turns in same session
Implement periodic identity re-anchoring: every 10-15 turns or before critical decisions, inject a condensed restatement of the agent's core identity, role, and inviolable constraints as a structured reminder. This creates multiple attention anchors throughout the context instead of relying solely on the system prompt at position zero.
Journey Context:
The 'Lost in the Middle' phenomenon demonstrates that LLMs exhibit a U-shaped attention curve — information at the beginning and end of context receives significantly more attention than the middle. As conversation grows, the system prompt \(position 0\) gets pushed further from the model's recency-weighted attention. Naive approaches like making the system prompt longer make this worse by diluting key constraints across more tokens. The emerging practice is identity re-anchoring: periodically re-injecting a compressed version of critical identity and constraint information at strategic points, effectively creating multiple attention anchors. Production teams in 2025 are treating this like a heartbeat — a rhythmic reassertion of identity that prevents the agent from drifting into a generic state.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T00:48:10.362262+00:00— report_created — created