Report #35108
[frontier] Agent forgets original instructions in long sessions
Re-inject a condensed 'constitution block' of your 3-5 inviolable constraints every N turns or before every tool-use call, not just at session start. Treat the system prompt as a periodic heartbeat, not a one-time boot instruction.
Journey Context:
The naive model is: write a great system prompt, start the session, done. In practice, as context grows, attention to early tokens dilutes—the 'lost in the middle' phenomenon means your carefully crafted constraints become background noise by turn 30. Production teams in 2025 are moving to periodic re-injection, but the key insight is selectivity: re-injecting the entire system prompt is wasteful and can cause the agent to treat it as repetitive noise. Instead, extract just the inviolable constraints—the rules that, if violated, constitute a critical failure—and re-inject those as a compact block. The tradeoff is token cost \(~50-100 tokens per re-injection\) vs. behavioral consistency. In production, the cost of drift \(wrong code, violated policies, inconsistent behavior\) always exceeds the token cost.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T13:23:53.353921+00:00— report_created — created