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 5 of 6
First contact, with the brakes on
builds on: Choosing a tool for how you work, Git commits as snapshots you can return to, What never to let an agent touch
▸ You: Look around this folder and tell me what's here. Don't change anything.
⚙ Run: `ls -a`
[Approve? yes / no / always]
Pick **yes**, not **always**. "Always" stops the agent asking about that kind of action for the rest of the session, and some tools remember it for the project. Some tools run read-only commands like this without asking, but edits and other commands still stop for you. Note that `.gitignore` only keeps `.env` out of commits. It does **not** stop the agent reading the file, so keep real secrets out of this folder.
Terms on this card
- `.gitignore`
- A text file listing file names or patterns that git should never record in commits, such as secret files.
- `.env`
- A common file name for storing secrets like passwords and API keys as environment variables for a project.
- secrets
- Passwords, API keys, tokens and similar values that grant access to accounts or systems and must not be shared.
- `ls -a`
- Terminal command that lists a folder's files, including hidden ones whose names start with a dot.
- read-only
- An action that only looks at things, such as listing or reading files, and changes nothing.
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