Ego Machina
← blog

Fundamentals · Nov 20, 2026 · 6 min

What an agent is, without a single line of code

For people coming from another field who want to know what everyone means when they talk about agents.

A person in a room with a slot

Imagine someone brilliant locked in a room with no windows. They’ve read an enormous number of books, but they have no phone, they can’t leave and they don’t know what day it is. The only thing there is a slot in the door: you pass in a note with a question and get another note back with the answer.

That’s a language model, like the one behind ChatGPT or Claude. Text goes in and text comes out. It writes very well, but it can’t do anything.

Ask it whether you’re free on Tuesday and the best it can do is apologize. It has no way to see your calendar.

Give it tools

Now tape a list next to the slot: calendar, email, search. The person still can’t leave, but now they can write a different kind of note: check Tuesday’s calendar. Someone outside reads it, does what it says and passes the result back through the slot.

That someone is a simple program, and here’s the most important idea of the whole topic: the model never touches the calendar. It only writes the order. The program carries it out.

  1. You

    Am I free on Tuesday at 5?

  2. Model thinks

    I have no way to see the calendar.

  3. Answerdoesn't know

    I can't tell. Check your calendar.

The same question, with and without tools.

Let it go around

One tool answers one question. A real goal takes several steps, and each step depends on what came out of the one before.

Think about asking a new assistant to set up lunch with Mónica. They don’t do it all at once: they check your calendar, see what’s open, write to Mónica and wait for her reply. After each thing they do, they look at what happened and decide the next one.

That’s an agent: a model with tools that repeats a loop, think, act and observe, until the goal is met. Here Darwin does it, the agent from our course. Click through it step by step.

goal Set up lunch with Mónica on Tuesday.

thinkactobserve

Darwin's diary

  1. thinkFirst I need to know if you are free on Tuesday.
  2. actcheck calendar · Tuesday
  3. observeFree from 2 to 4.
  4. thinkThere's a gap. I'll suggest 2 to Mónica.
  5. actsend email · Mónica · lunch Tuesday at 2?
  6. observeMónica replied: perfect.
  7. thinkMónica said yes. I still need to book it.
  8. actcreate event · Tuesday 2 pm · lunch with Mónica
  9. observeEvent created.
  10. doneDone: lunch with Mónica on Tuesday at 2.

Look at the second tab. Nobody told it what to do if Tuesday was full. It decided when it saw the result, and that’s the difference between an agent and an automation.

A recipe is not a cook

An automation is a recipe: the steps are written before you start and they’re followed in order. If an ingredient is missing, the recipe doesn’t know what to do. An agent is more like someone cooking: they have the goal, they taste, they see how it’s going and they adjust.

Automation: a recipe

  • The steps are written in advance.
  • It does the same thing every time.
  • If something changes, it gets stuck.

Agent: someone cooking

  • It has a goal, not a list of steps.
  • It decides the next step with what it just saw.
  • If something changes, it finds another way.

Neither one is always better. If the process never changes, the recipe is cheaper and more predictable. The agent is worth it when the path depends on what you find along the way.

Why it’s not magic

That the agent decides is also its risk: it can decide wrong. It can keep going in circles, use the wrong tool or send an email nobody reviewed.

The hard part isn't making it work once. It's making it work a hundred times in a row without doing something weird.

That’s why an agent gets limits: a maximum number of loops, a person’s approval before anything delicate, like sending or paying, and a record of every step to review what happened. Building agents looks more like engineering than magic: you measure, test and fix.

In short

01 · the brain

Model

The person in the room. Text goes in and text comes out.

02 · the hands

Tools

The model writes the order and a program carries it out.

03 · the legs

Loop

Think, act and observe, until the goal is met.

04 · the judgment

Limits

What keeps it from doing something weird a hundred times in a row.