By the end of this lesson you will keep each chat small and focused, so every request carries only what the AI needs, and you will let the cache do the rest.
You need: your coding agent and a project you are working on (any size) · Time: 8 minutes
Remember the bucket from lesson 1: whatever goes in stays there, and every later request carries it again.
Say you paste a 2,000-line error log into the chat. At roughly 10 tokens per line, that is about 20,000 tokens. If you keep working in the same chat for 20 more requests, that log travels 20 more times:
- Extra input: 20,000 × 20 = 400,000 tokens
- On DeepSeek V4.1 Flash: 400,000 × $0.15 ÷ 1,000,000 = $0.06, about ₹5.60
- On Kimi K3.1 Pro: 400,000 × $2.00 ÷ 1,000,000 = $0.80, about ₹74
That is before any cache discount, and for one log you probably needed 20 lines of. Old, unrelated text also makes answers worse: the AI pays attention to it.
Why?Keeping the context small saves money twice: fewer tokens on every request, and fewer wrong turns because the AI isn't distracted by yesterday's problem.
Log in free to read the rest of this lesson
Every lesson is free. A free account unlocks all of them and saves your progress.
Still to come in this lesson:
- One task, one chat: /clear and /compact
- Point at the files, not the whole project
- Paste the error, not the whole log
- Let the cache do the rest
- Recap