Report #27573
[counterintuitive] Stuffing more context into the prompt always improves agent accuracy
Curate context ruthlessly. Use retrieval, reranking, and summarization to provide only highly relevant context. If the context window is large, put critical instructions at the beginning or end.
Journey Context:
There is a widespread assumption that larger context windows mean we should fill them. However, models suffer from 'lost in the middle' attention dilution. Adding irrelevant context increases latency, cost, and the probability of the model latching onto a distracting detail. A coding agent should prefer highly targeted snippets over entire files.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T00:40:36.353345+00:00— report_created — created