How AI Works
$definecontext-window--plain-english
TLDRHow much your AI can hold in mind at once.
AI does not have memory. It has a room.
You are three hours into one chat, scaffolding from the builder, pasting errors, uploading files. The agent starts contradicting itself. Forgetting the stack you picked ten messages ago. You assume it broke.
It did not. You became a hoarder.
Everything you give a model has to fit in one room, all at once. Your latest message. The whole thread so far. Any files you attached. The hidden instructions — "you are a coding assistant, today is…" — plus whatever lives in a project rules file or a skill.
All of it stacked in the same room. The context window is just how big that room is, measured in tokens.
Every time you hit send, the model re-reads the entire room from scratch. It is not remembering the way a person does. It is reading every page again, top to bottom, every single turn.
Different models hand you different-sized rooms, and the spread is enormous. A small window is a studio apartment — fine for a quick question. A frontier model is a mansion — hundreds of thousands of tokens, enough pages to bury a desk. The numbers climb every few months. Do not memorize them. Remember the shape: some rooms are ten times bigger than others, and none of them are infinite.
That sounds like unlimited space. It is not. Bigger is not automatically better. A mansion packed wall to wall with junk is still a mansion you cannot find anything in. Cram the room full and the model loses track of what is where, even though it all technically fits. That is why a long, sprawling chat slowly feels dumber than a fresh one. You have not broken anything. The room got cluttered.
When you say "but I told you this an hour ago" and it stares back blankly, that is not amnesia. The room filled up. Early pages got pushed toward the door to make space for the new ones. You are expecting someone to find one receipt in a library that has not been shelved.
Once you see the room, you stop fighting it.
The window is the desk, not the library. Keep the desk readable.