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.
Branches for risky or alternative attempts
card 2 of 6
The agent works on whatever is checked out
builds on: Branches as parallel lines of work, Commit before every task: checkpoints
The agent edits the files in your folder, and every commit lands on the branch you have checked out. Picking a safe branch is your job, and you do it before you type the task. Create a branch from `main`. The attempt's commits then move only that branch's pointer, and `main` stays on your last known-good commit. For two approaches, make two branches from the same `main` commit. Both start from the same place, so you can compare them fairly.
Terms on this card
- branch
- A named, movable pointer to a line of commits. New commits move the pointer of whichever branch is checked out.
- `main`
- The usual name of a project's primary branch: the line of work you treat as the good, current version.
- checked out
- The branch your project folder currently reflects. Your files match it, and new commits are added to it.
- commit
- A saved snapshot of your project's tracked files, with a message. You can return to it later.
- known-good commit
- A commit you have checked and trust to work. It is a safe point to start from or return to.
Lesson goal: Put a risky change or a second approach on its own branch so main stays clean. Compare the two attempts and merge or delete the branch. ·
the whole lesson