6.2.6 · D1AI Agents & Tool Use

Foundations — Multi-agent collaboration

2,205 words10 min readBack to topic

The parent note Multi-agent collaboration throws a lot of symbols at you fast — , , , , , , , , . This page builds every one of them from nothing, in an order where each rests on the one before. By the end, none of them should feel like a wall of squiggles.


1. An agent — the single worker

Before we can have multi-agents, we need to be crystal-clear on what one agent is.

We write a single agent as the capital letter . When we have several of them we tag each with a small number underneath — a subscript:

Look at the figure: three boxes, three name tags . The red arrows are the only thing that turns three lonely workers into a team — they are the messages, which we build next.

This idea of one sense→decide→act loop is exactly the perception-action cycle, and each agent's ability to act by calling tools is agent tool use.


2. The letter — "how many workers?"

The parent note writes sums and products that run "from to ". So what is ?


3. The letter — "which worker right now?"

So the phrase "each agent " is not a fourth agent named — it is a way to say something true for every agent by talking about a stand-in.


4. Capabilities and the set — "the skills the job needs"

A hard task needs skills: web search, running code, reading images, domain knowledge. We bundle those skills into a set.

Picture a toolbox: is the whole box, and each (search-tool, code-tool, image-tool) is one tool inside it.


5. — "has at least these skills"

The parent writes . We need the "contains" symbols.

The figure shows two nested loops. The big loop is what agent can do; the small red loop is what the task needs. As long as the small loop sits fully inside the big one, the agent is capable. That is the whole meaning of .


6. Splitting the toolbox — , , and

The core move of multi-agent design is: don't make one agent hold every tool — split the box.

We also want the pieces to not overlap much, so no two agents duplicate work:

In the figure, the big box is chopped into red slices . Why does this matter? Because a smaller box per agent means a simpler prompt, a tighter focus, and less to get confused about — that is the whole "specialization gain" the parent talks about. Splitting skills this way echoes how distributed systems split work across machines.


7. Messages and cost — the price of talking

Splitting the work creates a new expense: the workers must talk.

The parent's total-cost line just adds up two prices:

The design pays off when this total beats a single mega-agent — that comparison is a bit of game-theory flavored reasoning about when cooperation is worth its overhead.


8. Policy and local state — "how one worker decides"


9. The joint policy — and the conditioning bar

The magic — emergence — lives in this line:


10. and — the voting machinery

The parent's aggregation and assignment formulas use two more tools.

Putting them together, the parent's aggregation rule

reads, entirely in English: "count each agent's vote, then return the answer that got the most votes." This majority-vote idea is a cousin of ensemble methods — the difference is agents talk first, ensembles only tally.


Prerequisite map

Agent A single worker

Subscript names A1 A2 A3

Count k and index i

Set C and size of C

Subset and superset

Union intersection empty set

Split the toolbox per agent

Sum sign adds costs

Messages M and Cost

Policy pi and local state s

Product sign joint policy

Conditioning bar given messages

Emergent team behavior

Indicator and argmax

Majority vote and task assignment

Multi-agent Collaboration


Equipment checklist

Cover the right side and see if you can answer each before revealing.

What does the subscript in mean?
A name tag — "agent number 2", a different agent from ; not a power or a multiplication.
What is the difference between and ?
is the fixed total number of agents; is a moving pointer that steps through them, up to .
What does measure?
The number of members (skills) in the set .
Read in plain words.
Agent has at least every skill the task needs (its skills contain ).
What does give you?
One pile containing everything in or — the combined skills.
What does say about two agents?
Their skill sets share nothing — no overlap, cleanly divided work.
What does compute?
The total of every individual agent's cost, added up.
What is the difference between and ?
adds the terms together; multiplies them together.
What does the bar mean in ?
"Given" — agent 's decision made conditioned on the messages it received.
What does stand for here (and what does it NOT)?
A policy = a decision rule mapping state to action; it is NOT the number 3.14159.
What does equal?
if agent 's answer is , otherwise .
What does return?
The answer that the largest number of agents voted for (majority vote).