When Should a Coding Agent Use Subagents?
Subagents are helper agents a coding agent can hand parts of a task to. When delegation helps, when it backfires, and what we learned writing the rubrics.
Subagents are helper agents that a main AI coding agent can hand parts of a task to. The main agent briefs each helper, the helpers work on their pieces, often in parallel, and the main agent combines the results. Done well, that lets a coding agent take on bigger jobs faster. Done badly, delegation makes things worse.
On a recent evaluation project, our engineers built tasks and scoring guides to test when it actually helps, much as we did for context compaction in long-running agents. Our answer, after many runs: delegate when the work can really be shared and each helper gets a clear, detailed brief. Don't split work that's tightly linked, and don't reward extra process steps for their own sake.
How do you test whether delegation helps?
Run the same task alone, with subagents, and with a written delegation plan, then compare the results. Each task was a real coding or systems task, run many times under different conditions. The agent ran alone with subagents turned off, then with subagents turned on and a short note about delegation. For part of the project, it also ran following a delegation plan written by our engineers.
The task's own tests decided pass or fail. Separately, each run was scored on how well it delegated, against a scoring guide (a rubric, or list of checks) our team wrote. An automated grader applied the guide at scale, and our engineers checked that its scores actually separated good runs from bad ones before trusting any of them.
For a task to count, delegation had to beat working alone, and a written plan had to beat plain delegation. A tie didn't count.
Planning blind
Our engineers wrote each plan from the task instructions only. No runs, no code, no tests. That's hard on purpose. It forces them to think like an engineer planning work before starting it.
Our engineers wrote the scoring guide later, once the runs were in. It covered when to delegate, which kind of helper to use, how to brief it, how to shape the work, how to bring the results together and how to check the final result.
Why do some delegation plans fail?
Mostly because of thin briefs, work that is not really shared, and checks that reward process over results.
Process rewards backfired. When our engineers compared check scores with pass and fail results, checks that rewarded extra steps, like reading the spec first or sending a review helper, matched failing runs more often than passing ones. More steps isn't the same as the right steps.
Longer briefs won. Comparing winning and losing plans, our engineers found that in plans that beat plain delegation, the briefs given to helpers were about half again as long, and they named the exact sections of the instructions each helper needed.
Vague briefs lost badly. The contrast was sharp. On one task, a plan with short, thin briefs passed one run out of eight while plain delegation passed seven. On another, a plan passed eight out of eight, against five for plain delegation. Our engineers traced the gap to the weak plan's briefs, which were simply too short for a helper to work from.
The lonely parent. Reading the runs of one losing plan, our engineers found the main agent did the hardest part itself while three of its four helpers sat waiting. Delegation only helps if the work is actually shared.
Don't split what's tightly linked. In the runs our engineers read, plans that split closely linked work across different helpers tended to go wrong, because the pieces didn't fit back together.
Rubrics that tell runs apart
A scoring guide is only useful if it separates good runs from bad ones. Our rule was simple: passing runs had to score higher on average than failing runs, and if they didn't, our engineers rewrote the guide. We also learned to avoid checks that test two things at once or lean on vague words like "proper". It's the same lesson we wrote about in How to Write a Fair Grading Rubric for AI Answers, and the first point gets a full section in How to Write an RLHF Rubric for Coding Tasks.
Later in the project, every task moved to one shared delegation note, and our engineers focused fully on the scoring guides. That sharpened one more rule: a check that only restates the delegation note tells you nothing about the run, so every check has to test something the run could get wrong. We folded that into our checklists and kept going. Scope shifts like this are normal in evaluation work, and a team with written checklists absorbs them quickly.
FAQ
What are subagents in AI coding tools? Helper agents that a main coding agent can send parts of a task to, so work can be split and done in parallel.
Does delegation always make coding agents better? No. In the runs our engineers scored, it helped when briefs were clear and the work was truly shared. It hurt when briefs were vague or tightly linked work was split apart.
What makes a good delegation brief? In the plans our engineers wrote, the winning briefs gave enough detail for the helper to work alone, including the exact parts of the instructions it needed.
What is a delegation plan? A short written plan that says which parts of a task to hand to helpers and what each brief should contain. Our engineers wrote them from the task instructions alone, before seeing any runs.
Testing How Your Agent Delegates?
Our engineers write delegation plans, scoring guides and the checks that prove a guide separates good runs from bad ones. If your lab or model team needs multi-agent evaluation data built to a clear quality bar and delivered on schedule, our Model Evaluation and Rubrics team can help.
Get in TouchKeep reading
All articles- AI & MLMay 14, 2026
How to Write a Fair Grading Rubric for AI Answers
An LLM as a judge grading rubric should check the facts an answer states, not how it was written. The rules our engineers use to keep AI scoring fair.
- AI & MLMar 31, 2026
How to Write an RLHF Rubric for Coding Tasks
An RLHF rubric for coding tasks turns reviewer judgment into consistent scores. How we design one from scratch: atomic criteria, anchors, weights and a pilot.
- AI & MLNov 18, 2026
What Do AI Training Data Writers and Reviewers Do?
What does an AI training data reviewer do? Checks tasks for correctness, fairness, difficulty and clean grading. Why our team does both writing and review.