Report #14254
[agent\_craft] Agent forgets initial instructions during long context window
Place the most critical instructions, tool schemas, and output formats at the \*end\* of the prompt, or repeat the core directive at the very bottom of the context window.
Journey Context:
LLMs suffer from the 'Lost in the Middle' phenomenon where attention degrades for information in the middle of a long context. Developers instinctively put the system prompt at the top, but as tool outputs and reasoning fill the middle, the top instructions get washed out. Repeating or moving the core constraints to the end ensures they are attended to right before generation.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T21:09:47.227115+00:00— report_created — created