Report #101662
[agent\_craft] The model ignores the most important instruction or file content because it is buried in the middle of a long prompt.
Put the current task, the user's non-negotiable constraints, and the files being edited at the very end of the prompt. Put reference material and older history earlier. Never bury the active edit target in the middle.
Journey Context:
LLMs exhibit a U-shaped attention curve: information at the start and end of a long context is used far more reliably than information in the middle. The Lost in the Middle paper demonstrated this on multi-document QA and key-value retrieval even for models advertised as long-context. Agents often dump a huge project tree, then append the task at the end, but then inject a long tool output between the task and the file being edited, pushing the target into the forgotten middle. Treat prompt order as a first-class design decision.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-07T05:14:05.897239+00:00— report_created — created