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 1 of 5

Where did your first instruction go?

builds on: Tokens: how models measure text, What the agent can and cannot see
You ask the agent why the nightly data import fails. It reads `app.log` (8,000 lines) and several source files, and you go back and forth with it for an hour. Then it edits a file that your very first message told it to leave alone. You never changed that rule, and the agent did read it. So why did it stop following it?
Terms on this card
log
A file where a program writes a running record of what it did, often thousands of lines long.
source files
The files containing a program's code.
agent
An AI tool that doesn't just chat. It reads your project's files, edits them and runs commands to carry out a task you give it.
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