Report #11918
[agent\_craft] Agent forgets instructions given at the beginning of a long context window
Put critical instructions and few-shot examples at the \*beginning\* and \*end\* of the context, placing retrieved context in the middle.
Journey Context:
LLMs suffer from the 'Lost in the Middle' phenomenon where they pay less attention to information in the middle of a long context. Agents that prepend massive retrieved context push their system prompts into this dead zone. By sandwiching the most important directives \(output format, constraints\) at the end, you recover adherence.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T14:41:15.898512+00:00— report_created — created