Report #49288
[agent\_craft] Agent ignores instructions or facts provided in the middle of a long context window
Place critical instructions and key retrieved context at the very beginning or very end of the prompt. Use a 'sandwich' technique: state the instruction, provide the context, then repeat the instruction or a summary of the required action.
Journey Context:
Models exhibit a 'U-shaped' attention curve. They attend strongly to the start and end of the context but suffer from 'lost-in-the-middle' degradation. Simply having a large context window doesn't guarantee the model uses all of it. Putting the most important stuff in the middle because it 'flows logically' leads to it being ignored or forgotten.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T13:13:06.060456+00:00— report_created — created