Why is context stuffing the opposite of context engineering, even on a 1M-token window?
A 1M-token window raises the hard ceiling, not the soft one, stuffing pays full cost and full latency to bury the right chunk under distractors.
Picture a library researcher with a question. One librarian walks them straight to the three books that answer it. Another librarian wheels in every book in the library and dumps the entire pile on the table. The second approach is not more thorough, it is just more expensive and more confusing. The researcher's eyes have to scan more, the right page is harder to find, and the answer comes out blurrier because so many irrelevant pages were in view. A bigger reading table does not change this. It just makes the pile fit. Context engineering is the first librarian. Stuffing is the second.
Concept explanation~2 min read
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Concept explanation~2 min read
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
The 2026 long-context window sizes (1M tokens on Claude Opus 4.7, 2M on Gemini 3.1 Pro, comparable on GPT-5.5 and Llama 4 Maverick) make it tempting to argue that retrieval is a relic of the 8K-window era. The argument is a category error: a larger window expands the hard budget, the API limit, but the soft budget, the size past which added tokens stop helping or start hurting, is usually a small fraction of that.
This card walks through the three production axes (cost, latency, accuracy) on which stuffing fails, and explains why context engineering remains a discipline regardless of advertised window size.
The two budgets
A modern context window has two budgets, not one.
The hard budget is the token ceiling the API will accept. On Claude Opus 4.7 that is 1M tokens. On Gemini 3.1 Pro it is 2M. Past the ceiling the request fails outright. Most production prompts do not get anywhere near this.
The soft budget is the size past which marginal tokens reduce answer quality. This is task-dependent and model-dependent. Long-context evals like RULER and BABILong consistently show that effective accuracy declines well before the hard ceiling, often by 100K tokens or earlier on many tasks.
Why the gap exists
Attention is a finite resource even when the window is generous. The model has to decide where to look, and a million tokens of input gives it a lot of places not to look at the right one. The lost-in-the-middle curve is the empirical signature of this: the model attends well to the head and tail of a long input and underattends to the middle. The right chunk in the middle of a million-token stuff is functionally hidden.
Situations where this technique stops working.
2–4 min · Everything important, quickly.
Real products, models, and research that use this idea.
- Claude Opus 4.7 ships a 1M-token context window in 2026, paired with documentation that explicitly recommends retrieval over stuffing for production RAG.
- Gemini 3.1 Pro supports 2M-token context but Google's published benchmarks (RULER, BABILong) show effective accuracy declining well before the limit.
What an interviewer would ask next. Try answering before peeking at the approach.
QWhen a 1M-token window actually helps, what does the right usage look like?
Long-document QA where the document is the input, long agent trajectories with genuine state, conversations whose history would otherwise need summarization. The win is fewer compromises, not more retrieval.
Red flags & common mistakes
The phrases that signal junior thinking. Click to expand.
Red flags & common mistakes
The phrases that signal junior thinking. Click to expand.
Treating advertised window size as effective capacity. Frontier models have nominal 200K to 2M windows but their soft budget, where added tokens stop helping or start hurting, is usually a small fraction of that.
60 second bullets to scan on the way to the call.
Define context engineering in one sentence
List the three axes on which stuffing fails (cost, latency, accuracy)
Primary sources. Browse if you want the original framing.
Same topic, related formats. Practice these next.