Go from never having used a coding agent to working productively and safely with one. The learner should understand what an agent is and how it differs from a chat assistant. They should choose a tool, set up a protected first project, describe tasks the agent can do well, and follow and verify its work. They should recover from bad changes, manage context, and plan bigger changes. They should also use tests as the definition of done and run everyday workflows (bug fixes, features, writing tests, codebase exploration, scripts, small tools, refactors). Throughout, they should keep secrets and systems safe and keep their own understanding growing instead of outsourcing it.
Tokens: how models measure text
card 6 of 6
Remember
Models read and write **tokens**, word pieces of roughly 4 characters of English. Everything the agent sees costs tokens: your words, its replies, hidden instructions, the files it opens and the command output it gets back. The whole conversation is re-read at every step, so tokens set both how much it can hold at once and what you pay.
Terms on this card
- agent
- An AI tool that can act in your project, such as reading files, running commands and editing code, not just chat.
- command
- An instruction typed into a terminal (a text window for running programs) that runs a program, such as `pytest`.
- hidden instructions
- Text the tool adds to every conversation without showing you, telling the model how to behave and what actions it can take. It counts as tokens too.
- output
- Here: tokens the model writes, meaning its replies and the code it produces. Also the text a command prints, depending on context.
- tokens
- Secret strings, similar to API keys or passwords, that a service issues to grant access.
Lesson goal: Explain that models read and write text as tokens (word pieces). Explain that files, command output and conversation all consume tokens, which sets both memory limits and cost. ·
the whole lesson