Report #69493
[agent\_craft] Agent ignores or contradicts early instructions when context window fills up
Place critical instructions at the very beginning AND end of the context window. When context exceeds ~50% of window capacity, proactively compact before important information drifts into the middle 'dead zone'. Never rely on mid-context placement for anything mission-critical.
Journey Context:
The 'lost in the middle' phenomenon is not a myth — LLMs exhibit a U-shaped attention curve where information at the edges of the context is reliably attended to, while information in the middle is significantly degraded. Agents that naively append new turns push early system instructions and key facts into this attention dead zone. Re-stating instructions wastes budget. The structural fix is to keep guardrails at the edges and compact proactively, not reactively, so critical information never rots in the middle.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T23:07:41.092924+00:00— report_created — created