The context window and working memory
What it is
Two terms that describe what a model can 'hold in mind':
- A token is a piece of a word. Models measure text in tokens; a page is roughly 500.
- The context window is the maximum number of tokens a model can read in one call. Everything it knows about the task must fit inside it.
- Working memory is what you actually put in the window for this turn: instructions, the task, recent steps, and anything fetched from storage.
Why it matters
The window is the model's entire awareness, and it is finite.
- Anything not in the window does not exist for the model on that turn.
- A full window is not the goal. Models attend less well to the middle of very long inputs, and every token is paid for on every turn.
- So memory is really a selection problem: of everything that could be shown, what should be?
In the real world: An agent with a huge window was given a customer's full two-year history on every turn; it began quoting a cancelled address from 2024 until the history was replaced with a short profile.
Assuming a large window removes the need for memory design. A million-token window filled with every past message is slow, costly, and buries the one fact that matters.