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

Redirecting at the approval prompt

builds on: Following the agent while it works
Here the approval prompt is the natural place to step in. You say *no*, then give a one-line correction that names the right place and fences off the wrong one. The next actions show it took the correction.
▸ You: The cart total is wrong. Fix it.
⚙ Read: src/cart.py
⚙ Search: "price" in db/
⚙ Read: db/schema.sql
⚙ Edit: db/schema.sql
[Approve? yes / no / always]
  no
▸ You: Wrong place. The bug is in the
  discount math in src/cart.py.
  Don't touch db/.
⚙ Read: src/cart.py
⚙ Search: "discount" in src/
Terms on this card
approval prompt
The point where the agent pauses and asks whether it may run a command or edit a file. You answer yes, no or always.
one-line correction
A short message after stopping the agent that says what's wrong, what to do instead and what to leave alone.
prompt
The message you type to the agent to give it a task or instruction.
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