Report #29972
[counterintuitive] Bigger context windows mean I should include all project files in the prompt
Use dynamic context retrieval \(RAG or map-reduce\) and place critical instructions at the beginning or end of the prompt, never the middle.
Journey Context:
Developers assume 128k/200k context means the model reads everything equally. Research shows LLMs suffer from 'Lost in the Middle' degradation. Stuffing irrelevant code dilutes the attention mechanism, causing the model to ignore instructions or hallucinate connections between unrelated files. Less relevant context is better than maximum context.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T04:41:53.258483+00:00— report_created — created