AI That Acts
Chatbots talk. Agents do. Give a model tools and a loop, and it can think, act, and check its own work.
A chatbot talks. An agent does. The difference is one simple addition: give a language model a set of tools and a loop, and it stops merely answering — it starts thinking, acting, checking the result, and trying again.
On its own, a model has to answer everything from memory in a single shot. Ask it for the sales tax on a cart of items and it'll do the arithmetic in its head — and language models are famously shaky at mental math. But what if, mid-sentence, it could pause and say: “I should use a calculator for this” — call one, read the result, and continue? That pause-and-use-a-tool move, repeated in a loop, is what turns a model into an agent.
The Reasoning Loop
Step through it · or hit Run
Give the agent a task
I'm buying 3 notebooks at $4.50 and 2 pens at $1.25. With 8% sales tax, what's the total?
A plain chatbot, one shot: “That comes to about $16.50.” — no tools, so it guesses. Now let the agent loop instead.
Press Step or Run to watch the agent think.
Read the red one-shot guess at the top first — that's the model with no tools. Then press Step and walk the loop one move at a time: a Thought plans, an Action calls a tool, an Observation brings back the result, and the cycle repeats until it can answer. Try the Olympics task — watch it not fall for the obvious wrong answer.
Think, act, observe, repeat
The pattern has a name — ReAct, for “reason + act” — and it's deceptively powerful. Each turn of the loop, the model writes a thought (what do I need next?), picks an action from its tools (search, a calculator, a database query, running code), and then the system actually runs that action and feeds the real result back in. The model never has to know the answer up front; it just has to know what step to take next.
The loop is the magic. A single guess can't recover from being wrong — but a loop can observe that a step failed and adjust. Breaking a hard task into think-act-observe steps, each grounded in a real tool result, is how an agent stays tethered to reality instead of drifting into confident fiction.
This is the foundation under the “AI that books your travel” and “coding agent that fixes the bug” demos. The tools change — a web browser, a code runner, your calendar, a payment API — but the skeleton is identical: a model deciding, in a loop, which tool to reach for and when to stop. It's also where the real risks live. An agent that can act in the world can take a wrong action, loop forever, or be tricked into misusing a tool, which is why real agents run with guardrails, step limits, and a human watching the important moves.
Context windows, retrieval, agents — every one of these is steered by the same small thing: the words you give the model to begin with. Which brings us to the last and most everyday skill of all. How you ask is the steering wheel for all of it. That's the final lesson.