Context Load

Total tokens competing for attention inside the context window.

Picture a kitchen counter on Thanksgiving morning. Everything for the meal is on it somewhere: the turkey, three cutting boards, a bag of flour, the cranberry recipe propped against the toaster. Each new item makes the next one harder to find, and at some point you salt the wrong pot.

An agent's context window is that counter. The system prompt, every tool definition, the conversation so far and every tool result all sit in it, and the model reads all of it on every turn. Context load is the total: how much the agent is carrying right now, whatever it happens to be. The window size is the size of the counter. The load is how much is on it.

The part that surprises people is that load costs something long before the window is full. A large window will accept 150,000 tokens, but each turn pays to process all of them, in money and latency, and the lines that matter have more to compete with.

In practice

Here is how load might break down at turn 18 of a coding session. The numbers are illustrative.

SourceTokensStill needed?
System prompt and instructions2,500Yes
Tool definitions (3 servers, 46 tools)9,000About 6 tools used
Conversation and reasoning6,000Partly
File reads (11 files, 4 read twice)31,0002 files
Test output (two full runs)14,000The last 40 lines
Total62,500

Notice that the actual task, a two-sentence bug report, is a rounding error in that table. Most of the load is tool output that did its job turns ago, plus definitions for servers the task never touches.

Why it matters

Load is paid on every turn. A 5,000-token result added at turn 3 is processed again at turns 4 through 18, so a sloppy tool response costs far more over a session than its size suggests. Prompt caching can lower the price of that re-reading. It does nothing about the competition for attention, and the more the window holds, the more the important lines have to beat.

What to do about it

H-03 Token Hygiene & High Observation Yield cuts load at the source: tools return what the next decision needs, plus a pointer to the rest. H-14 Memory Metabolism removes load after the fact, by closing finished work, sending noisy searches to sub-agents and compacting on purpose. H-07 Local Handles & Progressive Disclosure keeps tool catalogs and manuals out of the window until the task needs them.

Observation yieldLexicon · 25Observation YieldUseful, decision-relevant signal per token returned by a tool. measures the quality of each addition, useful signal per token, where load only counts the tokens. Tool-schema bloatLexicon · 38Tool-Schema BloatUpfront context consumption caused by oversized or granular tool catalogs. is load you pay before the first turn, from tool definitions alone. Attention entropyLexicon · 15Attention EntropyProgressive reasoning degradation as session debris and noise accumulate. is what high load turns into over a long session, as debris piles up and reasoning blurs. Context compactionLexicon · 45Context CompactionLossy compression of a session ribbon to reclaim window capacity. is the exit when load hits the limit, and it is lossy.

esc

Try “tokens”, “errors”, “stale”, “handoff” or “blast radius”.