Marking what the agent carries

By Prof. Tom Yeh

Published: 2026-08-19

URL: https://www.byhand.ai/p/library-agents-context-the-window-as-a-budget


Library › Context Problems

-

The Context Window

-

Window Occupancy

-

Growth per Turn

-

Remaining Space

-

Turn Budget

-

Retrieval Footprint

-

Retrieval per Turn

-

Search Rounds

-

Window Sizing

-

Truncation

-

Compaction

-

The Compaction Bill

-

Compacted Retrieval

-

The Compaction Threshold

-

Verbatim Tail

-

Stateless API

-

Retrieval Cost

-

Context Tax

-

Quadratic Cost

-

Cost Forecast

The context window is a hard ceiling; the model cannot see past it, and everything the agent carries has to fit inside. Drawn as cells, the window stops being a number and becomes a space you can fill: divide the tokens by the cell size to get the count, then mark them off. What is left over is the room the conversation still has, and the rest of the chapter is about spending it.

Paid members: the worksheet and its printable PDF are below ↓