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.
Cost and usage limits card 3 of 6

What drives usage

builds on: The context window: the agent's working memory, The agent loop: act, observe, repeat
Usage ≈ tokens read + tokens written, **summed over every step**. - **Context size**: big files, long logs and long sessions make *each* step heavier. - **Number of steps**: retries, failing test runs and wandering searches add steps. - **Output**: long replies, big rewrites, long reasoning. - **Model**: stronger models cost more per token. They often reason longer, which adds output tokens and makes them slower. Waiting itself is not billed. Many tools cache repeated context. That makes re-reading it cheaper, not free.
Terms on this card
token
The small chunk of text (often part of a word) that models read and write. Usage and prices are counted in tokens.
context
Everything the model sees in a session: instructions, messages, files read and command output. It all shares one fixed token budget.
step
One pass through the agent's loop: the model reads the context, then replies or makes one tool call.
output tokens
Tokens the model writes: replies, edits, commands and hidden reasoning. Usually priced several times higher than input tokens.
cache
A tool or provider feature that stores context it has already seen, so re-reading that context costs less. It still costs something.
Learn this step by step on Bytewise
Lesson goal: Explain what drives usage: tokens read and written, long contexts, repeated tool loops, and stronger or slower models. Explain how subscription limits and pay-per-use differ in general, and why focused tasks waste less. · the whole lesson