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

A human gate between decision and effect

builds on: The agent loop: act, observe, repeat, What you stay responsible for
In the agent loop, every action the agent takes is a tool call. Reading a file changes nothing. Editing a file, or running a command, can change things. So most agents pause before those actions, and you sit between what the model decided and what actually happens. `no` is not a crash. The agent sees the refusal as a result and picks another step. `always` turns a one-off decision into a standing rule.
Terms on this card
agent loop
The cycle a coding agent runs: decide a step, call a tool, read the result, repeat until it judges the task done.
tool call
One action the agent takes, such as reading a file, editing it or running a command. It is not just text.
command
An instruction run in a terminal, like `ls` or `python report.py`, that makes the computer do something.
loop
Code that repeats a step for each item in a list, e.g. adding up every row of a table.
model
The AI that reads text and writes text. In an agent, it decides what to do next.
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