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.
The context window: the agent's working memory card 3 of 5

The rules of the budget

builds on: Tokens: how models measure text, What the agent can and cannot see
- The budget is fixed for each model, often around 100,000–200,000 tokens. Some models have more. - Whatever enters the context stays and counts for the rest of the session. Nothing leaves on its own until the budget runs low. - **Fastest fillers:** large files read in full, long command output and logs, and long sessions, where everything piles up. - Near the limit, tools usually summarize or drop older material to make room. Details get lost, including your early instructions.
Terms on this card
session
One continuous conversation with the agent, from when you start it until you close or restart it.
command output
The text a command prints when it runs, such as results, progress messages or errors. Anything the agent runs adds its output to the context.
model
The AI that reads text and writes text. In an agent, it decides what to do next.
command
A line of text that tells the computer to run a program, typed in a terminal, for example `python src/cart.py`.
output
The text a command or program prints when it runs, including results and error messages.
Learn this step by step on Bytewise
Lesson goal: Explain that everything in a session (instructions, messages, files read, command output) shares a fixed token budget. Predict what fills it fastest: large files, long logs and long sessions. · the whole lesson