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 6 of 6
One branch per attempt, main stays clean
builds on: Branches as parallel lines of work, Commit before every task: checkpoints
Before a risky or uncertain task, start from a clean `main` and give the attempt its own branch. Use one branch per approach, and commit before every switch. Compare each branch against `main`, merge the winner from `main`, and delete the rest with `git branch -D`.
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.
- commit
- A saved snapshot of your project's tracked files, with a message. You can return to it later.
- merge
- Bringing the commits of another branch into the branch you have checked out.
- `git branch -d`
- Deletes a branch, but only if its commits are already merged. Otherwise git refuses, as a safety check.
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