What is Claude Code? The agent that runs the loop for you

By Christophe Paka · Facts checked on 23 October 2026

You paste code into a chat. It suggests a fix and waits. You paste the fix back, run it, and hit an error. You copy the error into the chat and start again. Ten rounds later, you are tired, and you did most of the work.

So what is Claude Code, and how is it different? It is Anthropic's AI helper that works inside your project. It reads your files, edits them, runs commands and checks the result. It comes with every paid Claude subscription, not with the free one. The figure below puts the two ways of working side by side, so you can see who runs the loop.

Two columns. Left, a chatbot: you copy code in, it suggests a change and waits, you paste and test by hand, you copy errors back; you are the loop. Right, an agent: you set the goal once, Claude Code loops in your repo, you review the diff.
Figure 1.1: Who runs the loop?. With a chatbot you carry every step; with an agent you set the goal and review the result.
Use this diagram on your site

Free to share in your blog post, docs, course or slides, as long as the credit link stays. Paste the code below where the figure should go.

How to read this figure

  1. Read the left column top to bottom. This is the chatbot, an AI you talk to that answers and then waits. You copy code into the chat. It suggests a change, then waits. You paste, run and test by hand. On an error, you copy it back and repeat. Every arrow passes through you.

  2. Read the label under the left column. It says: you are the loop. A chatbot carries none of the steps. You do the moving, the running and the checking.

  3. Start the right column at the top. This is the agent, an AI that takes actions step by step toward a goal. You describe the goal once, in plain words. A prompt like "add a total at the bottom of the receipts page" is enough. You do not name files or paste code.

  4. Follow the curved arrow on the purple box. The box in the middle reads: Claude Code, in your repo. A repo is a project folder that keeps a history of every change. That history is your undo: if a change goes wrong, you go back to a saved point. No repo yet? The book sets one up in its first hour. Inside the box, Claude Code reads, edits, runs commands and iterates. The curved arrow means it repeats this on its own.

  5. End at the review box. The last box reads: you review the diff and approve. A diff shows which lines changed. The label underneath says you are the reviewer. You appear twice in this column: once to set the goal, once to review. One box does not mean one glance: the three checks in the FAQ below are the review.

Key takeaways

  • Give Claude Code a goal in plain words, not a file name or pasted code.
  • Before you approve, ask what it changed and why, and check each file it names.
  • Ask it to run the tests and say how many ran, so done means checked.

Worked example: one receipts file, two tools

The book uses one receipts file to show the difference between the Claude app and Claude Code.

  1. Upload the receipts file to the Claude app and ask what you spent on travel in March. It reads the file and answers. Nothing on your computer changes.
  2. Open Claude Code in the folder of a small receipts page. Ask it to add a travel total to the page.
  3. Claude Code reads the page's files, edits them and runs the tests. If a test fails, it reads the error and tries again.
  4. It shows you the diff. You read it, look at the page yourself, and approve.

Result: The Claude app answers. Claude Code changes your project, and you check the change.

Questions readers ask

Can someone with zero coding experience use Claude Code to build stuff?

Yes, if you check the result. Three checks need no code. First, ask: what did you change, and why? A good answer names each file and the reason; check that each file is one you expected to change. Second, ask it to run the tests and say how many ran. Third, open the page and try it yourself.

Is it wrong to use Claude Code when you cannot code by hand?

No. Checking is the craft, and it does not need you to write code. Keep each change small enough to review in one sitting. Write down what done looks like before Claude starts, then check against it. The book's Claude Code guide walks a first change step by step.

Can Claude Code change my files without asking?

It works only in the folder where you start it, asks before risky actions and shows you each diff. You decide how much it may do without asking. For a first try, save a copy of your project first, then pick Manual mode, where Claude shows each change and waits for your yes.

Why use Claude Code when Cursor already gives you Claude?

Cursor, an AI code editor, is built around edits as you type. Claude Code takes a whole task, such as adding a monthly total and its tests, and runs it. Claude Code's VS Code extension also installs into Cursor, so you can use both.

Sources: Claude Code overview (Anthropic docs); How Claude Code works (Anthropic docs); Best practices (Anthropic docs).

This figure is from Claude Code Made Crystal Clear, chapter 1.

The chapter builds the idea step by step, with recipes you can follow, a Try it to check yourself, and every source.

Get the book

All diagrams