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 4 of 6
What did your 'always' cover?
builds on: The agent loop: act, observe, repeat, What you stay responsible for
Back to the opener. You clicked `always` on `python report.py --verbose`. Many tools save a rule that matches a command *prefix*, which is the start of the command. The rule might cover only this exact command, or every command that begins with `python`. If it is the second, `python scripts/clean.py` runs without asking, and a Python script can delete files or send data anywhere. Read what the tool says the rule covers. If it is broad, click `yes` instead. Give `always` only to commands that just look at things.
Terms on this card
- command
- An instruction run in a terminal, like `ls` or `python report.py`, that makes the computer do something.
- `python`
- The command that runs a Python program. For example, `python report.py` runs the code in `report.py`.
- 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.
- prefix
- The beginning of a command. A rule for the prefix `python` matches every command that starts with `python`.
- Python
- A popular programming language. `python <file>` runs a Python file.
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