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 2 of 6
Size the fence to the worst plausible outcome
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
A session can go wrong in two ways. The agent makes a mistake, such as running a wrong command or editing the wrong files. Or untrusted text steers it (injection). What gets damaged depends on what is in reach and what the agent may do without asking.
You control five dials: starting folder, credentials in reach, network access, permission level, and sandbox or not. Set them for each task, sized to its worst case, not the likely case.
Terms on this card
- 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.
- permission level
- How much the agent may do without asking you first. For example: ask before everything, edit freely but ask for commands, or allow everything.
- credentials
- Secrets that prove who you are to a service: passwords, API keys, tokens, SSH keys, cloud logins.
- network access
- Whether the agent can reach the internet, for example to fetch web pages, download packages or send data to a URL.
- injection
- Short for prompt injection: instructions hidden in text the agent reads (a web page, issue, file) that redirect what it does.
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