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 3 of 6
Checklist before the first prompt
builds on: Choosing a tool for how you work, Git commits as snapshots you can return to, What never to let an agent touch
1. Make a new, empty folder only for this project, not your home directory, Desktop or Downloads.
2. Run `git init` inside it.
3. Add a `.gitignore` listing secret files, such as `.env` and `*.key`.
4. Make a first commit.
5. Check with `pwd` that you're inside the folder, then start the agent there. In an editor, open exactly that folder.
6. Keep approvals on ask-every-time.
Terms on this card
- home directory
- Your personal top folder on the computer (e.g. `/home/sam` or `C:\Users\Sam`), holding your documents, settings and often saved credentials.
- 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.
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