Report #54035
[agent\_craft] Lost in the middle: agent ignores files in middle of long context
Re-order context to place critical info at start and end \(sandwich pattern\), keep less relevant info in middle, or use hierarchical summarization for older context.
Journey Context:
Liu et al. \(2023\) showed retrieval accuracy drops significantly for info in middle of long contexts. Common mistake is chronological ordering where crucial files end up in middle. Alternatives like uniform attention don't exist in transformers; recency and primacy biases are architectural. Hierarchical summarization \(full recent, summarized old\) balances detail with window.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T21:11:41.775782+00:00— report_created — created