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.
Workflow: understanding unfamiliar code card 5 of 6

Catching the one step it guessed

builds on: How a code project is laid out, Giving the right context: files, errors, examples, Confidently wrong: plausible is not correct
In the trace on the previous card, steps 1–2 point to files the agent opened. Step 3 cites `src/email.py`, which it never read. You run `ls src`: there is no `email.py`. Then `grep -rn welcome src` finds `send_welcome_email()` at `src/mail/welcome.py:12`. You reply: `Step 3 is wrong. Read src/mail/welcome.py and redo it.` Then you write the corrected flow in your notes, in your own words.
Terms on this card
grep
A terminal command that searches files for text. `-n` prints line numbers; `-r` searches through a folder and everything inside it.
ls
A terminal command that lists the files and folders in a folder.
trace
Following, step by step, which pieces of code run, and in what order, when something happens.
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.
src
Short for "source": a common folder name for a project's main code files.
Learn this step by step on Bytewise
Lesson goal: Use the agent as a guide to a new repo. Ask where things live, how a request flows through the code, and what a function is for. Ask for file and line references, check claims against the code, and write your own short map. · the whole lesson