Zenaique

Why is context stuffing the opposite of context engineering, even on a 1M-token window?

Flashcard·Easy·4.0 · 0·~30s·Asked atJane StreetMoveworksXai
Attempt it
TL;DR

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.

Memory aid
Sign in to see the mnemonic that makes this stick.
Easy to grasp

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.

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.

Cost: the linear scaling
Latency: prefill dominates
Accuracy: the lost-in-the-middle curve
When large windows are genuinely useful
Sign in to unlock the full deep dive.

Situations where this technique stops working.

Sign in to see when this approach fails.

2–4 min · Everything important, quickly.

Sign in to see the quick scan of the deep dive.

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.
Sign in to see more production examples.

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?
A

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.

2 more follow-ups an interviewer would ask next. Sign in to reveal them.

Red flags & common mistakes

The phrases that signal junior thinking. Click to expand.

Most common mistake

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.

Sign in to see all red flags and common mistakes.

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)

Sign in to unlock the revision sheet.

Primary sources. Browse if you want the original framing.

Similar questions

Same topic, related formats. Practice these next.

4 curated
Next question
Pick the most effective intervention when an agent's context grows by 8KB every iteration
MCQ·Medium