Three searches, three unknown sizes

By Prof. Tom Yeh

Published: 2026-08-19

URL: https://www.byhand.ai/p/library-agents-context-three-rounds-of-search


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

An agent that searches does not know in advance what it will get back. A query that finds nothing still costs a query, an empty result and an answer, and the window keeps all three: nothing is thrown away between rounds. So the cost of searching is not the cost of the search that worked, it is the cost of every search that came before it as well. Watch what one successful retrieval does to a window that two failed ones had barely touched.

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