An AI agent chooses actions to reach a goal. Agentic AI describes that behavior, whether one agent or several do the work. This article explains when one agent is enough, when to add more, and what it takes to run either design in production.
Copy link to headingWhat's the difference between AI agents and agentic AI?
An AI agent uses a model and tools to decide how to complete a task. Agentic AI is the broader term for systems that plan, act, and adapt as they work toward a goal. A single AI SDK agent can work toward a goal over several steps. Some academic taxonomies use "agentic AI" more narrowly to refer to systems of collaborating agents.
One agent can plan and adapt on its own. Adding agents changes who does the work.
The model reads the latest result and decides what to do next. It might call another tool or give an answer. An agentic system can combine that loop with workflow code that runs other steps in a fixed order. The system can make those decisions with one agent or several.
One agent can manage the whole task and call independent tools in parallel. With several agents, a lead agent can hand the task to a specialist or call that specialist as a tool. In a handoff, the specialist takes over. When the lead calls specialists as tools, it can use the specialists' results to write the final answer.
The app decides which conversation history and tool results to pass to the model. An agent can also retrieve history saved between sessions. In Anthropic's research system, workers save summaries and key findings outside their context windows. When a worker nears its context limit, a new subagent can take over the task.
Copy link to headingHow a single AI agent works
An agent can keep calling its model and tools until it finishes the task or hits a limit. Build and test the model, tools, and limits together.
Writing the prompt is only part of building an agent. An LLM agent uses a large language model (LLM) to decide what to do at each step. An agent framework can run that loop for you.
Copy link to headingThe agent loop
In a typical agent loop, the model picks an action, a tool runs it, and the model uses the result to decide what to do next. After building hundreds of agents on its Agent Stack, Vercel introduced eve. The framework keeps an agent's instructions and tools in one directory.
The loop has five parts:
The model chooses each step: It reads the task and the context it receives, then picks an action. The same task can take a different path on the next run.
Instructions describe the scope: A system prompt or instructions file tells the model what the agent is for and what it should avoid.
Tools define what the agent can do: A tool might call an API or query a database. Limit each tool's permissions to what its task requires.
Results feed the next decision: Pass tool results back to the model so it can spot a failure and try something else.
Stop conditions end the run: The loop ends when the model stops calling tools or hits a limit. The AI SDK's
ToolLoopAgenthas a 20-step default.
If an agent keeps taking the same action, check the trace before raising the step limit. A higher limit can let the agent repeat the same mistake and spend more.
Copy link to headingBenefits and limits of a single agent
When one agent handles the whole task, it has a few advantages:
Fewer moving parts: One loop is usually easier to build, test, and debug than several agents exchanging messages.
Shared context across steps: The agent can keep tool results without summarizing them for another agent.
Lower coordination overhead: A single agent skips the lead agent's extra planning calls and the separate contexts for each worker.
Readable traces: A single trace can show model and tool calls in order, so you can see where behavior changed.
Longer runs and larger tool sets can cause problems:
Growing input per step: Messages and tool results can add input tokens at each step. The app can trim or summarize older context.
Latency per step: More model calls can delay the final answer, even if the agent streams its progress.
Compounding mistakes: If the agent misses an early error, that error can affect later decisions and end up in the answer.
Tool crowding: The model can have trouble choosing among many tools that do similar things.
Clarify the tool definitions and tighten the stop conditions before you try adding a second agent.
Copy link to headingSingle-agent use cases
One agent works well for jobs with a clear goal and a short tool list:
An agent can turn a plain-language question into a database query and run it. Vercel's internal agent, d0, does this in Slack. A tool redesign removed 80% of its tools. Afterward, d0 answered all five test queries, up from four, and its average runtime fell from 274.8 to 77.4 seconds.
For customer support, an agent can answer routine questions and hand the rest to a person. Vercel's support agent cut human-handled tickets by 31%. In the initial 50% A/B test, support tickets fell 16% over two weeks. The team then expanded the rollout.
Stably's testing agents test code changes on Vercel by opening preview deployments, reviewing the diff, and verifying that the changes work. Stably’s six-person team reports launching new product lines within hours, not weeks.
Copy link to headingHow multi-agent systems work
In production, you can coordinate several agents, ask people to approve actions, and save progress so runs survive restarts.
In the orchestrator-worker pattern, a lead agent plans the work, starts subagents in parallel, and combines their results. Workers can send summaries, structured results, or references to saved work. That takes up less of the lead agent's context than sending full transcripts.
A lead agent can delegate each kind of work to a specialist. Agentic workflows can let a model plan, use tools, and review its own work while code sets the order of other steps.
Copy link to headingBenefits and costs of adding agents
Agents can work in parallel across separate contexts, but coordinating them may require more tokens. A benchmark study tested 260 configurations against single-agent baselines. A centralized design scored up to 80.8% higher on financial reasoning. A decentralized design scored up to 9.2% higher on web navigation.
What you can gain by splitting the work:
Parallel exploration: Subtasks can run at the same time, which helps when you have dozens of sources to check.
Context isolation: Each worker has its own context, so details from one task don't take up space in another's.
Smaller tool lists: Give each specialist only the tools it needs so it has fewer choices at each step.
Independent review: A reviewer can check the work in a fresh context using the same sources and scoring criteria.
What a split can cost:
Sequential planning losses: On the PlanCraft benchmark, all four multi-agent designs scored 39% to 70% below the single-agent baseline.
Extra token use: Planning calls, separate contexts, and handoffs can increase token use without improving the result.
Error propagation: In the study, errors spread more when agents worked independently than when a central coordinator checked results.
Harder debugging: A small change to the lead agent can change what its workers do. By the time you see an error, the step that caused it may be several steps back.
Anthropic found less room for parallel work in many coding tasks than in the research tasks its system handled.
Copy link to headingExamples of agents and workflows in production
Several agents work well when parts of a job can run independently:
Agents can split up incident response and check several systems at once. Rogo's agent swarms use the AI SDK to assess and resolve production incidents without manual intervention. Rogo also reports shipping agent-written code to production in five minutes.
A workflow can also run steps in parallel. Durable's six engineers use Vercel Workflows to run dozens of AI steps that build a complete website in under 30 seconds.
A coding agent can take a code change live. Vercel reported that coding agents started more than 50% of deployments on Vercel as of September 2026. If a release fails, Instant Rollback can send production traffic back to a previous deployment.
Copy link to headingWhen to use one agent or several
Run both designs on the same tasks. Score the results against the same criteria and compare runtime and cost per successful run.
Copy link to headingOne task, two designs
Anthropic asked agents to find the board members of every S&P 500 company in the information technology sector. The single agent searched sequentially and didn't find the complete answer.
The multi-agent version split the list among subagents, ran the searches in parallel, and combined the findings. It got the right answers in Anthropic's research test. Across Anthropic's usage data, multi-agent runs typically used about 15 times as many tokens as a chat. Single-agent runs used about four times as many.
Copy link to headingWhen one agent is enough
Start with one agent if the steps depend on each other, the tool list is manageable, and the information fits in one context window. Splitting a sequential task can add handoffs without giving agents anything to do in parallel.
Given equal reasoning budgets in tokens, single agents matched or beat multi-agent systems on the multi-hop reasoning tasks in the study. The authors suggest that extra compute and differences in how models use context explain many of the reported gains. For fact lookups, Anthropic's prompts called for one agent and three to ten tool calls.
Copy link to headingWhen to add agents
Try a multi-agent design if parts of the task can run in parallel, the work no longer fits within a single context window, or the agent keeps choosing the wrong tool. Keep the split if the improvement is worth the added time, cost, or maintenance.
In Anthropic's internal research tests, a Claude Opus 4 lead with Claude Sonnet 4 workers scored 90.2% higher than Claude Opus 4 alone. Anthropic has since retired both models on the Claude API. A split can also make agents easier to maintain. In Vercel's AI SDK software factory, the team uses one agent per task to test and debug each agent separately.
Copy link to headingHow to run agents in production
Vercel provides infrastructure for model calls, code execution, and long waits, whether you run one agent or several. In the AI SDK software factory, each agent runs in its own sandbox with only the code, runtime, and secrets it needs.
Copy link to headingSet limits on model spending
An agent can run up model costs by getting stuck in a loop or starting too many subagents. Check the budget before each request and set an execution limit for each agent.
Use AI Gateway to call hundreds of models through one endpoint, fall back to other providers, and inspect request logs. Set AI Gateway budgets for a team, a project, a team member, or an API key. A key per agent lets you track its spend and set a soft limit. The request that crosses the limit can finish. AI Gateway rejects later requests covered by that budget, including bring-your-own-key (BYOK) requests. Charges from your BYOK provider don't count toward the budget.
Copy link to headingManage compute while agents wait
Agents can spend much of a run waiting for models or subagents. If you pay for the full time a function runs, you pay for those waits too.
With Fluid compute, concurrent requests can share a function instance. Active CPU billing pauses while code waits for model calls or other I/O. You still pay for provisioned memory while requests are in flight. The function duration limits are 300 seconds on Hobby and 800 seconds on Pro and Enterprise. On Pro and Enterprise, you can set the beta limit of 1,800 seconds on individual functions that use a supported runtime. The beta supports Secure Compute and Static IPs. Bring Your Own Cloud (BYOC) is excluded.
Copy link to headingIsolate generated code
Coding agents can execute generated code, and each worker may run its own. If you run that code in an application function, it can get access to the function's environment variables and credentials.
Each Vercel Sandbox runs in its own Linux microVM with a separate kernel, filesystem, and network. With the multi-agent APIs, agents can share a sandbox while running as separate Linux users with private home directories. Hobby allows up to 10 concurrent sandboxes, each for up to 45 minutes. Pro and Enterprise allow up to 10,000, each for up to 24 hours.
Copy link to headingSave progress across long waits
Waiting for a subagent or a person's approval can take longer than a single request. If you don't save state, a crash or redeploy can wipe out the results of model calls you've already paid for.
Vercel Workflows can retry failed steps, wait for external events, and resume after crashes or deployments. In AI SDK 7, the WorkflowAgent class runs the agent loop inside a workflow. Use toolApproval to pause selected tool calls until someone approves or denies them.
Copy link to headingRun an agent with eve
eve is Vercel's open-source framework for agents you define in files. Start with one agent and keep its instructions and tools in the same directory. If you need specialists later, declare them as subagents. You can deploy eve on Vercel or host it yourself.
Here's how the Vercel products fit together:
Model calls: eve uses the AI SDK to work with models. On Vercel, a string model ID routes requests through AI Gateway, which can authenticate using the project's identity.
Durable execution: On Vercel, Vercel Workflows stores and resumes runs. Vercel Sandbox is the default environment for shell commands and file operations. Vercel Schedules triggers recurring work when you configure a schedule.
Tools and credentials: Vercel Connect can authorize access to external tools and data without putting raw credentials in the model's context.
Channels: A Chat SDK adapter can bring the agent into a messaging app. The Vercel Board extension lets it respond in team threads and act on tasks.
Memory and traces: An optional file memory integration can store documents in Vercel Blob. With tracing enabled, Agent Runs shows sessions and conversation traces in the Vercel dashboard.
An eve template gives you a starting point. Add connections, channels, or persistent memory when the job calls for them.
Copy link to headingBuild a baseline with one agent
Start with one agent, a few tools, a step limit, and a trace you can check. Compare that run with a split to see whether any improvement is worth the extra tokens and maintenance.
Create a new Vercel project to ship your first agent, or find an agent starter to extend in the Vercel template gallery.
Copy link to headingFrequently asked questions
Copy link to headingIs ChatGPT an AI agent?
OpenAI's agent guide distinguishes a chatbot that answers questions from an agent that decides how a workflow runs. ChatGPT Work can work across connected apps and files on tasks that take hours.
Copy link to headingDoes agentic AI require multiple agents?
One agent can be agentic if it chooses what to do next and adapts as it works. The narrower academic taxonomy reserves "agentic AI" for systems of agents that coordinate their own actions and keep persistent memory.
Copy link to headingShould you build one agent first?
Start with one agent. If you need a specialist later, you can use the AI SDK to call a subagent as a tool from the main agent.
Copy link to headingHow does an AI agent differ from an agentic workflow?
An agentic workflow coordinates steps such as planning, using tools, and reviewing results. Code can set the order of some steps and let an agent decide the order of others as the workflow runs. An agent can participate in multiple workflows, and a workflow can use multiple agents.