Context Window
The Sticky Note: AI's limited working memory
What is the context window?
Toy scale
Packing policy
Context limits do not prescribe which messages disappear. That is an application decision with different correctness tradeoffs.
Everything fits; no packing intervention is required. Raw history: 12 tokens · packed request: 12 tokens.
Whiteboard · 128 token capacity
Key Insight
See also: Unhobbling
Check your understanding
1/5What happens when the context window fills up?
Sources, scope & review statusVerified Jul 29, 2026
Claims this lesson makes
- Stable conceptA context limit bounds the tokens available to a request and its generated output; the surrounding application decides what to include, compress, retrieve, or reject.
Scope: The whiteboard is a packing-policy simulator, not a claim that every provider drops the oldest message.
- Stable conceptInformation can be harder for a model to use even when it fits inside the advertised context window, and performance can depend on where relevant evidence appears.
Scope: Lost in the Middle reports this behavior on evaluated long-context tasks and models; it is not a universal accuracy curve for every model or prompt.
Primary reading
Next content review: 2027-07-29. Source links establish the lesson's claims; interactive numbers remain labeled simulations unless explicitly identified as measured data.