Skip to content
Roberto Mladina
Local time in Ingolstadt:
DE – Deutsch EN – English

Logbook · Event 1 December 2026 · Fundamentals

AI agent: what sets it apart from a chat

9 min read

  1. 01Term

    An AI agent is a program that uses an AI to carry out steps itself until a task is done.

  2. 02Meaning

    A chat answers a question. An agent does something, reads the result and then picks the next step.

  3. 03In my work

    When I wrote “The site is slow to respond”, my agent measured for itself until it knew where the site hangs.

  4. 04What stays

    My agent may do a lot on its own. In three fixed cases it asks me, and only what it can prove counts as done.

Evidence

# Session mladina-de, 29 Nov 2026, task: code or hosting provider?
Server: 108 ms per page (median, 12 requests)
Browser: 16 KB script, no long frame while scrolling
Page switch: 1852 ms, of which 1774 ms waiting for the server
19:31 connection (TLS): up to 19588 ms, one abort
from the server itself: 112 to 130 ms

This post belongs to my series on basics from the university certificate “KI-Kompetenzen für die Praxis” (AI skills for practice) at Hochschule München (Munich University of Applied Sciences). It is about AI agents. Most people know AI from a chat such as ChatGPT. You ask a question and get an answer. An AI agent, by contrast, does tasks itself, step by step. I have been working with agents like this since April 2026, among other things on my three websites. Using cases from that work, I show what makes an agent, how it works together with ordinary programs, and what it may do on its own for me.

Terms on this page
AI agent
A program that uses an AI to carry out tasks on its own.
Chat
A conversation with an AI in a window, for example with ChatGPT. You write a question, the AI writes an answer.
Language model
An AI that writes text. It has learned from a very large number of texts which word is likely to come next.
Tool
Something an agent can do itself, for example read a file or open a web page. Which tools it has is set by the harness.
Harness
The program that connects the language model and the tools. For me, that is Claude Code.
Server
A computer that holds a website ready and sends it to every visitor.
Maintenance
Everything that keeps a website running: installing updates, making backups and checking that the site is reachable.
Update
A new version of a piece of software. Many updates close security holes. That is why they should be installed soon.
Test copy
A copy of the website that nobody visits. Changes run there first. What goes wrong there does not hit the real site.
Evidence
Proof that anyone can check, for example a measurement or the changed page.

My agent measures for itself

On 29 November 2026 I wrote to my AI agent for this website: “The site is slow to respond.” It was to check whether the cause was my code, meaning the programs that make up the website. The other possibility was my hosting provider, the company whose server the website sits on. In a chat I would have got a list of possible reasons. I would have had to find out myself which one is right. A chat cannot reach this server.

My agent works on a computer at my home. It has access to the part of the server where my website sits. With that, it looked for itself. First it read what a small monitoring program of mine had recorded. That program loads my website every five minutes and had already counted 20 outages since 21 November. Then the agent measured from my computer how long the server needs for one page. It was a good tenth of a second, and that is fast. Next it had the page loaded in a browser, as a visitor would see it. The browser had little to compute before the page was fully shown.

Then it had the same browser click from one page to the next. This switch took almost two seconds instead of the usual just under three tenths of a second. Almost all of that time the browser was waiting for the server. So the agent immediately measured again, more closely. Before a server sends a page, browser and server set up a connection and agree on encryption. That normally takes less than a tenth of a second. At 19:31 the agent opened the page several times in quick succession. In one of these attempts, setting up the connection hung for almost 20 seconds, and then it gave up. For the page itself, the server needed as little time as always in the other attempts.

Right after that, the agent measured directly on the server, so without the route over the internet. There the page came back in a good tenth of a second every time. Last, it checked whether my own monitoring programs could have overloaded the server at the times of the outages. At those times only small checks were running.

Task: code or hosting provider?Server0.11 sBrowserlittlePage switch1.9 sConnection19.6 sfrom the server0.11 sCode fast, connection hangs
The steps of my agent on 29 November 2026. Each result showed it where to keep looking. It was fast everywhere (✓), except when switching to the next page and when setting up the connection (✕).

Its answer to me: The code is not the cause. The hangs happen when the connection is set up, so before the server can send the page. What exactly is wrong at the hosting provider is still open. How often it hangs was shown afterwards by a measurement over a whole night. The post Mean or median tells that story.

The agent decided for itself which measurements were needed. After each result it thought again about what to measure next. It went on like this until it could answer my question. This loop is what sets an agent apart from a chat.

A language model, tools and a program around them

An agent has three parts. The first is a language model, for me Claude, an AI from the company Anthropic. The language model itself only delivers text. It cannot open a web page or measure a time.

That is what the second part is for, the tools. With them the agent can, for example, read files, open web pages or start programs.

The third part connects the two. Experts call it a harness. For me it is Claude Code. So Claude Code is the program, and Claude is the AI inside it. The model writes into its answer which tool it wants to use. The harness uses the tool and hands the result back to the model. With this result, the model writes the next step.

ModelMeasure server.Harnessuses the toolTool0.11 sModelFast. Next.
One pass through the loop, simplified, using the example of 29 November 2026. The dashed arc on the right leads to the next pass.

Every round of this loop costs money. At each step the model reads again everything it already had in front of it for this task. In one measurement, about 80 per cent of my costs came from this reading. The note Reading is the expensive part tells that story.

Agents write programs that run without AI

Each of my three websites has its own agent. A fourth looks after the programs that all three sites share. One of them is the maintenance. It runs every Tuesday evening as an ordinary program, with no AI at all. My agents wrote it.

The program installs updates on a test copy first. Then it compares the most important pages with how they looked before. Only then does it install the updates on the real website and compare again there. If anything looks different afterwards, it undoes the update. So the same thing runs every week, and I can test every step beforehand.

But a program like this only does what someone thought of beforehand. On 24 November 2026, after an update on one of my websites, three pages did not answer for 30 seconds. To the program they looked different from before, and it rolled back the update. It did not know that a page can fail to answer just briefly. The site went on running without the update, although the update was probably not to blame at all.

AgentwritesMaintenanceruns by itselfMaintenancerecordsAgentimproves
How agents and programs work together for me. An agent writes the program, the program runs on its own every week and records what it did. From that, an agent improves the program.

The agent of the affected website then looked at the maintenance more closely. It read its records, the logs. A second website of mine had got the same update the same evening without any error. And a monitoring program like the one at the start of this post had already got no answer from the site at 21:52. So the server had dropped out briefly. The agent immediately suggested how to improve the program. At my request, it passed the suggestion on to the agent for the shared programs. That agent built the improvement in the same evening. Since then, the maintenance has been checking a page without an answer once more after a pause. The post AI or CMS? has the whole process.

When my agent has to ask me

At the start, my agents asked me too often. Today they ask only in three cases. The first: There are several good solutions, and the choice will last a long time. One example was the question of which hosting provider this website should be with. The second: Something goes outside, so it is published or sent to others. The third: Something cannot be undone, for example when data is deleted, or it involves money. Everything else they do themselves and report to me with evidence.

These cases are written in the rules that an agent reads at every start. In addition, the harness stops certain commands until I agree.

This post came about in the same way. The examples and measurements come from my work. An agent drafted the text and put it on the test copy of my website. It has only been published since I read it and signed it off with “passt” (German for “fine”, my sign-off word). If the agent changes anything afterwards, I have to sign off the text again.

For sensitive changes, for example to access, a second language model also checks. It is given the task of finding mistakes in the work of the first. More about these rules is on the project page AI way of working.

What I take from this

I use an agent when I do not know the way to the goal beforehand, as with the search for the hangs. What runs the same way every week, I have it write once as a program. If you want to work with an agent yourself, my rules may help you:

  • Decide beforehand when the agent has to ask you. Then you do not have to sign off every single step.
  • For every “done”, have it show you evidence, for example a measurement or the changed page.
  • Do not write passwords to the agent in a message. Your messages go to the provider of the model. How I store passwords instead is in the post Empty passwords three times.

An agent, too, sometimes writes sentences that sound sure and are not true. That is why evidence counts for me. More on this is in the post on hallucination.