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 6 of 6
Remember
builds on: Choosing a tool for how you work, Git commits as snapshots you can return to, What never to let an agent touch
Before the first prompt, set up a dedicated folder, run `git init`, add a `.gitignore` for secrets, and make a first commit. Then start the agent from inside that folder with approvals on ask-every-time. Every action then passes in front of you, and any change to the project's files can be undone by returning to the first commit.
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.
- `git init`
- Command that turns the current folder into a git repository, creating a hidden `.git` folder. It doesn't save any snapshot yet.
- 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.
- `.gitignore`
- A text file listing file names or patterns that git should never record in commits, such as secret files.
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