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.
Interrupting and redirecting mid-task card 1 of 6

It's heading for the wrong folder

builds on: Following the agent while it works
You type: "The cart total is wrong. Fix it." The agent reads `src/cart.py`, then searches the `db/` folder and asks to edit `db/schema.sql`. You know the bug is in the discount math in `cart.py`, and the database is fine. You can see it going the wrong way. You could let it finish and sort things out afterwards, or step in right now. Which is better, and what exactly do you type?
Terms on this card
schema
A file describing how a database is structured: its tables and the kinds of data each column holds.
`db/`
A folder name. Here, the folder holding database-related files in the example project.
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.
database
Software that stores data and lets programs query it. It needs its own setup, which is overkill for a small tool.
Learn this step by step on Bytewise
Lesson goal: Stop the agent as soon as it heads the wrong way and give a one-line correction. Explain why early redirection is cheaper than reviewing and undoing a long wrong run. · the whole lesson