A Million-Token Window Is Not a Million Tokens of Attention

Meshie · 2026-10-28 · 7 min read · ai · architecture · product-development

Context windows have gone from a few thousand tokens to well over a million in about three years. The obvious conclusion — that the context problem is solved, and you can now simply hand the model everything — is wrong in a way that costs real money before anyone notices.

Capacity and attention are different quantities. Transformer attention scales pairwise, so every token you add competes with every other token for the model's finite ability to discriminate. Fill a large window with raw documents and complete turn history and you get context rot: recall degrades, factual precision slips, and long-range reasoning gets soft. In an enterprise setting that shows up as the needle-in-a-haystack failure — the model misses the one indemnity clause that mattered, or quietly reconciles two contradictory numbers instead of flagging them. Nothing errors. The answer just looks plausible and isn't.

This is why the industry's attention moved from prompt engineering to context engineering. Rewording a prompt is local optimization. Context engineering is the design of the whole runtime information environment: what gets loaded, what gets summarized, what gets written down outside the model, and what never enters the window at all.

The budget, written out

It helps to stop thinking of the context window as a container and start thinking of it as a budget with competing line items:

Context Budget = System Instructions
               + Tool Definitions
               + Retrieved Data
               + Dynamic Memory
               + Turn History

Every item is real and every item is paid for twice — once in tokens, once in diluted attention. Tool definitions are the line item teams most often forget they are funding: forty tools attached "just in case" is a standing tax on every single call, and it is also the main cause of tool-selection confusion, where a capable model picks the wrong instrument because it is choosing from a crowd.

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 196" role="img">
  <title>The same window spent two ways — capacity is not attention</title>

  <text x="4" y="24" font-size="11" fill="var(--text-muted)">FILL THE WINDOW — raw documents, every tool, the whole transcript</text>
  <rect x="1" y="34" width="793" height="40" rx="8" fill="var(--sand-1)" stroke="var(--border)" />
  <rect x="1" y="34" width="64" height="40" rx="8" fill="var(--primary-50)" stroke="var(--primary-600)" />
  <text x="33" y="59" text-anchor="middle" font-size="11" fill="var(--ink-1)">Signal</text>
  <text x="432" y="59" text-anchor="middle" font-size="14" fill="var(--text-muted)">Noise that still competes for attention</text>

  <text x="4" y="110" font-size="11" fill="var(--text-muted)">ENGINEER THE CONTEXT — compaction, external notes, scoped sub-agents</text>
  <rect x="1" y="120" width="793" height="40" rx="8" fill="var(--sand-1)" stroke="var(--border)" />
  <rect x="1" y="120" width="520" height="40" rx="8" fill="var(--primary-50)" stroke="var(--primary-600)" />
  <text x="261" y="145" text-anchor="middle" font-size="14" fill="var(--ink-1)">High-signal tokens the task actually needs</text>
  <text x="657" y="145" text-anchor="middle" font-size="14" fill="var(--text-muted)">Headroom</text>

  <text x="4" y="186" font-size="11" fill="var(--text-muted)">Same capacity, different precision. The second bar also costs less per call.</text>
</svg>

Three patterns that buy the budget back

The teams running agents over long horizons have converged on roughly the same three moves.

Compaction and tool-result pruning. Rather than carrying every intermediate step forever, the agent continuously summarizes its own progress — preserving decisions made and questions still open, discarding the raw payloads that produced them. A 40,000-token database return mattered for one step. Its conclusion matters for the rest of the run.

External structured note-taking. The agent writes findings and state to durable storage outside the prompt and reads them back on demand. This is the difference between remembering and re-reading. It also makes the run inspectable by a human, which matters more than it sounds.

Hierarchical sub-agent decomposition. A monolithic agent holding twelve tools and a nine-step instruction drifts. An orchestrator that delegates to specialists — one for retrieval, one for calculation, one for policy verification — gives each a clean window scoped to its job, and gets back a few hundred distilled tokens instead of the whole exploration. The noisy token churn stays quarantined in the sub-agent.

Hebbia's engineering team published a useful account of exactly this: their first architecture was one agent with many tools, it saturated and lost recall on large data rooms, and the rebuild into specialized retrieval, state, column-generation and synthesis agents is what made diligence over thousands of documents hold together. Their deal teams report saving 20 to 30 hours per transaction — and that figure is a consequence of the context architecture, not of a better base model.

Meshworq's agentic mesh is built on the same premise. Delegation is not there to look sophisticated; it is there because a scoped context window is a more accurate one, and because a specialist's hand-back is a natural place to put a checkpoint.

Budgets need governance, not just discipline

Here is the part that gets skipped. Once you accept that context is a budget, you have accepted that it can be overspent — and a recursive multi-agent system is very good at overspending. Compute cost per task becomes an operational metric alongside accuracy, and "the agent looped eleven times" needs to be a thing the platform notices and stops.

That is why cost caps and circuit breakers sit next to the risk scoring and the approval queue in Meshworq rather than in a separate billing corner. An agent that burns its budget and an agent that proposes something risky are the same category of event: a run that needs a human before it continues. The decision ledger records both, with the correlation id that lets you reconstruct what the model actually had in front of it when it decided.

That last point is the quiet payoff of context engineering. If you curate what enters the window, you can say what entered the window. An audit trail over an opaque million-token dump explains nothing; an audit trail over a deliberate context is an explanation.

The takeaway

Bigger windows did not remove the need to decide what the model sees — they raised the cost of not deciding. Treat tokens as a finite, priced resource: load the smallest high-signal set that can solve the task, compact aggressively, write state down outside the prompt, and give each sub-agent a window scoped to one job. Then measure cost per task the way you measure accuracy, because in an agentic system they are the same engineering problem viewed from two sides.

← All Field Notes