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.
Approvals and permission modes
card 1 of 6
The agent stops and asks you
builds on: The agent loop: act, observe, repeat, What you stay responsible for
You ask the agent to add a `--verbose` option to `report.py`. Before anything changes, it pauses:
⚙ Edit: report.py
[Approve? yes / no / always]
A moment later it asks again:
⚙ Run: python report.py --verbose
[Approve? yes / no / always]
Tired of interruptions, you click `always`. Ten minutes later the agent runs `python scripts/clean.py`, a script that deletes your `output/` folder, and nobody asks you.
Did your `always` cover that? Find out in 2 minutes.
Terms on this card
- script
- A file of code you run as a program, such as `scripts/clean.py`. It can do anything its code says, including deleting files.
- `--verbose`
- A common option (flag) added to a command that makes a program print more detail about what it is doing.
- output
- The text a command or program prints when it runs, including results and error messages.
- 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.
- ⚙ Edit
- Notation used in this course for a tool action where the agent changes a file, as opposed to just reading it.
Lesson goal: Explain the common mechanism of approvals. The agent asks before edits or commands, you can allow specific safe commands permanently, and 'auto-approve' modes trade oversight for speed. Choose a cautious default. ·
the whole lesson