Crossing out the oldest turns

By Prof. Tom Yeh

Published: 2026-08-19

URL: https://www.byhand.ai/p/library-agents-context-truncation-dropping-the-oldest


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

Truncation is the crudest fix for a full window: cross out the earliest turns until the new message has room. It is cheap and it always works, which is why agents do it, and it costs the beginning of the conversation, which is usually the part that said what the conversation was for. Turns go whole. You cannot drop half a turn, so the count always rounds up and a little more is thrown away than strictly had to be.

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