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.
git status and reading a diff
card 1 of 6
Something changed. What exactly?
builds on: Git commits as snapshots you can return to
You let an agent work in your project for a few minutes. It ends with:
◂ Agent: Done. Fixed the crash in the cart total.
You made a commit before it started, so you can go back. But before you decide anything, you need two facts: which files did it actually touch, and what exactly is different inside them? Its message only describes the work. It does not show you the files.
Terms on this card
- commit
- A saved snapshot of the whole project with a message, which you can return to later.
- 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.
Lesson goal: Use `git status` to see which files changed and `git diff` to see exactly how. Read a unified diff's '-', '+' and '@@' lines without help. ·
the whole lesson