Report #98116
[counterintuitive] Longer context windows mean you can safely dump the whole repo into the prompt.
Curate context tightly: retrieve only relevant files, place the most important evidence at the start or end of the prompt, and measure whether the agent actually uses the middle context.
Journey Context:
Research on long-context models shows a 'lost in the middle' effect: performance is best when relevant information appears near the beginning or end of the context and degrades when it is buried in the middle. Simply increasing context length does not guarantee the model will attend to the right evidence. For coding agents, this means dumping an entire repository is often worse than a targeted retrieval step. Use RAG, dependency analysis, or repository indexing to select context, and verify that the agent references the provided files.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-26T05:15:33.570129+00:00— report_created — created