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 3 of 6
Stop, note, correct, watch
builds on: Following the agent while it works
1. **Stop it.** Many terminal agents stop on `Esc`, and editor-based agents have a Stop button. Check your tool. At an approval prompt, answering *no* also stops that action.
2. **Note what's done.** Stopping prevents future actions. It does **not** undo edits already made.
3. **Correct in one line:** what's wrong, what to do instead, and any boundary ("don't touch `db/`").
4. **Watch the next few actions** to confirm it changed course.
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.
- Esc
- The Escape key, usually top-left on a keyboard. Many terminal-based agents use it to stop the current task.
- editor-based agents
- Agents built into a code editor program rather than run in the terminal. They usually have a Stop button in their panel.
- `db/`
- A folder name. Here, the folder holding database-related files in the example project.
- editor
- The program you write code in, such as VS Code.
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