Context windows

Beginner · 6 min · Explain what fits in a context window and what happens at the limit.

  • foundations
  • long input

A context window is the total amount of text a model can consider at one time. Your current message, earlier turns, pasted documents and the model’s own replies all share it. When people say a model “remembers” — this is what they mean: the text still inside the window.

No window, no memory

Outside the window there is no memory to search, because there is no store: the model reads what it is given, each time. A new conversation starts with an empty window — which is why a chat that “knows” your project today knows nothing about it tomorrow unless you bring the context along.

What happens at the limit

Two things, and both matter:

A bad example

Three hours into a working session you ask: “Based on what I told you at the start, which vendor did I prefer?”

The first hour may have fallen out of the window already. The model answers from what remains — and rather than say “that part is gone”, it may guess. Fluently.

A better example

Ask: “Summarize the decisions we’ve made so far as bullets. Then I’ll start a fresh chat and paste that.”

A fresh window full of relevant, compact context beats a stale window full of transcript. This carry-forward habit is the single most useful long-session tactic.

Why it works

Treat the window as working memory you manage:

A habit that keeps long sessions useful: whenever the goal shifts, restate the standing facts in the new message — the reader, the constraints, the format. Three lines of recap cost seconds and protect everything that came before; drift happens exactly where a recap was skipped. The model never gets tired of instructions — it only stops seeing them.

Practice

Fix the forgetting chat

You have been working in one long chat for hours. You ask about a preference you stated near the beginning, and the answer is confidently wrong — the start of the conversation has fallen out of the context window.

What is the best next step?

Choose one option
Hint

What is the smallest, most relevant context you could bring to a clean window?

Transfer

Next

Next: Why AI makes things up — the failure mode both mechanisms predict. The context window glossary entry covers the basics.