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

Step 1, start to finish

builds on: Reviewing and editing a plan, Sizing and splitting tasks, Commit before every task: checkpoints, Verifying before you accept a change
The plan is saved and committed first. The agent then does exactly one step and stops. You review the diff, run all the tests yourself, tick the step off, and only then commit.
▸ You: Save the approved plan to PLAN.md.
  Number the steps; give each a check.
⚙ Edit: PLAN.md
$ git add PLAN.md
$ git commit -m "Add plan for CSV export"
▸ You: Do only step 1 of PLAN.md. Run
  its check, then stop and summarize.
⚙ Edit: src/reports.py
⚙ Edit: tests/test_reports.py
⚙ Run: pytest tests/test_reports.py
◂ Agent: Step 1 done: added export_rows()
  and 2 tests. 14 passed.
$ git diff
$ pytest
▸ You: Tick off step 1 in PLAN.md.
⚙ Edit: PLAN.md
$ git commit -am "Step 1: export rows"
Terms on this card
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.
tests
Small pieces of code that run your program's code and check it gives the expected results.
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.
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