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

When it already changed files

builds on: Following the agent while it works
Same cart task, but suppose you had approvals set to *always*. You only notice after `⚙ Edit: src/utils.py` and `⚙ Edit: src/api.py` have run. You press `Esc`. Those edits are still in your files, so the correction must mention them: ▸ You: Undo your edits to `src/utils.py` and `src/api.py`. Only change the discount math in `src/cart.py`. Then watch for new edits to those two files that put the old code back. Don't let it move on until you've seen them.
Terms on this card
Esc
The Escape key, usually top-left on a keyboard. Many terminal-based agents use it to stop the current task.
src
Short for "source": a common folder name for a project's main code files.
⚙ Edit
Notation used in this course for a tool action where the agent changes a file, as opposed to just reading it.
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