Book a free call

How to Build a Bounded Multi-Agent System

A bounded multi-agent system gives each AI agent clear limits on its job, tools, data and spending. Here is how to set those bounds so the agents stay in line.

Hertiv engineering teamReviewed by a senior engineer
7 min read
How to Build a Bounded Multi-Agent System
On this page

Short answer

A bounded multi-agent system is a team of AI agents that split one job between them, where each agent works inside clear limits on what it may do, which tools it may call, which data it may see and how much it may spend. The bounds keep the system predictable, so a mistake by one agent cannot spread to the whole workflow.

What is a bounded multi-agent system?

A bounded multi-agent system is a set of AI agents that work together on one job, where every agent has written limits on its scope, its tools, its data and its spending. One agent might read a customer message, another might check the order history, and a third might draft the reply, but none of them can act outside the limits set for it.

The word bounded is the point. An ordinary multi-agent system describes how agents share work, while a bounded one also describes where each agent must stop. That stop matters because agents can call tools, send messages and change records, so an agent that misunderstands its job can do real damage before anyone notices.

Bounds are set before the system runs, not discovered afterwards. The team writes down the job each agent owns, the tools it may call, the data it may read, the budget it may spend and the cases it must hand to a human. For the general build, how to build a multi-agent system covers the basic shape of splitting work between agents.

What are the five bounds every agent needs?

Every agent in a bounded system needs five limits, and each one answers a different question about what the agent may do. If any of the five is missing, the agent has a gap it can wander through.

BoundWhat it limitsExample
Job boundaryWhich tasks the agent ownsDraft replies, never send them
Tool permissionsWhich tools it may callRead orders, never refund them
Data accessWhich records it may seeOwn customer only, no other accounts
Spend and time capsHow much it may use12 tool calls per case, 3 minutes max
Escalation ruleWhen it must stop and askUncertain case goes to a human

The five bounds work together. A job boundary without tool permissions is easy to break, and a spend cap without an escalation rule leaves the agent stuck when it hits the cap. Write all five for every agent, and keep the list short enough that a new team member can read it in five minutes. Multi-agent system best practices covers the same ground from the reliability angle.

How do you set the job boundary?

You set the job boundary by writing down, in one sentence, what the agent owns and what it must never do. The sentence should be specific enough that two people reading it would draw the same line, such as 'draft refund replies for orders under 100, and never approve a refund'.

Start from the workflow and cut it into pieces that one agent can own end to end. A piece that needs judgement about money, safety or a customer relationship is usually too wide for one agent, so split it until each piece has a clear input, a clear output and a clear test for whether the result is right.

Check the boundary by listing the three worst things the agent could do if it misunderstood its job. If any of those is serious, the boundary is too wide or the test is too weak. Narrow the job, add a check, or move that part to a human. Agentic AI development teams use this same split when they design agent workflows for clients.

How do you limit tools and data?

You limit tools and data by giving each agent its own credentials that can only reach what its job needs. An agent that drafts replies gets read access to orders and write access to drafts, but no access to refunds, payments or customer records outside the case it is working on.

The practical rule is to list every tool and data source the agent needs, then remove everything else. Shared admin credentials defeat the whole idea, since any agent using them can reach anything. Each agent should have a named identity with permissions that match its job boundary exactly.

Test the limits by trying to break them. Ask the agent to do something outside its job, such as refunding an order or reading another customer's record, and check that the call is refused. If it succeeds, the permissions are wrong, not the agent. Log every tool call so a review can show what each agent actually touched.

How do you cap cost and time?

You cap cost and time by setting hard numbers on what each agent may use per case and per day. A typical cap is a maximum number of tool calls per case, a maximum run time per case, and a daily budget for the whole system, with the system stopping or escalating when a cap is reached.

Caps protect against loops, where two agents keep passing work back and forth, and against runaway cases, where one hard case consumes the budget for a hundred easy ones. Without caps, a single bad input can turn into a long, expensive run that nobody notices until the bill arrives.

Pick the numbers from a small pilot. Run the system on real cases for a week, note how many calls and how much time the normal cases need, then set the caps a little above the normal range. A cap set far above normal use is no cap at all, and one set too low will escalate cases that should have finished.

How do escalation and fallback work?

Escalation is the rule that tells an agent when to stop and hand the case to a human. It should trigger on clear signals: low confidence in the answer, a case that breaks the job boundary, a tool call that fails twice, or a cap that is about to be hit.

Fallback is what happens when an agent fails outright, such as a tool being down or a step returning nonsense. The system should record what happened, put the case in a human queue with the partial work attached, and never retry the same failing step in a loop. A case that fails quietly is worse than a case that fails loudly.

Both rules need a human on the other end. An escalation queue that nobody watches is just a slower failure, so assign an owner, a response time and a daily review of escalated cases. The review is where the bounds get better: if the same kind of case keeps escalating, the job boundary or the training data needs fixing.

Example (hypothetical): a support team bounds its agents

Example (hypothetical): a support team builds a bounded system with four agents. One reads incoming messages, one checks order history, one drafts replies, and one checks the draft before it goes to a human for sending. Each agent has its own credentials and a cap of 12 tool calls per case.

On a normal day the system handles 240 cases. At 12 calls each, the maximum is 2,880 tool calls, and the team sets a daily budget of 3,000 calls. Each case must finish within 3 minutes, and any case that cannot finish in that time escalates to a human with its draft attached.

In the first week, 18 of the 240 cases escalate, which is 7.5 in 100. The team reviews them and finds most are refund requests above 100, which the drafting agent is not allowed to handle. They widen the boundary slightly to cover refunds up to 150, and escalations fall to 9 cases the next week. The bounds did their job: the agents helped where they could, and the hard cases reached a human.

What are the common mistakes?

The most common mistakes in bounded multi-agent systems are writing bounds that are too vague, sharing credentials between agents, and setting caps so high they never trigger.

  • Vague job boundaries. 'Handle customer issues' is not a boundary. Name the exact tasks and the exact things the agent must never do.
  • Shared credentials. One admin login for all agents means no agent is actually limited, whatever the design document says.
  • Caps that never trigger. A daily budget ten times normal use will not catch a loop. Set caps just above normal use.
  • No escalation owner. Escalated cases pile up unread when nobody owns the queue, so the system fails slowly instead of loudly.
  • Skipping the break-in test. If you never ask an agent to do something forbidden, you will not know the limit is broken until a real case finds it.

Bounds are only real if they are tested. Try to break each one before launch, and review the escalation queue every day for the first month. What a multi-agent system is is a useful starting point if the team is new to the idea.

Key takeaways

  • Each agent needs limits on job, tools, data, spend and escalation
  • Give every agent its own credentials with least access
  • Set caps just above normal use so loops stop early
  • Escalate on low confidence, failed tools and near caps
  • Test the bounds by trying to break them before launch

Frequently asked questions

What does bounded mean for a multi-agent system?

Bounded means each agent works inside written limits on its job, tools, data, spending and escalation. The limits are set before the system runs, so a mistake by one agent cannot spread to the whole workflow or to data it should never see.

How many agents should a bounded system have?

Start with two to four agents, each owning one clear piece of the job. More agents mean more handoffs and more places for work to loop, so add agents only when one agent is clearly doing two different jobs.

What is the difference between a bound and a guardrail?

A bound is a hard limit, such as a tool the agent cannot call or a budget it cannot pass. A guardrail is a softer check, such as a warning when confidence is low. A bounded system needs both, but the bounds are the ones that stop damage.

How do I set a cost cap for agents?

Run a small pilot on real cases for a week, note the tool calls and time normal cases need, then set the caps a little above that range. Also set a daily budget for the whole system, with escalation when it is reached.

Should agents be allowed to send messages to customers?

Usually not on their own. Let agents draft replies and let a human or a checking agent approve them first. Direct sending is only safe when the message is templated, the scope is narrow, and every send is logged.

How do I test a bounded multi-agent system?

Try to break each bound: ask an agent to do something outside its job, call a tool it should not reach, and feed it a case that should escalate. If any of these succeed or fail quietly, fix the limit before launch.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: AI and agent systems in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Building a team of AI agents and want clear limits from day one? Talk to Hertiv.

A senior engineer replies within one business day. Or see our Agentic AI Development service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to contact@hertiv.com.

Prefer email? Write to contact@hertiv.com
Estimate costBook a call