← Back to Blog

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:

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.

Experiment 2: run the teams.

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.

How much routing changes between prompts, layer by layer, compared with the paraphrase noise band (grey)
How much routing changes between prompts, layer by layer, compared with the paraphrase noise band (grey)

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:

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:

What three separate agents add over one agent with the plain prompt, with 95% confidence intervals. Filled: the merged team report. Hollow: the three agents' raw reports, unmerged.
What three separate agents add over one agent with the plain prompt, with 95% confidence intervals. Filled: the merged team report. Hollow: the three agents' raw reports, unmerged.

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:

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

  1. 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.)
  2. 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.
  3. 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.
  4. 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

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:

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.