Interactive Lab · How LLMs become agents

An LLM can only talk. How does it learn to do things?

On its own, a language model just predicts text, it can't check the weather, run a calculation, or search a database. An agent is what you get when you wrap that model in a loop: it thinks up a plan, acts by calling a tool, observes the real result, and repeats until the task is done. Below is a real agent loop you can single-step. Turn its calculator off and watch it try to do math in its head. Then, in Part 2, run 50 of them at once and see what breaks.

▶ Part 1 · One agent: pick tools, set a step limit, then Run

The agent loop: think, then act with a tool, then observe the result, then repeat 🤔 Think 🔧 Act (tool) 👀 Observe repeat until done
📋 The task (fixed)What's an 18% tip on an $86.40 bill, and is the total over $100?
Tools the agent can call:
2 · tightgenerous · 8
step 0 / 6 tools used 0 status idle
The loop hasn't started. Press Run to auto-step, or Step to advance one stage at a time.

▶ Part 2 · Now run many agents at once

Agents are cheap to copy, so teams run many in parallel. Every result an agent hands back still needs a human to read it, understand it and approve it. People have a fixed number of hours in a day. What happens when the agents produce more than people can check?

🔮 Commit a guess first

You go from 1 agent to 20. Each result needs 15 minutes of human review, and the team has 4 review hours a day. After two weeks, the review queue holds…

Pick one. Then drag Parallel agents to 20 and check.

150
120
1 min60 min
1 h8 h
0%95%
Review load38%of human review time
Queue grows by0results per day
Queue after 2 weeks0results waiting
Comprehension debt0 hof review nobody has done
Review needed versus human hours per day, and the review queue over two weeks

🧭 Where this fits

The agent loop, model decides, tool runs, result feeds back, is the skeleton of every AI agent shipping today: coding assistants, browser agents, customer-support bots. The two knobs you just played with (which tools, how many steps) are exactly what production teams tune, and the step cap is the difference between an agent and a runaway bill. Part 2 is the other half of running agents for real: human attention is the scarce resource. Automated checks (tests, type checks, evals) are the leash that lets you run more agents without drowning in review.

The code that's actually running


  


  

🔮 Predict, then test

Turn the 🔧 Calculator OFF and Run, does the agent still get the exact total, or does it confidently guess? Why does giving a model tools beat asking it to "just think harder"? Now set max steps to 2 on this task (it needs three actions to finish) and Run, what stops it, and why is that stop condition the difference between an agent and an infinite loop?

The takeaway

Your new mental model of an agent