Block I · Foundations · Lesson 3
Context and tokens: spend less and get better answers
You'll find out why each message costs more than the last: the model rereads the whole conversation on every turn. With simple numbers and six practical habits, you'll learn to spend up to three and a half times less and to make the model get fewer things wrong.
- 8 min
- 10 animated slides
- 4-question quiz
- Narrated in 6 languages
What you'll see in this lesson
- The cost isn't what you ask, it's what you carry
Every new message travels with the whole conversation that came before it, and you pay for that whole package.
- The model doesn't remember: it rereads everything
On every turn, the app sends it the full conversation again, starting from the first message.
- The same task, three and a half times cheaper
Twenty turns in a single session versus four sessions of five turns.
- One task, one session
When you change subject, start a clean session.
- Leave a note for the next session
A short file with the status of the work gives you continuity without dragging the whole history along.
- Short instructions: you pay for them every turn
CLAUDE.md and AGENTS.md, the instruction files the agent reads at the start of each session, travel with every message.
- Search before opening
Don't let the agent read half the project to find one function.
- Reasoning: medium by default
Thinking harder costs more tokens and more time. Save it for the hard stuff.
- Filter the noise from tests and builds
Tests and builds, commands that check the code, can spit out thousands of lines that go into context in full.
- Six habits that lower the bill
None of them needs a new tool, only discipline.
Tools and concepts
- Claude Code
- Codex
- rg
- tail
Sign in with your Google account to access this lesson and the whole course.