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.
Setting safety boundaries for a session
card 3 of 6
The boundary checklist
builds on: Keeping secrets out of the agent's reach, Catching destructive commands, Unknown and invented packages, Untrusted text steering the agent, Sandboxes and isolated environments
First ask: what is the worst plausible mistake? What is the worst thing injected text could make it do? Then set:
1. **Folder**: the project root, fully committed. Never your home folder.
2. **Credentials**: none unless the task needs them. If it does, a test key.
3. **Network**: untrusted text + private data + network is dangerous. Remove one.
4. **Permissions**: auto-approve only what git can undo, such as edits to committed files in the project.
5. **Sandbox**: required before you grant broad autonomy.
Terms on this card
- project root
- The top-level folder of your project, the one containing the hidden `.git` folder. Paths are written relative to it.
- sandbox
- An isolated environment, such as a container, a virtual machine (VM) or a cloud workspace, where the agent can only damage what is inside it.
- credentials
- Secrets that prove who you are to a service: passwords, API keys, tokens, SSH keys, cloud logins.
- untrusted text
- Any text written by someone other than you that the agent reads: web pages, issues, READMEs, dependencies, data files.
- test key
- A credential for a test or sandbox account that can't touch real money, data or users.
Lesson goal: Choose the boundaries for a given task: the folder, permission level, network access, credentials in reach, and whether it runs in a sandbox. Base the choice on what the worst plausible mistake or injection could damage. ·
the whole lesson