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.
Recognising when the agent goes in circles card 2 of 6

Why an agent loops

builds on: Giving useful feedback on a wrong result, Interrupting and redirecting mid-task
On each turn of its loop, the agent guesses a cause from what it has seen, edits, and runs. If the real cause sits somewhere it never looked, such as a data file, another module or a setting, every guess misses. Its earlier attempts stay in the conversation and pull it back toward the same ideas. More tries add no new information. An apology is just text, not evidence.
Terms on this card
module
A single code file (or group of files) that holds one part of a program's logic and can be used by other parts.
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.
data file
A file holding information rather than program code, e.g. a spreadsheet export or list of records.
Learn this step by step on Bytewise
Lesson goal: Spot the signs of a stuck agent: the same fix tried repeatedly, growing patches over patches, flipping between two approaches, or an apology without new evidence. Decide to stop, revert and reframe. · the whole lesson