H
Howardism
Plate IIAgent Systems中文HOWARDISM

Context Window Smart Zone

PublishedMay 6, 2026FiledConceptDomainAgent SystemsTagsLLM ArchitectureAgent EngineeringContext ManagementReading15 minSourceAI-synthesised

Smart zone vs dumb zone (Dex Hardy / Matt Pocock): quadratic attention scaling, ~100K marker independent of advertised context; clear-and-restart > compaction; status-line token counting as essential discipline

Illustration for Context Window Smart Zone

Sources#

Summary#

LLMs do not degrade linearly as context grows; they degrade quadratically because attention relationships scale O(n²) with token count. Matt Pocock (citing Dex Hardy of Human Layer) frames this as a smart zone / dumb zone split: the first ~100K tokens of any session is the smart zone where the model performs well; beyond that the model gets "dumber and dumber" regardless of advertised window size. Practical implication: context budget is a real, hard resource — and the agent harness is responsible for keeping individual sessions within the smart zone.

The constraint#

"Every time you add a token to an LLM, it's kind of like you're adding a team to a football league. The number of matches goes up quadratically."

"It doesn't matter whether you're using 1 million context window or 200K, it's always going to be about [100K]. It starts to just get dumber."

Matt Pocock

The 1M-token context windows shipping in 2026 don't move the smart zone — they "just shipped a lot more dumb zone." Long context is useful for retrieval (find a fact in five copies of War and Peace) but not for reasoning (write code that depends on all of it).

Memento metaphor#

Each session is a fresh start. There is no memory across sessions; the model resets to the system prompt every time. This is a constraint but also a feature — clearing context restores smart-zone behavior cheaply. Persistent state must live somewhere the next session can read it (repo, filesystem, a the index-style catalog).

Compaction is worse than clearing#

Claude Code's /compact command summarizes the running session into a smaller history. Pocock prefers /clear:

  • Compacted history accumulates "sediment" — distortions and lossy summaries — that degrades subsequent work
  • Clear-and-restart returns to a known-clean baseline (the system prompt)
  • The cost of clearing is paid back by working in the smart zone

The disagreement isn't universal — many developers like compaction because it preserves continuity. The right call depends on whether your task can be resumed cleanly from a written record (then prefer clear) or needs in-flight conversational context (then compaction wins). (the binary framing superseded 2026-08-03 by Self-GC: Self-Governing Context for Long-Horizon LLM Agents; the underlying observation still holds — see below)

Measured (2026-08-03): what summarization loses, and a third option#

Pocock's argument is practitioner-opinion; Self-GC (Xiaohongshu, arXiv 2607.00692, empirical) measures the same thing on 332 production-derived agent sessions and the practitioner intuition survives — with a sharper mechanism and one correction:

  • "Sediment" has a name. What summarization loses is not blurriness in general but exact evidence, locators and live handles, behavioral contracts (user corrections), verbatim source text, and current live state. A summary "preserves narrative state but hides exact evidence, locators, and editable artifacts."
  • The choice is not binary. A third policy — govern the run at object granularity, folding bulky payloads to byte-exact recoverable sidecars rather than summarizing them — covers exactly the case where both clear and compact are bad: the task needs in-flight context and exact artifacts.
  • Cutting harder is not free. Heuristics that remove 62–70% of Hard Set prefix tokens land at 54.55–69.70% "no-impact" (higher is better); Self-GC removes 43.95% and reaches 84.85%. A harness that stays inside the smart zone by pruning aggressively trades a quadratic-attention problem for a missing-dependency problem.

The cliff has a number (added 2026-08-04). The most vivid measured instance of Pocock's sediment claim is one the corpus reaches at second hand: compressing an 18,282-token context to 122 tokens in a single unvalidated step dropped task accuracy from 66.7% to 57.1% — below the no-context baseline. Summarizing was worse than sending nothing, because the summarizer had no way to know what would be needed downstream. Provenance matters here: the figure is Zhang et al. 2025 (Agentic Context Engineering, arXiv 2510.04618) as cited by Maximem's ACM paper (arXiv 2607.21503, empirical, sole author with a total vendor COI — but the COI attaches to that paper's own product claims, not to a number it is quoting from third-party work the wiki has not read directly). The generalization the citing paper draws is the one to keep, and it is the same distinction Context Lifecycle Management draws with a mechanism: crude summarization buys linear cost by surrendering fidelity, and the failure is not a degraded answer but a confident wrong one.

Measured (2026-08-04): retrieval survives far past the marker, and what breaks near the ceiling is refusal#

The ~100K marker above is a claim about reasoning, and Pocock's own carve-out is that long context stays useful for retrieval. Eliav 2026 (arXiv 2607.19257, empirical) is the corpus's first controlled measurement of that carve-out: a deterministic, contamination-free 512,000-token synthetic corpus (8,780 uniquely-named fictional entities, generated from a fixed seed with no LLM involved, so chance-level recall is ~0), sliced into a 2k→512k ladder, rendered in four content-identical formats, probed for recall, false-premise sycophancy, and fabrication of facts never stated. Five models, 5,520 calls each at full context, 30,480 scored responses. The carve-out survives, and three findings sharpen it.

1. Recall is flat to 64–128k, then breaks format-dependently. At 2k, 16k and 64k every model in every format sits at 0.98–1.00 recall accuracy and no format discriminates. Separation first appears at 128k. So the smart-zone marker is not a retrieval marker — a model can still pull a specific unguessable fact out of 64k of undifferentiated text essentially perfectly, and Gemini Flash is still at 0.93–1.00 at 512k.

2. The wall is per-model, not per-token. Claude Haiku at 128k is the largest format spread in the dataset — plain text collapses to 0.383 recall while markdown, prose and table sit at 0.817–0.867, a 48.4pp gap driven by one format alone. Meanwhile Sonnet 5's format spread nearly doubles from 256k (11.7pp) to 512k (20.0pp) while Gemini Flash's stays flat (5.0pp → 6.7pp) across the identical token range, with both models carrying the same documented 1,000,000-token ceiling. Spread magnitude tracks proximity to a model's own effective ceiling, not absolute token count. This is the strongest evidence in the corpus that a single universal marker — 100K or otherwise — is the wrong shape for the constraint; the number is a per-model property that has to be measured, and the advertised window does not predict it.

3. The failure mode near the ceiling is refusal, not hallucination. This is the finding the page did not have, and it inverts the usual monitoring posture. Fabrication of unstated facts is exactly zero — 0 of 5,760 absent-fact probes, every model, every rung, every format. Direct sycophantic agreement with a stated false premise peaks at 8.3% in a single cell and sits at or under 3% in the large majority. What climbs, steeply, is outright refusal to answer the false-premise probe:

Model2k16k64k128k256k512k
Claude Haiku0.0000.1420.7040.896
Sonnet 50.1540.0580.3170.2170.5790.788
Gemini Flash0.0040.0000.0040.0420.3500.250
Qwen 27B0.0080.0000.1250.362
Qwen 35B0.0380.0960.0880.154

Refusal also contaminates the recall numbers in a way worth knowing: at Sonnet 5's 512k rung, three in four of its incorrect markdown responses are a literal "insufficient information" non-answer rather than a wrong guess, so plain and table's apparent recall advantage there is partly a lower propensity to refuse rather than better comprehension. A harness that monitors only for wrong or agreeable answers near the top of a window is watching the wrong failure.

Format is not free, and the cost can flip the choice. Rendering the same facts costs 1.221× plain for prose, 1.258× for markdown, 1.367× for a table — stable across every rung. At Claude Haiku @ 128k, prose and table tie on raw accuracy (0.867 each) and overhead breaks the tie in prose's favour. The paper's own bound on this: outside the two cells with a genuine accuracy gap, every format is within noise and picking the cheapest is a tiebreak, not an efficiency gain.

Caveats. Sole author, single lab, preprint. For the three short-context models the "ceiling" the refusal curve climbs toward is the largest rung tested (128k), not a measured wall, so "approaching its own ceiling" is doing looser work there than for Sonnet 5 and Gemini Flash. Cross-rung comparisons in this design are only valid against the paper's fixed 20-question anchor set — it caught one apparent Gemini Flash 256k→512k improvement (0.900 → 1.000) as a question-composition artifact — and the refusal climb and the ranking flips both survive that check. And the fabrication null cannot fully separate "verified the fact's absence" from "declined to answer anything at this rung," since the absent probe scores declining-to-answer as correct; the paper says so itself.

Implications for harness design#

  1. System prompt budget. Anything always-in-context comes off the smart-zone budget. "I have seen people put 250K tokens [in the system prompt], then you're just going into the dumb zone before you can even do anything." Keep CLAUDE.md / AGENTS.md as a table of contents, not an encyclopedia (see Agent Harness Engineering on AGENTS.md as ToC).
  2. Sub-agents preserve parent context. A sub-agent runs in its own context window; only its summary returns. Pocock's grill-me skill ran a 93.7K-token sub-agent yet his main session still had ~25K tokens unused.
  3. Fragment work into many sessions. Loops (see Agent Loop Pattern) and vertical slices (see Vertical Slice Tracer Bullets) work because each iteration starts fresh in the smart zone.
  4. Reviewer should run in fresh context. If the implementer used 80K tokens in the smart zone, asking it to review its own work pushes the reviewer into the dumb zone. Cleared context = smart-zone reviewer (see Deep Modules for Agents on push-vs-pull and reviewer placement).
  5. Push vs pull instructions. Always-in-context instructions cost smart-zone tokens; pull-on-demand (skills) costs nothing until invoked. The token budget is not the only ceiling on the always-in-context block: instruction count has its own, independent of length — see Instruction Compounding.
  6. Budget for refusal near the ceiling, not hallucination. The measured failure at the top of a window is the model declining to answer (up to 89.6% in one model), not inventing something. Alerting and evals aimed only at wrong-or-agreeable answers will read clean through it, and a rising non-answer rate will look like a quality regression rather than a context-budget symptom.

Status-line token counter as an essential tool#

Pocock recommends a status-line widget showing the exact running token count of each session — without it, developers don't know when they're approaching the dumb zone. He treats this as "absolutely essential information."

Connections#

  • Context Lifecycle Management — the measured alternative to both clearing and compaction: govern the active context as indexed objects with byte-exact recovery, and price the commit against prefix-cache disruption
  • Instruction Compounding — the other ceiling on always-in-context material, measured in the same paper and denominated in instruction count rather than tokens: a prompt block collapses past ~80 simultaneous rules whatever its length or rendering
  • Scale-Dependent Prompt Sensitivity — the format half of the long-context result: which rendering wins reverses between models and between adjacent rungs of the same model, so there is no portable "use markdown for injected context" rule
  • Matt Pocock — popularizer of the smart-zone framing
  • Agent Harness Engineering — system-prompt minimalism and AGENTS.md-as-ToC are restatements of the smart-zone principle
  • Agent Loop Pattern — fragmenting work to stay in smart zone is why loops are powerful
  • Vertical Slice Tracer Bullets — keeping each task small enough to fit in smart zone
  • Design Concept Grilling — the grilling session uses a sub-agent so the parent context stays small
  • Deep Modules for Agents — clearing-before-review is a smart-zone discipline
  • Harness Shrinkage as Models Improve — the smart zone may grow ("the dumb zone has become less dumb lately") but quadratic attention still constrains it
  • AI Brain Fry — human-side analog of the smart zone: oversight has its own degradation curve past capacity, mirroring attention degradation past ~100K tokens
  • Interaction Models — continuous audio/video at 200ms granularity accumulates context fast; TML names long-session context management as an open problem — the same constraint in a new modality
  • HTML as the New Markdown — the human-attention analog: a reader degrades past some volume of undifferentiated markdown the way a model degrades past ~100K tokens; HTML raises the human's effective smart zone by spending tokens on legibility
  • Agentic Technical Debt — founders' persistent-context discipline (CLAUDE.md) competes with smart-zone budget; over-long context files become their own problem
  • Authority and Audit Survive Abundance — this page's effective-ceiling/refusal evidence as the unpriced third leg of "free" long context: dollar price and capability price diverge — though it is the one leg of the retrieval defense that model improvement erodes rather than structure protecting

Open Questions#

  • Does the smart-zone marker scale with model size, or is it bounded by attention architecture? Pocock observes "the dumb zone has become less dumb lately" but pegs it at 100K through 2026. Partially answered 2026-08-04 by Prompt Design at Scale: How Format, Instruction Count, and Context Length Shape Instruction Adherence and Hallucination in Large Language Models (empirical) — neither cleanly, because the premise of a single marker doesn't hold. Degradation onset is a per-model effective ceiling that the advertised window does not predict: two models sharing the same documented 1,000,000-token ceiling diverge sharply in format-spread growth over the identical 256k→512k range. It also splits the question by task — retrieval holds at 0.98–1.00 through 64k and past 128k for some models, well beyond the 100K marker, which is consistent with Pocock's own retrieval-vs-reasoning carve-out. The paper measures no reasoning task, so whether the ~100K reasoning marker is architectural remains untested.
  • When sparse-attention or memory-augmented architectures ship, does the smart zone become a soft constraint?
  • How should harnesses surface remaining smart-zone budget to the user — token count, percentage, or a richer signal?

Sources#

§ end
About this piece

Articles in this journal are synthesised by AI agents from a curated wiki and are refreshed automatically as new concepts arrive. Topics, framing, and editorial direction are curated by Howardism.

Cited by 37
Related articles
  • Harness Shrinkage as Models Improve

    Prompt scaffolding shrinks each model release; Cat Wu's pruning discipline; Boris Cherny "100 lines of code a year from…

  • Agent Harness Engineering

    Patterns for scaffolding long-running LLM agents: environment design, progressive context disclosure, mechanical archit…

  • Claude Code Best Practices

    Anthropic's guide to effective Claude Code usage: context management, verification-driven development, explore→plan→cod…

  • Agent Loop Pattern

    `/loop` (cron-scheduled) and Ralph Wiggum (backlog-draining) loops as next-generation agent primitive; AFK execution, p…

  • Design Concept Grilling

    Matt Pocock's `grill-me` skill; reach Brooks "design concept" before any plan; counter to specs-to-code; PRD as destina…