Multi agent systems are software setups in which several AI agents, each with its own goal, context, and tools, work on parts of one larger task and coordinate their results. An agent here is a program, usually driven by a large language model, that plans steps, calls tools, and acts on its own. In a multi-agent system, a coordinating layer, either plain code or a lead agent, splits the work, passes messages, and merges the outputs.
This article covers what you need beyond the definition. You will see why teams build these systems, how to build one without overengineering it, which characteristics and architectures define them, and where they run in the real world. You will also learn how to tell whether one agent is enough for your problem.
Geodd runs inference for teams that put agents into production through an OpenAI-compatible API. That is why the last section works through token costs with real model prices. A system with six agents makes six times the calls, and the bill follows.
Why multi-agent systems matter
Multi-agent systems matter because they remove three limits that a single agent hits in real work: a context window that fills with irrelevant detail, a tool list too long to choose from, and tasks that can only run one step at a time. They also add cost and failure points, so the case for building one has to be specific.
The limits of a single agent
The first limit is context pollution. Picture a support agent that pulls an order history and then diagnoses a technical fault. It now carries thousands of tokens of order data into the diagnosis, and answer quality can drop as that irrelevant material piles up. A subagent with its own clean context can do the lookup and hand back a two-line summary.
Tool overload is the second limit. Once an agent holds 15 to 20 or more tools, it spends attention choosing between them and starts picking the wrong one. This gets worse when the tools span unrelated domains, such as a CRM, a marketing platform, and a messaging service. Three specialized agents with 8 to 10 tools each choose more reliably than one agent with 30.
Sequential execution is the third. Researching ten sources does not have to happen in order. Parallel subagents can each cover one facet of the question while a lead agent merges what they find.
Multi-agent systems exist to isolate context, narrow tool choice, and run work in parallel, so build one only when you can name which of those limits is hurting you.
What you gain and what it costs
The trade is simple. You buy isolation, specialization, and parallelism, and you pay in tokens, debugging effort, and coordination risk.
| Factor | Single agent | Multi-agent system |
|---|---|---|
| Context | One shared window that keeps growing | A separate window per agent |
| Tool selection | One agent chooses from every tool | Each agent sees a focused set |
| Speed | Steps run in sequence | Independent steps run in parallel |
| Token use | Baseline | Often 3 to 10 times higher |
| Debugging | One trace to read | Many traces plus the handoffs |
| Failure points | One | One per agent plus the coordination |
The token multiplier is not a guess. Anthropic's engineers report that multi-agent implementations typically use 3 to 10 times more tokens than single-agent approaches for the same task. The causes are duplicated context, coordination messages, and summaries passed between agents. They also report that teams have spent months on elaborate multi-agent designs, then found that better prompting on one agent matched the results.
My position follows from that. Start with one well-prompted agent, measure where it fails, and add a second agent only for a failure you can point to.
How to build a multi-agent system
Build a multi-agent system by starting with one working agent, finding the specific limit it hits, and then splitting work along context boundaries rather than job titles. Everything else, including the framework you pick, is secondary to that split.
A step-by-step build order
Follow this order and you avoid most of the expensive mistakes:
- Build and test a single agent first. Give it a real task set and record where it fails.
- Name the limit. Is it polluted context, too many tools, or work that could run in parallel? If you cannot name one, stop here.
- Choose a coordination pattern. For a first build, use an orchestrator that spawns subagents. It is the easiest to reason about.
- Give each agent one job, a short system prompt, and only its own tools. Prompt quality matters for every subagent, not only the lead.
- Define what crosses each handoff. Pass compact summaries, not full transcripts.
- Add a verifier that checks outputs against explicit criteria.
- Log every agent's calls separately, with token counts, so you can see which agent drives cost.
Split by context, not by job title
The most common design error is dividing agents the way a human team divides roles: a planner, a coder, a tester, a reviewer. Each handoff loses detail, and agents end up spending more tokens on coordination than on work. In one reported experiment with exactly that role split, the subagents used more tokens talking to each other than doing the task.

Split where context can be truly isolated. Good boundaries include independent research paths (market trends in one region versus another), components behind a clean interface such as a defined API contract, and blackbox verification, where a checker only needs to run tests and report results. Bad boundaries include sequential phases of the same work and tightly coupled components that need constant back-and-forth. An agent that writes a feature should usually write its tests too, because it already holds the context.
A minimal orchestrator in code
This sketch shows the shape of an orchestrator with parallel subagents, using the OpenAI SDK against any OpenAI-compatible endpoint. Replace the base URL and key with the values from your provider's documentation.
import asyncio
from openai import AsyncOpenAI
client = AsyncOpenAI(base_url="YOUR_PROVIDER_BASE_URL", api_key="YOUR_API_KEY")
MODEL = "openai/gpt-oss-120b"
async def ask(system: str, user: str, max_tokens: int = 1500) -> str:
resp = await client.chat.completions.create(
model=MODEL,
max_tokens=max_tokens,
messages=[
{"role": "system", "content": system},
{"role": "user", "content": user},
],
)
return resp.choices[0].message.content
async def research(question: str) -> str:
plan = await ask(
"Split the question into 3 independent sub-questions, one per line.",
question,
)
facets = [line for line in plan.splitlines() if line.strip()]
findings = await asyncio.gather(*[
ask("You are a research subagent. Answer briefly and cite sources.", f)
for f in facets
])
return await ask("Merge these findings into one answer.", "\n\n".join(findings))
# asyncio.run(research("How are mid-size banks adopting AI agents?"))
Each ask call starts with a fresh message list, so every subagent has its own context window. The lead sees only the distilled findings, never the raw search noise. In production you would add retries, a verification pass, and per-agent logging.
Divide work where context can be isolated, because every handoff between agents that need the same context loses information.
Characteristics and architecture of multi-agent systems
A multi-agent system is defined by autonomous agents with a limited view of the whole, interaction between them, and a shared goal. Architecture is the decision about who controls whom and how information flows. The two together determine how the system behaves under load and failure.
Core characteristics
Researchers describe multi-agent systems with a stable set of traits, and they apply equally to LLM agents and to older software or robot agents:
- Autonomy. Each agent plans, calls tools, and decides on its own within its role.
- Local view. No agent sees everything. Each works from its own context, memory, and sensors.
- Interaction. Agents communicate directly through messages, or indirectly by changing a shared environment such as a database or a task board.
- Coordination toward a global goal. Individual agents have their own properties, but the collective behavior serves the system's objective.
- Specialization and modularity. You can add, remove, or retrain one agent without rebuilding the rest.
- Emergent behavior. The whole system can show patterns that no single agent was programmed to produce, such as flocking in robot fleets.
One boundary case trips people up. An agent that calls another agent as a tool and just consumes the answer is not yet a multi-agent system in the strict sense. The distinction is that in a true system, agents account for each other's goals, memory, or plans. It is also why a chat model on its own, including ChatGPT as a single assistant, is one agent. It becomes part of a multi-agent system only when several agents with separate contexts are coordinated around it.
Architectures and structures
The architectures below are the ones you will meet in papers and in production. The first two describe where control sits. The rest describe how agents are organized.
| Pattern | How it works | Strength | Watch out for |
|---|---|---|---|
| Centralized | A central unit holds global knowledge and connects agents | Easy communication, uniform knowledge | If the center fails, everything fails |
| Decentralized | Agents share information only with neighbors | Robust and modular | Hard to coordinate behavior |
| Hierarchical (orchestrator-subagent) | A lead agent assigns work to subordinates in a tree | Clear control, simple to debug | The lead becomes a bottleneck |
| Holonic | Agents group into holons that act as one entity | Self-organizing, reusable parts | Complex to design |
| Coalition | Agents unite temporarily to boost performance, then disband | Flexible for one-off goals | Hard to maintain in changing environments |
| Team | Interdependent agents cooperate, usually with some hierarchy | Strong group performance | Agents cannot work alone |
For LLM systems, you will most often choose between an orchestrator with subagents, a swarm of loosely coupled peers, and a message bus where agents publish and subscribe to events. Start with the orchestrator. It is the easiest to trace, and you can move to a looser pattern if the lead becomes a limit.
If you read about "types of AI agents," the classic list runs from simple reflex agents through model-based, goal-based, utility-based, and learning agents. Some lists extend it to seven by adding hierarchical and multi-agent agents. Modern LLM agents combine goal-based planning with memory and learning from feedback.
Choose the simplest architecture that matches your failure mode: a central orchestrator for traceability, decentralized peers only when a single point of control is the problem.
Examples of multi-agent systems in practice
Multi-agent systems run railroads, simulate epidemics, and now power LLM research assistants and coding tools. The older examples show the principles, and the LLM examples show how you would apply them in a product today.
Industrial and research examples
Transportation is a long-standing use. Railroad scheduling, truck assignment, and vessels sharing the same ports all involve many independent actors that must coordinate in real time. Robot fleets add the flocking heuristics of separation (avoid collisions), alignment (match the speed of neighbors), and cohesion (stay close to the group).

Supply chains use agents that negotiate with each other, often with conflicting goals, from production to the consumer purchase. In healthcare and public health, agent-based simulation supports disease prediction and epidemic forecasting on large datasets. In security, cooperative agent teams can each monitor a different part of a network and flag signs of attack such as flooding traffic. All four share one trait: no single actor could hold the whole picture.
LLM agent examples you can build
The patterns below map directly to production applications:
- Parallel research. A lead agent splits a question into facets, subagents search each one, and the lead synthesizes. This pays off on broad questions across many sources.
- Customer support with context isolation. An order-lookup subagent returns a short summary so the support agent's reasoning stays uncluttered.
- Coding with a verification subagent. One agent writes the change, and a separate agent runs the full test suite and reports failures. The common failure here is the verifier declaring success after two passing tests, so tell it explicitly to run everything.
- Multi-platform integration. Separate agents for CRM, marketing automation, and messaging each hold 10 to 15 relevant tools instead of one agent juggling 40 or more.
- Document processing and enterprise search. Agents specialize by document type or data source, and a router sends each request to the right one.
If you want a framework rather than raw code, open-source options such as LangGraph, CrewAI, AutoGen, and smolagents all implement orchestrator and subagent patterns. The framework matters less than the split, because the same context rules apply in each of them.
The best multi-agent examples share one property: each agent holds only the context its job needs.
What multi-agent systems cost to run in production
A multi-agent system costs roughly the sum of every agent's tokens, so model choice per agent matters more than the agent count. In a typical setup, the lead agent's model dominates the bill. Work out the numbers before you commit to a design.
A worked cost example
Take a research workflow with one lead and five parallel subagents. Assume each subagent reads 20,000 input tokens and writes 3,000 output tokens. The lead spends 10,000 input and 1,000 output tokens planning, then 25,000 input and 4,000 output synthesizing. That totals 135,000 input and 20,000 output tokens per run. The table uses listed Geodd prices: GPT-OSS-120B at $0.039 per 1M input and $0.158 per 1M output tokens, and DeepSeek V4 Pro at $1.480 and $3.400.

| Configuration | Cost per run | Cost per 1,000 runs |
|---|---|---|
| All agents on GPT-OSS-120B | $0.0084 | $8.43 |
| Five subagents on GPT-OSS-120B, lead on DeepSeek V4 Pro | $0.0751 | $75.07 |
| All agents on DeepSeek V4 Pro | $0.2678 | $267.80 |
The mixed setup costs about $0.075 per run, and nearly all of it is the lead: 35,000 input and 5,000 output tokens on the pricier model is $0.0688, while the five subagents together cost $0.0063. Put a stronger model only where judgment matters, and route bulk reading to a cheaper one. For comparison, a single agent doing the same job on GPT-OSS-120B with 30,000 input and 4,000 output tokens costs about $0.0018 per run. The all-GPT-OSS multi-agent version is therefore about 4.7 times higher, inside the 3 to 10 times range. At 10,000 runs a day, that is roughly $84 versus $18 per day. Whether the extra accuracy or coverage is worth it is a business decision you can now price. These figures are an estimate from assumed token counts, so replace them with your own logs.
Production checks before you scale
Cost is only part of the picture. Check these before you roll out:
- Rate limits. On Geodd, limits are shared across API keys for each model. Splitting agents across several keys on one account does not multiply capacity, so size concurrency against the model's limit.
- Concurrency. Five parallel subagents per run means 100 simultaneous runs produce 500 concurrent calls. Plan for peak traffic, not the average.
- Capabilities. Confirm that the exact model supports tool calling and structured outputs, which agents depend on. GPT-OSS-120B supports streaming, tool calling, structured outputs, and reasoning, with a 131.07K-token context.
- Data handling. Geodd does not use API data for model training and keeps zero data retention by default for the model above. Agent transcripts often contain customer data, so verify this for every model you use.
- Per-agent logs. Track tokens per agent so you can see which one drives spend.
Price a multi-agent design in tokens per run before you build it, and put your most expensive model only on the agent that makes the decisions.
Pick the simplest agent setup that works
A multi-agent system is several autonomous agents with separate contexts, coordinated toward one goal. It earns its cost when it removes a limit you can name: polluted context, too many tools, or work that should run in parallel. Split by context boundaries, keep handoffs compact, verify outputs, and expect to spend 3 to 10 times the tokens of a single agent.
Run the numbers on your own workflow before you commit. You can estimate token costs for your agent workload on Geodd's pricing page, then test your orchestrator against the OpenAI-compatible API with real request volumes.



