ASK KNOX
beta
LESSON 797

Context Is Everything

The context window is a finite budget, not a memory — and once you see what's competing for space inside it, AI stops seeming forgetful and starts seeming predictable.

5 min read·Basic Training

You told an AI an important detail on turn 3 of a long conversation — a constraint, a name, a decision you both agreed on. By turn 50, it's acting like that never happened. It feels exactly like forgetting. It isn't, not in the way a person forgets. What actually happened is mechanical, predictable, and — once you see it — completely avoidable.

The context window is a budget, not a memory

Every time an AI generates a reply, it's working from a fixed-size chunk of text called the context window — literally everything it can see at that moment, all at once. Nothing outside that window exists to the model on that turn, no matter how many times you said it earlier in a long chat, and no matter how obviously important it was.

Notice what's actually competing for space inside that one shared window: the system instructions that shape how the product behaves, the entire conversation history so far — every turn, not just the last one, which is also why long chats get slower and more expensive — any documents or files you've pasted or attached, your current message, and the words of the reply itself as it's being generated. All of it draws from the exact same limited pool, on every single turn.

Why AI "forgets"

Once that pool fills up, something has to give. Different products handle the overflow differently — some drop the oldest turns outright, some silently summarize or compress older turns, some simply refuse further input — but the shape of the problem is identical everywhere: information that was true and available at turn 5 can become invisible to the model at turn 50, not because it was wiped in any dramatic sense, but because it no longer fits in the working set the model reads before it answers. It's less like a memory fading and more like a desk that only holds so many papers before the ones on the bottom get swept off to make room for what just landed.

What belongs in a prompt, and what's wasted space

Because the window is shared and finite, everything you put into it competes for the same space and the same attention as everything else. What earns its place: the specific facts, decisions, and constraints the model actually needs for the current task; the smallest sufficient excerpt of a document rather than the whole thing; and a short summary of an earlier decision rather than the raw back-and-forth that produced it.

What's wasted: repeating information the model already has verbatim; pasting an entire reference document when only one section is relevant to what you're asking right now; and long stretches of exploratory back-and-forth that don't change the final instruction. All of it still gets re-read by the model on every turn, at cost, whether or not it's still useful — there's no "skip the boring parts" switch.

Why long conversations degrade before they ever run out of room

Even before the window technically fills up, quality quietly degrades. Researchers describe something informally called "lost in the middle": models measurably pay less attention to information sitting in the middle of a long context than to information near the very start or the very end. So a 90-turn conversation doesn't just risk losing turn 3 outright when the window overflows — turn 3 can still technically be sitting in the window and still get under-weighted relative to whatever you just said.

That's why a stuck, sprawling conversation often gets noticeably better with a fresh start and a tight two-sentence summary of what actually matters, rather than by scrolling back up and re-explaining things in place. You're not being impatient when you start over — you're routing around a real, mechanical limitation.

Session memory vs. persistent memory

Everything above describes memory within one conversation — call it session memory. It vanishes the moment the conversation ends, or gets compressed away before then, unless the product you're using does something deliberate to carry information forward on purpose. Persistent memory is that deliberate carrying-forward: a system that decides what mattered from past sessions and re-injects it into a brand-new context window later, so the model behaves as if it remembers you without that memory ever actually living inside any single conversation's window. Deciding what to keep, what to discard, and how to summarize instead of dumping everything back in wholesale is a discipline of its own — it's the entire subject of the Agent Memory 101 track (/tracks/agent-memory-101) if you want the deeper dive once you're through Basic Training.

If you want to see this idea taken further in public — a real build log of wiring persistent memory into an actual daily workflow instead of a toy demo — jeremyknox.ai documents exactly that kind of work in the open.

Bottom line

The context window is the fixed amount of text a model can actually see while it's generating your next answer — and it holds the system instructions, the whole conversation, any attached documents, and your current message all at once, competing for the same limited space. That's why AI "forgets" things you said earlier — they got crowded out or under-weighted, not erased on purpose — and why long conversations quietly degrade well before they technically overflow. Session memory disappears the moment a chat ends; persistent memory is a deliberate system built to survive past that. Next: now that you know exactly what a prompt competes for space with, it's time to learn what to actually put in one.