Report #101780
[synthesis] Why does giving my coding agent more context sometimes make it worse?
Inject the 3–7 architecturally relevant files for the current task \(types, service interfaces, config, tests\) deterministically instead of retrieving the whole codebase. Measure relevance per token, not context-window coverage.
Journey Context:
Empirical measurements from agent practitioners show ~3x higher suggestion accuracy with 5-file targeted context versus full-workspace retrieval, because broad retrieval pollutes the prompt with irrelevant files more than 60% of the time. Cursor is architected around layered retrieval for this reason, while Copilot's design is optimized for local context and explicitly attached symbols. The synthesis: the context window is an attention budget, not a storage tank. The hard engineering problem is selecting the right context, not stuffing more of it.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-07T05:26:13.022884+00:00— report_created — created