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 4 of 6

Where the 52k came from

Roughly what the conversation holds: - Hidden instructions: about 13,000. - Your sentence: about 10. - Reading `src/auth.py` (300 lines of code): about 4,000. - Running the whole test suite: 2,500 lines of log, about 35,000. - The agent's actions and answer: a few hundred. Most of that log was passing tests that had nothing to do with login. A better request: run only `tests/test_auth.py` and stop at the first failure. You get the same answer for far fewer tokens, and the agent has more room left for real work.
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.
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.
test
A small piece of code that runs part of your program and checks it gives the expected result. It reports pass or fail.
test suite
All the tests in a project, run together.
log
Lines of text a program prints while it runs, describing what it is doing or what went wrong.
Learn this step by step on Bytewise
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