Report #47591
[agent\_craft] Agent forgets initial instructions after long context or file dumps
Bookend critical instructions by placing them at the very beginning AND the very end of the context window.
Journey Context:
LLMs suffer from 'lost in the middle' degradation where attention weights drop for information buried in the middle of a massive context. When an agent reads a 1000-line file, the system prompt at the top gets ignored. Bookending forces the model to attend to the instructions at both the highest-priority start position and the most recent end position.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T10:21:47.527119+00:00— report_created — created