// what it actually is
The context window is the maximum number of tokens the model can attend to in one call — the prompt it reads plus the answer it writes. It's per-request working memory, not long-term recall. A token is roughly three-quarters of a word, so the count is the model's, not yours.
Input and output share it
It's one budget, two claimants. A big input leaves less room for the reply — pour enough into the box and the model runs out of space to answer. Push past the edge and the call doesn't truncate quietly; it errors.
It resets every call
The model is stateless. Between turns it remembers nothing. The "it knows what we talked about" feeling is the app replaying the whole conversation on every request — re-sending past turns as input each time. Stop re-sending them and the memory is gone.
Sources: Anthropic — Context windows · OpenAI — Conversation state (stateless) · OpenAI — What are tokens · Liu et al. — Lost in the Middle
One concept a week. Free.
The deeper, copy-paste version of each ToolCall short — in your inbox.
// total: 0.00 · spam: void · unsubscribe: one click
