Paying for the Past

By Prof. Tom Yeh

Published: 2026-08-19

URL: https://www.byhand.ai/p/library-agents-context-paying-for-the-past


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

Each turn's bill has two halves, and they behave differently. The answer is the same size every turn, so its half never moves. The input is the whole conversation so far, so it grows by a fixed step, and its half grows with it. Three turns in, the input half has tripled while the output half has not shifted a cent.

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