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.
The agent loop: act, observe, repeat card 2 of 6

A model that can use tools, in a loop

The model itself only writes text. The agent program around it gives it **tools**: read a file, search, run a command, edit a file. The model asks for a tool, for example to read `src/cart.py`. This course shows such a request as `⚙ Read: src/cart.py`. The program carries out the request and hands back the result. The model reads that result and picks its next move. It does not know your code in advance. It finds things out one step at a time.
Terms on this card
model
The AI that reads text and writes text. In an agent, it decides what to do next.
tool
An action the agent program lets the model use, such as reading a file, searching, running a command or editing a file.
command
A line of text that tells the computer to run a program, typed in a terminal, for example `python src/cart.py`.
loop
Code that repeats a step for each item in a list, e.g. adding up every row of a table.
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.
Learn this step by step on Bytewise
Lesson goal: Describe the cycle the model runs: decide a next step, call a tool (read, search, run, edit), read the result, and repeat until it judges the task done. Predict that each step is driven by what it has observed so far. · the whole lesson