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 4 of 6

Saving a snapshot before handing over

builds on: Terminal basics: where you are and running things
Sam's budget app works right now. Sam moves into the project root and runs two git commands to save that state. git confirms the new commit: - `main` is the name of the project's line of history (ignore it for now). - `3f2a9c1` is the commit's short id. - The counts are files changed and lines added. Then `git log --oneline` lists the saved snapshots, newest first, one per line: short id and message. Sam can now let the agent work, knowing `3f2a9c1` is safe.
$ cd ~/budget-app
$ git add .
$ git commit -m "Report page works"
[main 3f2a9c1] Report page works
 3 files changed, 42 insertions(+)
$ git log --oneline
3f2a9c1 Report page works
a81d07e First version of budget app
Terms on this card
git
A program that records the history of a project folder as a series of saved snapshots you can look at or return to.
commit
A saved, unchangeable snapshot of all tracked files in a repository, with a message, author, time and unique id.
short id
The first few characters of a commit's unique id, e.g. `3f2a9c1`. git shows this short form, and it is enough to name the commit.
`git log --oneline`
Command that lists commits, newest first, one line each: short id and message.
`main`
The default name git gives a repository's line of commits. It appears in commit output and can be ignored for now.
Learn this step by step on Bytewise
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