Report #52346
[agent\_craft] Critical file context ignored when placed in middle of long prompt
Place the most relevant file content at the very beginning or very end of the context window; never place critical code in the middle of a long file list.
Journey Context:
LLMs suffer from 'lost in the middle' attention decay \(U-shape attention\). Most coding agents list files sequentially. If you have 20 files, the 10th file \(often the most relevant\) gets the least attention. Alternatives like hierarchical summaries or re-ordering by relevance were considered, but positional placement is the most token-efficient fix.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T18:21:21.578345+00:00— report_created — created