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 as parallel lines of work card 4 of 6

Walking through both endings

builds on: Git commits as snapshots you can return to
You run `git switch -c try-sqlite`, let the agent make the change, and commit it there. Then `git switch main`: your folder shows the old text-file version again, and the app still works. Switch back to compare whenever you like. If it's good, merge it into `main` (from `main`). If it's a mess, delete the branch with `-D`. Capital D forces the delete, because git refuses `-d` on work that was never merged.
Terms on this card
branch
A named pointer to one commit. It moves forward each time you commit while on it, so it marks the tip of a line of work.
`main`
The usual name of the first, default branch in a repository. Some older projects call it `master`.
commit
A saved snapshot of the whole project with a message, which you can return to later.
merge
Bringing the commits from another branch into the branch you are currently on, using `git merge <name>`.
SQLite
A small database stored in a single file, often used by apps instead of plain text files.
Learn this step by step on Bytewise
Lesson goal: Explain a branch as a movable pointer to a line of commits. Create one for an experiment, switch between branches, and merge or delete it depending on how the experiment went. · the whole lesson