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.
Commit before every task: checkpoints
card 4 of 6
Same mess, with and without a checkpoint
builds on: Your first small task, end to end
**Without:** your hand tweak and the agent's edits sit in one diff. To undo the agent, you pick lines apart by hand and may delete your own work.
**With:** you commit your tweak first (`Tweak header text`), then ask for CSV output. It breaks. You return to that commit. Your tweak survives, the broken attempt is gone, and you retry with a clearer request.
Terms on this card
- commit
- A saved snapshot of your project's files in git, with a message. You can return to it later.
- checkpoint
- A git commit (or a tool's built-in snapshot) made before a task, so you can return to that exact state.
- diff
- A listing of the differences between two versions of files, line by line.
- CSV
- Comma-separated values: a plain-text table format with one row per line and commas between the columns.
- output
- The text a command or program prints when it runs, including results and error messages.
Lesson goal: Make a commit (or use the tool's snapshot feature) before each task and after each accepted step. Then every attempt starts from a known-good state and costs nothing to throw away. ·
the whole lesson