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.
Verifying before you accept a change
card 3 of 6
The acceptance routine
builds on: Running and trying the result yourself, Spotting bad shortcuts in a change, What you stay responsible for
Before `git commit`:
1. **Summary vs diff**: every claim has a change, and every changed file is explained.
2. **Run it**: realistic input, one edge case, the tests.
3. **Shortcuts**: hardcoded values, empty `except`, disabled checks, one-input special cases, `TODO`s.
4. **Explain**: you can say what each change does and why.
Any miss: don't commit until it's resolved.
**Depth**: wording or typo → a glance at the diff covers it. Normal logic → all four. Data deletion, money, logins, many files → every line, extra edge cases, a second reviewer.
Terms on this card
- diff
- A listing of exactly which lines changed in which files. Removed lines are marked '-' and added lines '+'.
- commit
- A saved snapshot of your project in git. Committing a change means you accept it into the project's history.
- edge case
- An unusual but possible input, such as an empty file, a blank field or a boundary value, where code often breaks.
- except
- Python's error handler. `except Exception` catches almost any error. If it then does nothing (`pass`), it silently swallows errors instead of reporting them.
- TODO
- A note in code marking unfinished work. A stub with a TODO looks done but doesn't do the job yet.
Lesson goal: Apply a fixed acceptance routine before committing: check the summary against the diff, run it yourself, scan for shortcuts, and make sure you could explain it. Scale how deep you look with the risk of the change. ·
the whole lesson