AI agents are programs in which a language model decides the next step on its own and carries it out with tools, such as opening files, searching the web or drafting emails, until a task is done. A chatbot answers, an agent acts. Under the hood it's a loop: a message comes in, the model decides, the agent runs an action, and the result goes back to the model. In McKinsey's State of AI survey from August 2026, about two in ten respondents say their organization has reached the scaling phase with AI agents. Among companies with more than $1 billion in revenue, 40 percent are scaling agents in at least one function, up from 27 percent a year earlier.

What are AI agents?

An AI agent is a language model that can do things instead of only describing them. It opens, writes, searches and sends, and it keeps going until the job is done or it gets stuck.

The story that made this click for a lot of people comes from Peter Steinberger, who built the open source agent OpenClaw. He was in the hospital after shoulder surgery when his agent sent him a message. Nobody had asked it to. The agent had picked this up from the context, and on one of its regular check-ins it decided this was a good moment to ask how he was doing. He told the story on the Lex Fridman Podcast in February 2026.

I've used AI every day since 2022. RAG chatbots, language models, automations. And still, for a long time agents gave me this fuzzy feeling somewhere between fascination and having no clue. So I started digging.

How do AI agents work?

AI agents work in a loop that repeats until the task is done. That's the whole answer, and it surprised me how simple it is.

My mistake was that I was looking for magic. Some secret mechanism that makes an agent fundamentally different from a chatbot. Neural networks suddenly waking up, something like that. Cue Blade Runner. Peter Steinberger calls the real thing the agentic loop, and he says building one is the hello world of AI development: the first small program everyone should write once, just to see that there's no magic in it.

Peter Steinberger, the OpenClaw founder
He spent 13 years on a PDF toolkit, lost his spark, and came back with a lobster.

Here's the loop, step by step:

  1. You send a message, for example through WhatsApp or Telegram.
  2. The language model reads it and decides what to do.
  3. The agent runs an action: opens a file, writes an email, looks something up.
  4. The result flows back into the model.
  5. The model decides: done, or another round?

Inside every agent you find the same parts: a language model that decides, tools it may use, some memory of earlier conversations, and the loop that ties them together. Steinberger's hospital message needed all four.

Message in, action out, result back. Then again, until the task is done. In OpenClaw, everything else is infrastructure that keeps this one loop running: the gateway that receives your messages, the connections to chat apps, and the runtime that starts the agent and keeps it alive.

So what separates an agent from the chatbot you already use? Mostly what it's allowed to touch:

QuestionChatbotAI agent
What it doesanswersacts
Toolsfew or nonefiles, browser, email, code, apps
Who starts ityou, every timeyou, or a timer
When it stopsafter one answerwhen the task is done or it gets stuck
A mistake meansa wrong texta wrong action

When I really understood that difference, I was relieved and irritated at the same time. Relieved, because it's understandable. Irritated, because if it's that simple, why does it feel so powerful?

Where the power comes from

The power of an AI agent sits in what it's allowed to touch. The loop stays boring.

An agent like OpenClaw knows its own system. It knows where its documentation lives, which language model it runs on, where its source code is. It can debug itself. And, this is where it gets interesting, it can rewrite itself. Steinberger says he didn't even plan that. It just happened. Give an AI access to its own code, and that's what follows.

Then there's the heartbeat. Sounds dramatic. It's a timer that nudges the loop every thirty minutes or every few hours, depending on the setting. The agent doesn't wait for you, it looks at the context and decides whether to speak up. Steinberger added it more or less as a toy, with the prompt "surprise me." The hospital message came out of that toy.

And then the question of how an agent learns new skills. Steinberger deliberately skipped MCP, the standard of the time, and relies on plain command line tools, because, in his words, models are really good at calling UNIX commands. One line tells the model a skill exists. It figures out the rest and keeps only the output it needs.

What stays with me from all this:

  • The architecture is simple. The consequences aren't.
  • Proactive behavior comes from a timer, not from consciousness.
  • Self-modification needs no science fiction, only access to its own code.
  • The best technical decisions are often the boring ones.

The same thing that makes an agent useful makes it risky. Because it can act, it can also do damage, for example when a manipulated email slips it instructions it then follows. That's called prompt injection, and nobody has fully solved it yet. What to set up before you let an agent loose is in OpenClaw security.

Examples of AI agents you can try today

AI agents today come in very different shapes, even though the same loop runs inside all of them. The difference is where the agent works and what it may touch there.

Five forms you can try right now:

  • The assistant in your messenger: OpenClaw or Hermes Agent run on your own computer. You text them through Telegram or WhatsApp, and they check your calendar, sort files or do research.
  • The colleague in your folders: Claude Cowork works in the folders you share with it and turns, say, a stack of invoices into a spreadsheet that you then check. Scheduled tasks run in the cloud even when your computer is off.
  • The agent in your project: Claude Code reads and changes files, runs commands and puts changes in front of you for approval. This website is built with it.
  • The agent in a company workflow: in tools like Microsoft Copilot Studio or n8n you build, without code, an agent that sorts requests from a shared inbox and drafts replies. In ChatGPT, longer multi-step tasks now run in ChatGPT Work, which replaced the earlier ChatGPT agent, according to OpenAI's Help Center.
  • The agent on your screen: with computer use, the AI clicks through interfaces like a person would, for example through an old portal that has no API. It still stumbles a lot.

Many of these agents reach tools outside the chat through a shared standard, the Model Context Protocol, or MCP, the standard Steinberger skipped. Think of it as a universal plug. What you let the agent reach through it matters more than the plug.

When you don't need an agent

Before building an agent, check whether something much simpler would do. If a task runs the same way every time, a fixed automation is enough. For flows like that I use n8n. No model decides anything there, one step simply follows the next. An agent only pays off when something has to be decided along the way.

On my own website I see every day where the loop stops. Claude Code builds, checks and proposes. It wasn't allowed to create the repository on GitHub, though, because GitHub doesn't let apps do that. I made that click myself. No big deal. Still, it's the lesson I'd take into any company: a few steps stay with a human on purpose, and you decide which ones before the agent starts.

The best agent won't make an unclear process clear. It just makes it unclear faster.

If you want to see which tasks in your own job might suit an agent, try Protago AI: you type in your job and see what you could already do differently with AI today.

All of this probably sounds less spectacular than what you picture when someone says "autonomous AI agent." I think that's the useful part. So here's a small exercise before you try one. Take a task you did this week and write down every step. Then mark the steps you would never let a program do alone. If you marked none, look again. If you marked all of them, a checklist will do for now. Anything in between is where an agent starts to make sense.


Studio ✺ Christos

Frequently asked questions

What is an AI agent?

An AI agent is a program in which a language model decides its next step itself and carries it out with tools until a task is done. Examples are OpenClaw, Claude Cowork, Claude Code and agents built in Microsoft Copilot Studio or n8n. The loop behind it is often called the agentic loop.

What is the difference between a chatbot and an AI agent?

A chatbot answers questions. An AI agent uses the same kind of language model but is allowed to act: open files, write emails, look things up, run commands. The difference lies in what it may do, much less in how smart it is.

Is ChatGPT an AI agent?

In a normal chat, ChatGPT works as a chatbot with some tools. For longer, multi-step tasks OpenAI now offers ChatGPT Work, which replaced the earlier ChatGPT agent mode, according to OpenAI's Help Center in November 2026.

What are the 5 types of AI agents?

The classic textbook split from Russell and Norvig has five types: simple reflex agents, model-based reflex agents, goal-based agents, utility-based agents and learning agents. Today's agents built on language models mix several of these ideas and are usually described by what they may access rather than by type.

Are AI agents safe?

Only with care. Because an agent can act, it can also cause damage, for example when a manipulated email or web page slips it instructions. Limit what it may access, keep important steps for a human to approve and start with tasks where a mistake is cheap.

Abstract graphic of an artificial brain, a picture for the simple loop of deciding and acting that runs inside AI agents