Lesson format
Reading lesson with structured written material and clear navigation inside the course flow.
Reading lesson with structured written material and clear navigation inside the course flow.
This lesson is free and open to all visitors.
Every time you press Enter in Claude Code, a large package of text is sent to the Claude model. That package has a hard limit called the context window. On Claude Opus 4.7 (current generation at launch in 2026), that limit is 1,000,000 tokens — roughly 750,000 English words, or about 3,000 pages of a book.
This sounds enormous. It is also finite. And it is the single physical constraint that shapes how Claude Code remembers, forgets, and costs money.
The 1M budget is not spent on your last message alone. On every turn, Claude Code stuffs the window with everything it needs to answer correctly:
The assistant's reply is generated inside the same budget. If 950k tokens are already used, there are only 50k left for Claude to think and write.
A token is roughly 3–4 English characters, or a fragment of a word. "Claude Code" is about 3 tokens. A 200-line TypeScript file is typically 2,000–4,000 tokens. A large JSON response from an API can easily be 20,000 tokens. This is why reading a huge file "just to check something" is expensive.
The 1M ceiling is not just a dial the Anthropic team refuses to turn up. It reflects three hard realities:
Here is the mental model shift this course will keep returning to: Claude Code has no memory between sessions. When you quit and restart, the window is empty. Everything that felt like memory was just text that lived inside the 1M window for one session.
Real persistent memory — the kind where Claude knows your business, your clients, your design system on Monday and still knows it on Friday — must live outside the window, on disk, and be loaded back in at the start of each session. That loading mechanism is what the next five lessons and the rest of the course are about.
1 million tokens sounds like infinite memory. It is a hotel room — a large one — that gets cleared when you check out. This course is about building a house.