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 4 of 6
Subscription vs pay-per-use
builds on: The context window: the agent's working memory, The agent loop: act, observe, repeat
**Subscription**: a fixed monthly fee buys an allowance, usually measured over time windows (say, a few hours or a week). Stronger models use it up faster. When it runs out, you wait for the reset or the tool limits you. Unless you choose to buy extra, the bill does not grow.
**Pay-per-use**: the tool connects with an API key (a secret code tied to your account with the model provider), and every token is billed. Often there is no ceiling except one you set. A runaway loop (the agent retrying for hours without finishing) costs real money unless you set a spending limit.
Both are driven by the same tokens, so the same habits save in both.
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.
- loop
- The agent's cycle: decide a step, use a tool, read the result, repeat until it judges the task done.
- subscription
- A fixed monthly fee that buys a usage allowance. The cost does not grow unless you buy extra, but the amount of use is capped.
- pay-per-use
- Billing for every token used, often with no cap unless you set one. Longer or bigger sessions mean a bigger bill.
- API key
- A secret code that lets a tool use a model provider's service directly. Usage through it is usually billed per token.
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