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 2 of 6
The folder is the agent's workspace
builds on: Choosing a tool for how you work, Git commits as snapshots you can return to, What never to let an agent touch
An agent treats the folder you start it from as its workspace. By default it reads, creates and runs things there. Tools differ in how strictly they stay inside it, and a command it runs can reach further, so think of it as a default area, not a wall. Your home directory holds everything you own, so it's the wrong place. A **dedicated folder** keeps unrelated files out of that default area. A **first commit** records a known starting snapshot you can compare later changes with and return to. A **clean start**, with your own work committed, keeps your uncommitted edits from mixing with the agent's.
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.
- 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.
- uncommitted
- Changes to files that are saved on disk but not yet recorded in any commit, so git has no snapshot of them.
- workspace
- The folder an agent treats as its project, where it reads, creates and runs things by default.
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