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 1 of 6
Same agent, two very different tasks
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
Two tasks today. One: fix a wrong date format in `scripts/report.py`. Two: read the 20 newest issues on your project's public issue tracker and draft fixes. Your laptop also holds a `.env` with a live database password, your cloud logins and your SSH keys.
Should both tasks run with the same folder, permissions and access? If not, what decides the difference?
Terms on this card
- `.env`
- A file in a project that holds environment variables, often including secrets like passwords and API keys. It is usually kept out of git.
- SSH keys
- Files on your computer that log you into servers and code hosts without a password. Anyone who has them can act as you.
- issue tracker
- A list of bug reports and requests for a project (e.g. GitHub Issues). On public projects, anyone can write in it.
- agent
- An AI tool that doesn't just chat. It reads your project's files, edits them and runs commands to carry out a task you give it.
- .env
- A plain text file of `NAME=value` lines, usually in the project root, that a library or tool loads into environment variables.
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