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 commits as snapshots you can return to
card 1 of 6
The agent changed six files. Now what?
builds on: Terminal basics: where you are and running things
You're about to let a coding agent work in your project folder for the first time. It may edit several files, create new ones and even delete some. Your editor's undo only knows about changes typed in that editor, one file at a time. If the result is broken, how do you get the *whole folder* back to exactly how it was? You need a saved copy of everything, made beforehand.
Terms on this card
- coding agent
- An AI tool that can read, edit and create files and run commands in your project, not just chat.
- editor
- The program you write code in, such as VS Code.
- project folder
- The folder that holds all the files of your program. The agent works inside it.
- 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: Explain a repository, the staging area and a commit as a saved snapshot of the whole project with a message. Explain why a recent commit works as an undo button for anything an agent does afterwards. ·
the whole lesson