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.
Doing a bigger change plan-first, step by step card 3 of 6

The plan-first loop

builds on: Reviewing and editing a plan, Sizing and splitting tasks, Commit before every task: checkpoints, Verifying before you accept a change
1. Ask the agent to save the approved plan to a file such as `PLAN.md`. It should number the steps and give each step a check. Commit the file. 2. Say: do **only** step N, run its check, then stop. 3. Apply your acceptance routine: compare the summary with the diff, run it yourself, and look for shortcuts. 4. Tick off the step in `PLAN.md`, commit, then go to the next step. **Re-plan rule:** if a step uncovers something the plan didn't expect, stop. Update `PLAN.md`, review the change, and commit it before you go on.
Terms on this card
PLAN.md
An example name for a plain text (Markdown) file in your project that holds the numbered plan, so the plan lives outside the chat.
diff
A view of exactly which lines changed between two versions of files: removed lines marked '-', added lines marked '+'.
commit
A saved snapshot of your project in git, with a message, that you can return to later.
acceptance routine
Your fixed checklist before committing: compare the summary with the diff, run the result yourself, look for shortcuts, and make sure you could explain it.
loop
Code that repeats a step for each item in a list, e.g. adding up every row of a table.
Learn this step by step on Bytewise
Lesson goal: Run a multi-step change by approving a plan, saving it to a file, executing one step at a time, and verifying and committing after each step. Re-plan when reality differs from the plan. · the whole lesson