What is an AI agent?
A chatbot answers; an agent acts. It takes a goal, picks tools, looks at what happened and keeps going until the job is done. Here is the loop, its limits, and how to brief one well.

Key takeaways
- An AI agent runs a loop: decide the next step, call a tool, read the result, repeat until the goal is met.
- Tools are what make it an agent: reading files, running code, searching, calling APIs.
- Clear goals, constraints and a definition of done matter more for agents than clever wording.
An AI agent is a system built around a language model that pursues a goal over several steps by deciding what to do next, using tools such as file editors, code runners, search or APIs, observing the results, and adjusting until the task is finished or it needs a human. The difference from a chatbot is action: a chatbot gives you an answer, an agent does the work and reports back.
An everyday comparison is the difference between asking a friend "how do I fix a leaking tap?" and hiring a plumber. The friend explains. The plumber looks at the tap, fetches the right washer, fits it, turns the water back on, checks for drips, and only then tells you it is done.
The agent loop
- 01Goal: "Add a booking form that saves to the database and emails the owner."
- 02Plan: break it into steps, often written down so progress can be tracked.
- 03Act: call a tool: read a file, write code, run a command, query a database.
- 04Observe: read the tool's result, including errors and test output.
- 05Decide: next step, retry a different way, ask the human a question, or stop because the goal is met.
Around that loop sit the parts that make agents dependable: a limited, well-described set of tools, permissions that control what each tool may touch, and a way for a person to watch, interrupt and undo.
Where agents struggle
- Vague goals: "make it better" gives the loop no stopping point.
- Long chains: small mistakes early can compound across many steps, which is why checking results along the way matters.
- Claimed success: a model can say a task is done when it is not (what AI hallucination is); real agents verify by running things.
- Context limits: very long tasks can push early details out of view (tokens and context window).
- Risky tools: an agent with broad access can make broad mistakes, so scope permissions tightly.
The agent you work with in Startbase
Startbase is built around an agent. In Build mode it takes a task end to end: works out what you mean, reads your code for context, changes every file that needs changing, and fixes problems it runs into. It tests what it builds and runs your app before finishing, asks you when a choice matters, and ends each turn with a receipt of what changed (chatting with the agent). Plan mode is the read-only counterpart for thinking a change through before any file is touched (plan mode docs). Every build saves a version, so an agent step you dislike is one restore away. The full tour is in inside an AI app builder.
Briefing an agent is closer to briefing a contractor than to writing a search query: the goal, the constraints, and what "done" looks like.
Goal: let visitors book a 30-minute call. Add a booking page with name, email, a date picker limited to weekdays 9:00 to 17:00, and a short note. Save bookings to the database, block double-booking of the same slot, and email me each new booking. Constraints: keep the current design and navigation, no payment yet. Done means: you booked a test slot in the preview, a second booking of that slot was refused, and you tell me what you changed.
More on writing requests like this in how to describe an app so AI builds it right.
Common confusions
- Agent vs chatbot. Same underlying model, different setup: the agent has tools and a loop.
- Agent vs automation. A scheduled automation follows fixed steps you wrote. An agent chooses its steps, which is more flexible and less predictable.
- "Autonomous" means unsupervised. Useful agents still check in, show their work and can be stopped.
Frequently asked questions
Is an AI agent the same as an AI app builder?
An AI app builder is a product; the agent is the part inside it that reads, writes and runs your code. Some builders only generate code once, while agent-based ones keep working until the result runs.
Can my own app include an AI agent?
Yes. An agent in your app is a language model call in a loop with a few tools you define, such as looking up an order or creating a ticket. Start with one or two narrow tools and log every action.

