Report #12260
[agent\_craft] Agent forgets system instructions or early context in long sessions
Place the most critical instructions and current state summaries at the very beginning and the very end of the context window, using structured XML tags.
Journey Context:
LLMs exhibit a 'U-shaped' attention curve, suffering from 'lost in the middle' degradation where information in the middle of a massive context is often ignored or forgotten. By duplicating critical constraints or state at the end of the prompt \(recency bias\) and reinforcing them at the start \(primacy bias\), you maximize retention. Simply putting instructions at the top is insufficient for multi-hour agentic runs where the middle context swells with tool outputs.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T15:37:53.231910+00:00— report_created — created