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.
Sandboxes and isolated environments
card 1 of 6
Tired of clicking 'approve'
builds on: Approvals and permission modes, Terminal, IDE and cloud agents
In the last hour your agent has asked for approval about 30 times: `ls`, `npm install` (which downloads code the project uses), running a script. You want to switch on auto-approve on your laptop. Then it could work through a bigger task while you get coffee.
Before you do: if one of its commands is wrong, what exactly could it damage?
Terms on this card
- auto-approve
- A permission mode where the agent runs commands and edits files without asking you first each time.
- npm install
- A command that downloads and installs the software packages a JavaScript project needs.
- script
- A small program, usually one file, that you run to do a task, like `report.py`.
- 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.
- `ls`
- Lists the files and folders inside the current folder.
Lesson goal: Explain how running the agent in a container, VM, dev container or cloud sandbox limits what a mistake can damage. Explain why this is the condition under which more autonomy becomes reasonable. ·
the whole lesson