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.
A safe first project: folder, git, clean state card 4 of 6

The setup in one terminal session

builds on: Choosing a tool for how you work, Git commits as snapshots you can return to, What never to let an agent touch
Each line starting with `$` is typed by you. Most commands' output is left out here. `printf` writes the two patterns into `.gitignore`, one per line. `echo` writes a one-line `README.md` describing the project. `git add .` stages everything, including `.gitignore` itself. If `git commit` stops and asks who you are, run the two `git config` lines it suggests, then commit again. `git log --oneline` confirms the first commit exists. `pwd` confirms where you are before you launch. Text after `#` is a comment, which the terminal ignores.
$ mkdir photo-renamer
$ cd photo-renamer
$ git init
$ printf '.env\n*.key\n' > .gitignore
$ echo "# Photo renamer" > README.md
$ git add .
$ git commit -m "Project start"
$ git log --oneline
3f2a1c9 Project start
$ pwd
/home/sam/code/photo-renamer
$ claude   # or your tool's command
Terms on this card
git
A tool that records snapshots of a project's files over time so you can see changes and return to earlier versions.
commit
A saved snapshot of the whole project, with a message, that you can return to later.
first commit
The very first snapshot in a repository. It is the known starting point every later change is compared against.
`git add .`
Stages all files in the current folder, marking them to be included in the next commit.
`git config`
Command that sets git options, such as the name and email git records with each commit.
Learn this step by step on Bytewise
Lesson goal: Set up a dedicated project folder under git with a first commit and a `.gitignore` for secrets. Start your chosen agent from that folder with cautious approvals, so every change is visible and reversible. · the whole lesson