Why agent teams help: it's not the experts, it's how you ask
When you split a code review across several agents (a security reviewer, a performance engineer, a first-time user) you often get a better review than when you ask one agent to "check everything". We wanted to know why.
One appealing explanation comes from how many modern models are built. A Mixture-of-Experts (MoE) model doesn't use all its weights for every word. A small router picks a handful of "experts", sub-networks, for each token. So maybe a security persona routes the model to security-minded experts, and a UX persona to different ones. If that's true, a team of personas is really a team of different specialists inside one model, and MoE models should gain more from teams than ordinary "dense" models do.
It's a neat story. We tested it, and on the models we could run, it didn't hold up. When we looked closer, most of the "team" advantage didn't hold up either. What held up was simpler: the "check everything" prompt was a weak way to ask.
One thing to keep in mind throughout: in every set-up we tested, every agent was the same model with a different prompt. Different models, or models fine-tuned for different jobs, may well be better at different parts of a review. This study doesn't test that.
What we did
We built a small benchmark on the code of an open-source project:
- 25 short code changes, each with one or more known defects (security, concurrency, performance and plain logic bugs). Eight are real bugs from the project's history, reshaped into short diffs. The other 17 have defects we seeded into real code patterns.
- 12 UI and command-line flows with known points of friction. Six are real friction we had hit, and six are seeded.
- A ground truth for each item, written before any model saw it.
Five changes and three flows were held out and only opened at the end.
Then we ran two experiments on one 16 GB GPU.
Experiment 1: look inside the router.
- We fed the same 20 code changes to two small open MoE models, OLMoE-1B-7B and Granite-3.0-3b-a800m, under 13 different system prompts:
- a neutral "review this change", plus four paraphrases of it;
- security, performance and UX personas, each with its own rewording;
- long neutral prompts matched to the personas' length.
- For every layer we recorded which experts the router picked on the code itself, and measured how different those choices were between prompts.
- The neutral paraphrases tell us how much routing moves for no reason at all. That is the noise floor.
Experiment 2: run the teams.
- On a matched MoE/dense pair (OLMoE-1B-7B vs the dense OLMo-2-7B, from the same lab and era) we compared four set-ups:
- one "generalist" agent, told to cover security, performance and usability;
- one agent with the plain prompt "Review this change.";
- three role-primed agents (security, performance, first-time user) in separate contexts, merged by a fourth;
- three neutral agents in separate contexts, merged the same way.
- The neutral team needs describing exactly. Each of its three agents got a different wording of the same plain request: "Review this change.", "Look over this code modification." and "Please take a look at this change." It is not one prompt run three times.
- That matters because we ran at temperature 0. On the OLMo pair, which ran greedy decoding in Hugging Face transformers, that is fully deterministic: the same prompt gives the same output every time (we checked, 34 of 34). So on that pair the three neutral agents differ only in how the request was worded. They are three differently worded passes, not three independent tries. The qwen pair ran through Ollama and was not fully deterministic at temperature 0: only 1 of 40 same-prompt runs matched.
- We also ran a larger, less well-matched pair (qwen3-30b-a3b vs qwen3-14b).
Every review was graded blind against the ground truth: two independent passes by one model, an arbiter from a stronger model on every disagreement, and a 10% hand check. The grading rules were frozen before we looked at a single result.
Finding 1: personas do move the router, but only a little
The personas are not imaginary to the model. A security prompt shifts routing by up to twice as much as paraphrase noise, in up to two-thirds of Granite's layers. The shift is the same when we reword the persona, so the model is responding to the role, not to the exact words.
But look at the size. Under every prompt we tried, 96-98% of the experts chosen for each token were the same. The personas nudge the router at the margin; they don't send the model to a different part of itself. In OLMoE, about half of the nudge came from the persona prompt simply being longer than the neutral one.
Finding 2: switching off the "security experts" didn't hurt security
If the security persona works because of the experts it favours, removing those experts should make it worse at finding security bugs.
So we found the experts the security prompt over-uses, picked by a rule fixed in advance, and masked them while the model wrote its review. For comparison we also masked three random sets of the same size.
Security catches did not drop. With the "security experts" masked, OLMoE caught as many security defects as before, and within the spread of the random masks.
The numbers are small and the intervals wide. But the one result the expert story needed most didn't appear.
Finding 3: MoE models didn't gain more from teams
Measured against one generalist agent, as we had planned:
- On the dev code changes, OLMoE gained +0.10 to +0.17 and OLMo-2 gained +0.06.
- On the held-out changes, OLMoE gained nothing and OLMo-2 gained +0.10 to +0.40.
- On the UI flows, the two were indistinguishable.
The MoE model never gained more than its dense partner. Role teams did no better than neutral teams. The pair where roles did seem to add something, qwen, is also the one we trust least: its MoE member is a "thinking" model that never finished its reasoning within our token limits, even when we tripled them.
Finding 4: most of the "team gain" was the generalist prompt doing badly
Here is the catch in comparing teams with a "check everything" agent. On the dev code changes, one agent with the plain prompt "Review this change." beat the generalist on all four models, by up to 23 points. Across all our sets and models, the plain prompt did better in 9 of 10 comparisons. The generalist's checklist named security, performance and usability, and the plain request did better anyway.
So we measured the teams again, this time against that plain single agent:
- On code changes, the teams added almost nothing. Merged team reports came within -10 to +10 points of the plain single agent on all four models, and every interval includes zero. The held-out changes showed 0 to +30 points, on only five items.
- The logic-bug result we first reported went away. On the 14B model, logic-bug catches had risen from 6% with one generalist to 69% with three separate agents. But one plain agent already caught 62%. The generalist's checklist simply never mentioned logic.
- On the UI flows, three separate passes did find more, but only before the merge. Their raw reports, simply concatenated, caught 13 to 26 points more friction than one plain agent, with three of four intervals clear of zero. After a fourth agent merged them, that gain was gone. The raw reports also carried about twice the false alarms.
Most differences here are small, and with 20 items or fewer per set, a gap under about 20 points can't be told apart from luck. We give every number with its interval in the full report.
So what did we learn?
It wasn't the experts. Personas nudge an MoE router, but only at the margin. Removing the experts they favour didn't hurt, and MoE models gained no more from teams than dense ones did.
A "check everything" prompt is a weak way to ask. Most of what looked like team lift was the generalist doing worse, not the team doing better.
Separate passes may still help, and we haven't tested that properly yet. On the matched pair our neutral team was three wordings of one deterministic model, so it couldn't tell us whether independent tries help. That is the next experiment: the same prompt run three times with sampling, in separate contexts, against the same reviews in one shared context, on larger models.
Where roles probably do matter
We tested one kind of role: a different system prompt, with every agent reading the same text. Roles plausibly matter when they change what an agent can see or do:
- a blind beta tester who uses the running product without the source;
- a QA agent that runs whole-app test suites instead of reading the diff;
- an agent on a different model, or one tuned for a different job.
Those roles bring different evidence into the review, not just a different wording. None of them was tested here.
What we'd tell a team building agent workflows
- Don't hand one agent a checklist of everything. In our data a plain, focused request beat the "check everything" prompt in 9 of 10 comparisons. Give an agent a clear request, not a list of every concern at once. (We didn't test single-job agents on their own, so we can't say how narrow is best.)
- Don't count on persona wording to do the work. On the matched pair, a role team was no better than a team with neutral wordings, and neither beat one plain agent on code changes. If you want roles to matter, give them different inputs or tools, not just different words.
- Keep each agent's raw findings, not only a merged summary. Where separate passes found more, the merge step threw it away. Keep the raw reports as evidence and treat the merge as a filter you can check, not a free summary. Expect more false alarms in the raw reports.
- Don't pick a model for "expert routing" to make teams work. We saw no sign that MoE architecture amplifies the benefit of a team.
What this study can't tell you
- Every agent was the same model. Mixing models, or using ones tuned for different jobs, is untested here.
- The models are small. Our MoE models activate 1-3 billion parameters per token. That is what fits on one 16 GB GPU, and two of them sat close to the floor of our benchmark. Frontier models may well behave differently. A follow-up on larger models is under way.
- The benchmark is small. It holds 20 dev changes, 9 UI flows, and 8 held-out items, so we can see large effects but not modest ones.
- Several arms were cut short by token limits. On the dense OLMo-2 model this worked against the team set-ups.
- Every number here comes from one run at temperature 0. Repeat runs at a non-zero temperature are under way, and we will publish their results as an update to this post. They keep the three neutral wordings, so they test how stable these numbers are, not whether independent tries help.
The verdict follows the data. Personas really do change how an MoE model routes its work, just not by much, and not in a way that explains why teams scored higher. Most of that came from the way the single agent was asked.
Hardware used
Everything except grading ran on one workstation:
- GPU: one NVIDIA RTX A4000 with 16 GB of VRAM. CUDA 12.8.
- CPU: Intel Xeon w7-2495X, 24 cores and 48 threads.
- RAM: 64 GB.
- OS: Windows 11 Pro for Workstations.
- Software:
- Python 3.13, PyTorch 2.11 and Hugging Face Transformers 5.24 for the OLMoE, Granite and OLMo-2 runs and the router measurements;
- Ollama 0.40.18 for the qwen3 runs.
Grading used Claude Sonnet 5.5 and Claude Opus 5.5, run as Claude Code agents on Anthropic's hosted service, not on this machine. Every model under test ran locally on the GPU above.