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 2 of 6
Models read and write word pieces
Models don't see letters or whole words. Text is chopped into **tokens**. Common words are usually one token, and rarer words split into pieces: `unbelievable` might become `un` + `believ` + `able`. The model takes in all the tokens it's given, then writes its reply one token at a time.
Rule of thumb for English: 1 token ≈ 4 characters ≈ ¾ of a word. Code, symbols, long numbers and non-English text usually need more tokens per word.
Terms on this card
- token
- A chunk of text, often a word or part of a word, that a model reads and writes. Roughly 4 characters of English.
- model
- The AI system behind the agent that reads text and writes replies.
- 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