What an agent really is

A chat answers once, an agent works until it's done. The difference is the loop around the model, and it also shows where the edge of people who use agents really sits.

Isometric illustration of a closed cream module, linked to four small stations by a single orange cable that leaves it, passes through all of them and comes back, closing a loop.
The model is the module in the middle; the stations are the tools. What makes it an agent is the orange loop, which takes the request out and brings the result back.
Aguinelo Koczkodai · · 5 min read

Also in Português and Español

Picture this. A test starts failing and you paste the error into a chat. You get a well-written answer, with a guess about the cause and a snippet to swap in. It might be right, it might not: it has never seen your project, only the piece you pasted.

Now the same request to an agent. It opens the test file, runs the test, reads the error, opens the code the test calls, changes a line, runs it again and only then answers. The model behind both can be exactly the same. So what changed?

A chat is one round, an agent is a loop

Back to the room from the previous articles: the locked-in person, the desk full of paper, the notes passing under the door. In a chat there's one round. You pass a note, they write one back, and that's it.

In an agent, their note can be a request: "open checkout.py", "run the tests". The assistant outside carries it out, puts the result on the desk, and they write the next note already knowing what happened. That repeats: request, execution, result on the desk, next request. That's the agent loop.

The loop only ends when something tells it to. It can be the model delivering a final answer, a turn limit, a cost limit, or you stepping in.

An agent is a model plus a harness

The person in the room still does only one thing: write the next note. Whoever runs the test, reads the file, keeps the result and decides whether another round is worth it is the assistant outside, the harness. The LangChain docs put it this way: an agent is the model plus the harness, and the harness's job is to give the model the right context at the right time.

When the path is written in code ("first look up the customer, then compute shipping, then send the email"), the name is workflow: the model fills in steps and the program decides the order. In an agent, the model picks the next step. Anthropic calls both agentic systems, and plenty of tasks work better as a workflow, precisely because the order never changes.

Who decides it's done: the stopping condition

In article 1 the agent said it had fixed the bug without fixing it. It asked for a file with the wrong name, the tool returned an error, and it answered as if everything had worked. With the loop in hand, you can see why nobody noticed: the most common way to end the loop is "the model stopped asking for tools". It stopped, so the loop declared success.

Avi Chawla opens his agents course with this same case, and the scary part is that nothing broke: no exception, no alarm. This kind of failure passes every demo and only shows up in production.

The way out is to take that decision away from the model. What says the task is done is the stopping condition, and it belongs to the harness: the test that passes, the acceptance criterion that was checked, the tool error that blocks the final answer until someone deals with it.

Where the edge is: model, harness, or what goes inside

If an agent is a model plus a harness, the obvious conclusion is that the edge of people who work with agents, the so-called moat, lives in those two pieces. I don't think it lives in either, because both can be copied.

The model is rented. Claude, Codex, GLM, MiniMax and DeepSeek get more alike with every release, and switching from one to another is usually a line of configuration. The model you use today, your competitor can subscribe to as well.

The harness is converging too. Rudrendu Paul, on freeCodeCamp, shows that every harness on the market runs the same loop and differs in the care taken around tool execution. Much of it is open source, and what isn't can be learned by reading the docs: LangChain's Deep Agents was born from four mechanisms taken from Claude Code.

What can't be copied is what you put inside. The project rules written in a file the harness loads, the skills that teach how things are done here, the tests and evals that work as stopping conditions, the team knowledge the agent can look up. That usually takes months to build, only works for whoever built it, and still holds when you switch models or tools.

What changes from a chat to an agent

Back to the failing test: between the chat and the agent, the model can be the same. What changed is the loop around it, which lets the model act, see the result and try again, and who decides it's done. That's why you can swap an agent's model without losing the work, and you can't swap what you taught it without starting over.

One question is left. That outside part that runs the loop, keeps the desk and checks the end has more pieces than it seems. What are they, and why does every tool assemble them differently? That's the next article.

To go deeper

Part 1 · What you have in your hands

Where you are in the series

3 of 29 articles out

Next · article 4 of 29 · coming soonWhat a harness is
The whole series29 articles, from level 0 to 5See the series →

Reply