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, and the right page is harder to find. 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.
Frontier context windows of 1M tokens or more 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). The soft budget (the size past which added tokens stop helping or start hurting) is usually a small fraction of that.
The two budgets
A modern context window has two budgets, not one.
The hard budget is the token ceiling the API will accept. On current Claude models that is 1M tokens. 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. A million tokens of input gives it many places to look other than 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 stuffed prompt is easy for the model to miss.
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, and Anthropic's guidance still recommends retrieval over stuffing for large production knowledge bases.
- Gemini models offer long context windows, but long-context benchmarks such as RULER and 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.