Agent
Definition
A system where a model decides which actions or tools to use, in a loop, until a goal or stop condition is met, rather than following fixed steps.
In more detail
What separates an agent from a single model call is that the model chooses the next step based on what it has seen so far. A coding agent might read a file, run the tests, edit the code and run the tests again, deciding each move as it goes.
Agents are useful when the path to the goal cannot be written down in advance. They cost more and are harder to predict than a fixed workflow, so many production systems use agents only for the parts that need that flexibility.
Related terms
Agent loop
The repeating cycle of model call, tool call, observation and next decision that drives an agent until the task is done or a limit is hit.
Agentic workflow
A mostly predefined sequence of LLM calls and tool steps, where the developer fixes the path and the model fills in each step.
Subagent
A separate agent instance with its own context window, launched by a main agent to handle a focused task and report back a short result.
Tool calling
A model emitting a structured request to call a defined function, which your code runs and whose result is then fed back to the model.
Agent Client Protocol (ACP)
An open protocol that standardises how code editors talk to coding agents, so a compatible agent runs in any compatible editor.
Agent harness
The software around a model that turns it into an agent: the loop, tools, prompts, context management, permissions and limits.
Read more about Agent
- AI agents
Building systems where models plan and call tools in a loop to complete tasks.
- Build your first agent in Python
Three tools, a hard turn limit, a clear stop condition and a log of every tool call it makes.
- Build your first agent in TypeScript
Tools that search and read notes, a step limit, a clear stop condition and logged steps.