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.
Workflow: adding a small feature card 4 of 6

Search, walked through

builds on: Doing a bigger change plan-first, step by step, Tests as the definition of done
You commit first. That commit is your `<start-commit>`. Then you send the spec below. The plan comes back with 3 steps, and you save it to `PLAN.md`. Step 1 writes tests from your examples, and they fail, as they should. Step 2 adds case-insensitive matching, and those tests pass. Step 3 handles no match and no word, and now all of `pytest` passes. You commit after each step. Then you run `python notes.py search MILK` and a no-match search yourself. Finally, `git diff <start-commit>` shows the whole feature. You spot a changed `list` format you never asked for. You ask the agent to put it back, re-run `pytest` and commit.
Terms on this card
feature
A new piece of behaviour a program gains, such as a search command, which the user can see and use.
spec
Short for specification: a precise description of how something should behave, ideally with example inputs and expected outputs.
commit
A saved snapshot of your project's files in git, which you can look at or return to later.
diff
A listing of exactly which lines were removed (-) and added (+) between two versions of files.
git diff <start-commit>
Shows every change between that commit and your current files. Used here to see a whole feature at once.
Learn this step by step on Bytewise
Lesson goal: Add a feature end to end. Specify behaviour with examples and edge cases, get a plan, implement in committed steps with tests, try it yourself, and review the final diff as a whole. · the whole lesson