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.
Reviewing the diff the agent made
card 2 of 6
The summary is a story, the diff is the record
builds on: git status and reading a diff, Reading the agent's summary skeptically
`git status` and the diff are the record. Together they show every file and line the agent touched, whether or not the summary mentions it. Agents often do more than you asked. They tidy a nearby file, delete code they guess is unused, or change a value while "fixing" something else. Reading the diff answers three questions:
- Are these the right files?
- Was anything lost?
- Does the new logic do what you asked?
Terms on this card
- diff
- A listing of exactly which lines were removed (-) and added (+) between two versions of files.
- git status
- Command that lists which files have changed since your last commit, which files are new (untracked) and which changes are staged.
- summary
- The message the agent writes at the end saying what it did. It is the agent's own claim, not a check.
- 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.
- git
- A tool that records versions of a project's files over time. Its data lives in the hidden `.git` folder.
Lesson goal: Read the full diff of a change with `git diff` or an editor view. Check that every changed file belongs to the task, that nothing unrelated was deleted, and that the logic matches what was asked. ·
the whole lesson