AI Agents Explained

When AI takes actions, not just answers. An AI agent pairs a language model with tools and a loop so it can plan, act and check its work. What agents are, what they can do and their limits.

Shakey, a tall wheeled robot with a camera head, on display at the Computer History Museum

Shakey, an early agent that planned its own moves: The wub, CC BY-SA 4.0

From chatting to doing

A chatbot answers a question and waits for the next one. An agent is given a goal and works toward it on its own for several steps. Ask it to research three laptops and put the specs in a spreadsheet, and it might search the web, open product pages, pull out the numbers, build the file and report back.

The word agent is old in AI. It simply means something that senses its environment and acts to reach a goal. In the late 1960s, researchers at SRI built Shakey, a wheeled robot that could plan a route and push boxes around a room. The project also produced the A star search algorithm still used in maps and games.

Video: What are AI Agents? (IBM Technology), embedded from YouTube.

How modern agents work

Today's agents usually wrap a large language model in a loop. The model reads the goal, decides on a next step, and calls a tool, such as a web search, a calculator, a code runner or an app's interface. The tool's result is fed back in, and the model decides what to do next. The loop ends when the goal is met or the agent asks a person for help.

Agents may also keep notes or memory between steps and can split a big job into smaller tasks, sometimes handing parts to other agents. Coding agents that read a codebase, make changes and run tests are among the most widely used examples.

Where they stumble

Every step carries a small chance of error, and errors can stack up over a long task. An agent might misread a page, click the wrong button or confidently report success when something failed. Agents that read web pages or emails can also be fooled by hidden instructions planted in that content, a risk called prompt injection.

Giving an agent access to money, private files or the ability to send messages raises the stakes. Good systems limit permissions, log every action and pause for human approval before anything hard to undo.

Using agents sensibly

Start with tasks that are easy to check, such as gathering information, drafting documents or tidying files you have backed up. Give a clear goal, the boundaries of what it may touch, and what done looks like. Review the output as you would review work from a fast but new assistant. Agents can save real time, but responsibility for the result stays with you.

Media credits
  • Shakey, an early agent that planned its own moves: The wub, CC BY-SA 4.0
  • Agents often run on cloud servers: Derrick Coetzee from Berkeley, CA, USA, CC0

Text written by Strawberry Lemonadai.

← GPUs: Why AI Runs on Graphics ChipsHow to Write Good AI Prompts →

Shop

The Strawberry Lemonadai collection

Tees and hoodies in the Strawberry Lemonadai colors, printed to order in the USA. Use code FIRST15 from the newsletter for 15% off your first order.

Watch

Strawberry Lemonadai Shorts

Quick, accurate, under a minute. Every Short is original and made only for this channel.

YouTube @StrawberryLemonadAI
Channel launching soon. Subscribe on the newsletter to hear first.
Get notified
A computer beat the world chess champion in 1997Photos: IBM Deep Blue at Computer History Museum (9361685537).jpg - Anton Chiang from Cupertino, CA, USA (CC BY 2.0) via Wikimedia Commons | Garry Kasparov (37097592314).jpg - Gage Skidmore from Peoria, AZ, United States of America (CC BY-SA 2.0) via Wikimedia Commons | Chess game Staunton No. 6 perfil view 8.jpg - Wilfredor (CC0) via Wikimedia Commons | Chess game Staunton No. 6.jpg - Wilfredor (CC0) via
An AI solved a 50 year biology puzzle and won a Nobel PrizePhotos: Human Oxy-Hemoglobin Protein.jpg - PDB code 2DN1 1.25 a resolution crystal structures of human (CC0) via Wikimedia Commons | Ribbon diagram of the DED.jpg - BQUB16-Oibanez (CC BY-SA 4.0) via Wikimedia Commons | Laboratory pipettes.jpg - J.N. Eskra (CC BY-SA 4.0) via Wikimedia Commons | Use of a Multichannel Pipette for High-Throughput Liquid Handling in a Biosafety Cabinet.jpg - Siduduziwe Nxumal
ChatGPT hit an estimated 100 million users in 2 monthsPhotos: BalticServers data center.jpg - BalticServers.com (CC BY-SA 3.0) via Wikimedia Commons | Diverse people using phones.jpeg - Rawpixel Ltd (CC BY 2.0) via Wikimedia Commons | Crowd of people with phones.jpg - Rawpixel Ltd (CC BY 2.0) via Wikimedia Commons | Sam Altman CropEdit James Tamim.jpg - TechCrunch (CC BY 2.0) via Wikimedia Commons | Ilya Sutskever and Sam Altman in TAU.jpg - Eladkarmel (CC B
The T in ChatGPT comes from one 2017 paperPhotos: Mountain View (CA, USA), Charleston Road, Google-Fahrräder -- 2022 -- 2901.jpg - Dietmar Rabich (CC BY-SA 4.0) via Wikimedia Commons | Mountain View (CA, USA), Charleston Road, Abstellplatz für Google-Fahrräder -- 2022 -- 2899.jpg - Dietmar Rabich (CC BY-SA 4.0) via Wikimedia Commons | BalticServers data center.jpg - BalticServers.com (CC BY-SA 3.0) via Wikimedia Commons | Пример кода на Java.jpg
The word robot was invented for a 1920 playPhotos: Karel Čapek podepisuje první výtisky Povětroně, Pestrý týden 27.1.1934.jpg - Unknown authorUnknown author (Public domain) via Wikimedia Commons | Karel Čapek 30.léta.jpg - re-photo by David Sedlecký (Public domain) via Wikimedia Commons | Plakat za predstavo R.U.R Rossmus Universal Robots v Narodnem gledališču v Mariboru 28. oktobra 1933.jpg - Unknown authorUnknown author (Public domain) via Wikim
Newsletter

The weekly AI digest

The AI stories that actually matter this week, explained in plain English, plus one useful tool tip. No hype, no jargon, unsubscribe anytime.