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 5 of 6

A session with approvals

builds on: The agent loop: act, observe, repeat, What you stay responsible for
The word after each approval prompt is what you chose. You approve the edit and the trial run. Then the agent asks to run `rm -rf output/`, which permanently deletes the `output/` folder and everything in it. You refuse and say why, so the agent can adapt its next step.
▸ You: add a --verbose flag to report.py
⚙ Read: report.py
⚙ Edit: report.py
[Approve? yes / no / always]  yes
⚙ Run: python report.py --verbose
[Approve? yes / no / always]  yes
⚙ Run: rm -rf output/
[Approve? yes / no / always]  no
▸ You: don't delete output/, it holds
  last month's reports
◂ Agent: Understood. I'll leave output/
  untouched; the --verbose flag works
  without clearing it.
Terms on this card
approval prompt
The pause where the agent shows the action it wants to take and waits for your yes, no or always.
output
The text a command or program prints when it runs, including results and error messages.
session
One working conversation with the agent, from the task you type until you accept or redirect the result.
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.
rm -rf
A terminal command that deletes files and folders, including everything inside them, without asking and without a recycle bin.
Learn this step by step on Bytewise
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