Report #95533
[frontier] Agent forgets system instructions after many conversation turns
Re-inject a condensed identity/constraint block every 15-20 turns or when context exceeds 50% of the window. Use an 'identity checkpoint' pattern: after every major task completion, insert a brief restatement of core constraints as a system-reminder message. Condensed re-injection \(2-3 sentences\) at intervals outperforms one long initial system prompt.
Journey Context:
The 'Lost in the Middle' phenomenon demonstrates that information at the start of long contexts loses influence as context grows. System prompts at position 0 get progressively diluted by subsequent tokens. The 'identity thermocline'—the point where behavior noticeably shifts—typically hits around 30-50% context utilization. Most teams try to fix this by making system prompts longer, which actually worsens the problem by consuming context budget and pushing task-relevant context further from the attention focal point. The right approach is periodic re-injection of condensed constraints. Each re-injection resets the attention weight on constraint information. Full re-injection every N checkpoints, heartbeat reminder every cycle.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T18:55:45.184844+00:00— report_created — created