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 3 of 6
Answers, modes, and a cautious default
builds on: The agent loop: act, observe, repeat, What you stay responsible for
**Answers:** `yes` allows this one action. `no` blocks it. `always` allows matching actions from now on, with no further prompt. Depending on the tool, that lasts for this session or is saved for the project.
**Modes** (names vary by tool) form a ladder:
1. Ask before every edit and command.
2. Auto-accept edits, but still ask for commands.
3. Auto-approve everything.
Each step up trades oversight for speed.
**Cautious default:** ask for everything. Use `always` only for narrow, read-only commands, like `ls`, which just lists the files in a folder. Auto-approving everything is not for your real project.
Terms on this card
- auto-approve
- A mode where the agent carries out edits and/or commands without pausing for your approval.
- command
- An instruction run in a terminal, like `ls` or `python report.py`, that makes the computer do something.
- read-only
- Only looks at things, such as listing or showing files, and never changes, deletes or sends anything.
- `ls`
- A command that lists the files in a folder. It changes nothing.
- oversight
- Your ability to see and stop each action before it happens.
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