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 2 of 6
A save point turns attempts into free tries
builds on: Your first small task, end to end
The agent edits whatever is in your folder right now. Git sees two things: the last commit, and everything changed since then. Commit right before a task, and 'everything changed since' is exactly the agent's attempt. `git status` and `git diff` show only that attempt, and going back to the commit removes only that attempt. A bad try then costs nothing. You can let the agent try, look at the result, and throw it away.
Terms on this card
- commit
- A saved snapshot of your project's files in git, with a message. You can return to it later.
- git status
- Terminal command that lists which files changed, and which files are new, since the last commit.
- git diff
- Terminal command that shows the exact lines changed in tracked files since the last commit. Removed lines start with '-', added lines with '+'.
- diff
- A listing of the differences between two versions of files, line by line.
- 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: 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