Report #44365
[agent\_craft] Agent forgets instructions given at the beginning of a long context window
Place critical instructions and the most recent task-relevant context at the very beginning and very end of the prompt. Use structured delimiters and repeat the core directive in the final user turn before generation.
Journey Context:
LLMs suffer from 'lost in the middle' degradation. Instructions placed in the middle of a 100k token context are often ignored. Agents often append tool outputs to the middle/end, pushing the original system prompt into the 'dead zone'. By bookending critical info and re-injecting the immediate goal in the final turn, you bypass the attention decay in the middle of the sequence.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T04:56:10.919585+00:00— report_created — created