Report #41627
[counterintuitive] Dumping entire codebases or massive files into the context window to ensure the model 'has all the information'
Retrieve and inject only the strictly relevant context \(RAG\) and place critical instructions at the very beginning or end of the prompt.
Journey Context:
The 'lost in the middle' phenomenon shows that LLMs disproportionately attend to the beginning and end of long contexts. Dumping massive, uncurated context not only wastes tokens and increases latency/cost, but actively degrades the model's ability to follow instructions buried in the middle. Curation and strategic placement are far more important for agent reliability than sheer volume of context.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T00:20:29.314500+00:00— report_created — created