Planner and helpers: splitting agent work across model sizes

Modern coding and research agents rarely use one model for everything. A strong model plans and makes the important decisions, while lighter helpers search files, read documentation, summarise results or run checks. Developers frequently debate whether those helpers are too weak: a common complaint is that a top-tier main agent sends a small model to do web searches and then needs several rounds of follow-ups because the helper missed what mattered.
This article looks at that design choice in general terms. It explains why agents split work this way, which subtasks a smaller model handles well, which ones it tends to fumble, and how to measure the trade-off in your own system. The examples use an OpenAI-compatible client, with this site's keyless free-ai model playing the role of an inexpensive helper.
Frequently asked questions
What is a subagent?
A subagent is a separate model call, or a chain of calls, that the main agent launches to handle a specific piece of work, such as searching a codebase or reading a web page. It returns a result, usually a summary, that the main agent uses to continue.
Why not use the strongest model for everything?
Cost, speed and usage limits. Large models are slower per token and use more of your quota. Many subtasks, like extracting a list of files or summarising a log, do not benefit from the extra capability, so spending the budget there is wasteful.
How does model routing differ from model fallback?
Routing chooses a model for each task on purpose, every time. Fallback switches to another model only when the preferred one fails. They are often combined: route lighter tasks to a small model and fall back to it for everything during an outage.
Which subtasks are safe to delegate?
Well-defined, verifiable ones: locating files, extracting fields, formatting, translating short passages, summarising text that the main model will not need verbatim, and checking outputs against simple rules.
Which subtasks should stay with the main model?
Tasks where judgement determines the outcome: deciding what to search for, reading ambiguous results, planning changes across files, and anything where a missed detail is costly and hard to detect later.
Why do helper summaries cause follow-up rounds?
A summary is lossy. If the helper does not know what the main agent cares about, it keeps the wrong details. The main agent then asks again, sometimes several times, which can cost more than doing the task directly.
Which is better: a medium model for helpers or the smallest available?
It depends on the task. For mechanical work the smallest model is often fine. For research and reading tasks, a medium model usually avoids enough follow-ups to pay for itself. Measuring both on your own tasks is the only reliable answer.
Can I choose the helper model in commercial agents?
Some tools let you configure which model handles subagents, others do not. Check the tool's settings and documentation. If you build your own agent, you have full control.
Why agents delegate at all
An agent that works on a real task makes dozens or hundreds of model calls. If each one goes to the largest model, the job is slow and expensive, and on subscription plans it eats into usage windows quickly. Delegation lets the main model stay focused on planning and decisions while helpers do the bulk reading and searching in parallel.
There is also a context benefit. A helper can read thousands of lines of code or several web pages and return a short summary, so the main model's context stays small and focused. Without that, the main context fills with raw material and quality drops as it grows.
Parallel work
Several helpers can search different parts of a codebase at the same time, which shortens wall-clock time for broad exploration tasks.
Context protection
Helpers absorb large inputs and hand back condensed results, keeping the main model's working memory available for the actual problem.
Tasks small models handle well
Smaller models are good at tasks with clear inputs and clear success criteria. If you can describe exactly what a correct output looks like, and ideally check it with code, a small model will usually deliver. These tasks make up a large share of what agents do in practice.
A practical test: if you could hand the subtask to a careful intern with written instructions and expect a correct result, a small model is probably fine. If the intern would need to ask what you really meant, keep it with the main model.
Verifiable output is key
When the result can be checked automatically, a small model's occasional mistake is caught and retried, so its lower accuracy costs little.
Counting stays in code
Even for helpers, exact counts and arithmetic belong in code. The reasons are covered in why models get counting wrong.
- Finding files or functions that match a name or pattern.
- Extracting specific fields from logs, configs or documents.
- Reformatting data between JSON, CSV and Markdown.
- Translating short, plain passages.
- Classifying items into a fixed set of categories.
- Checking that an output meets simple rules, such as length or required keys.

Tasks that go wrong when delegated
The trouble starts with tasks that look mechanical but depend on judgement. Web research is the classic example: deciding which results are relevant, noticing that a page is outdated, and spotting the one sentence that answers the real question are all judgement calls. A small model often returns a plausible summary that misses the point, and the main agent only discovers this later.
Code review and debugging are similar. A helper asked to check whether a change is safe may miss subtle interactions that a stronger model would catch. The cost of a missed issue is much higher than the savings from using a cheaper model.
Research needs judgement
Choosing what to read and what to ignore is the hard part of research. Delegating it to a weak model saves tokens on the reading and loses them on the follow-ups.
Silent misses are expensive
A helper that returns nothing useful is easy to handle. A helper that returns a confident, incomplete answer leads the main agent in the wrong direction.
Writing briefs that helpers can follow
Many delegation failures are really briefing failures. The main agent knows what it is looking for, but the helper receives a short instruction without that context. Better briefs dramatically improve small-model results: state the goal, what has already been ruled out, what form the answer should take, and what details matter.
Asking helpers to return structured results instead of prose also helps. A list of file paths with one-line reasons, or a JSON object with specific fields, is easier for the main agent to use and easier to validate than a paragraph of summary.
Say why, not just what
A helper told to find the configuration loader because startup fails on missing keys will look for different things than one told only to find the configuration loader.
Ask for evidence
Request line numbers, quotes or URLs alongside conclusions. The main model can then verify quickly instead of re-doing the search.

A minimal router in code
If you build your own agent, routing can be as simple as a function that picks a model based on the task type. The sketch below sends extraction tasks to a free helper and reasoning tasks to a primary model configured through environment variables. Both use the OpenAI client format, so any compatible provider can fill either role.
In this example the helper is the keyless endpoint on this site, which serves free-ai, an independent open-weight model of about 35B parameters. It is not Claude, and the site is not affiliated with Anthropic. Its per-IP limits, one request per second with bursts of three and two in parallel, suit a helper role with modest volume.
Route by task type
Label each call with what it does. The label, not the content, decides the model, which keeps routing predictable and easy to change.
Escalate on failure
If a helper's output fails validation twice, send the task to the primary model instead of retrying indefinitely.
import os
from openai import OpenAI
helper = OpenAI(base_url="https://api.apiclaudekeyfree.com/v1", api_key="none")
primary = OpenAI(base_url=os.environ["PRIMARY_BASE_URL"], api_key=os.environ["PRIMARY_KEY"])
ROUTES = {
"extract": (helper, "free-ai"),
"format": (helper, "free-ai"),
"plan": (primary, os.environ["PRIMARY_MODEL"]),
"review": (primary, os.environ["PRIMARY_MODEL"]),
}
def run(task_type, prompt, max_tokens=800):
client, model = ROUTES[task_type]
r = client.chat.completions.create(
model=model, max_tokens=max_tokens, temperature=0,
messages=[{"role": "user", "content": prompt}])
return r.choices[0].message.content
files = run("extract", "List every file path mentioned in this log:\n...")
plan = run("plan", "Given these files, propose a fix:\n" + files)Measuring whether delegation pays off
The only honest way to judge routing is to measure total cost and quality per completed task, not per call. A helper that is cheap per call but causes three extra rounds with the main model may cost more overall. Track how many main-model calls each task needs, how many tokens each model uses, how long the task takes and whether the result is correct.
Run the same set of tasks with different routing setups and compare. Often the result is mixed: delegation helps for some task types and hurts for others, and the right answer is a routing table rather than a single rule.
Count follow-ups
The number of times the main agent re-asks a helper or redoes its work is the clearest signal that a task is delegated to a model that is too weak.
Time matters too
Smaller models are faster per token, as discussed in measuring slow model output. Speed gains can justify routing even when cost savings are small.

Usage limits change the calculation
On subscription plans with rolling usage windows, the question is not only money but how long you can keep working. Users often report hitting limits quickly when many agents run on the top model in parallel. Routing helpers to a smaller tier, or to a different provider entirely, stretches the window.
Be aware that some tools count usage across models in ways that are not obvious, so a cheaper helper may still draw on the same quota. Check your provider's current documentation on how usage is counted rather than assuming.
External helpers do not touch your quota
A helper on a separate backend, such as a free endpoint, does not consume your primary provider's usage at all. The trade-off is its own limits and lower capability.
A sensible default setup
For most agent workloads, a good starting point is to keep planning, code changes and review on the strongest model you can afford, delegate mechanical extraction and formatting to a small model, and use a medium model for research and reading. Then measure and adjust.
Where accuracy on hard tasks matters most, a top commercial model clearly beats a mid-sized open model, and no routing trick changes that. Routing is about spending that capability where it makes a difference, not about replacing it.
Start conservative
Delegate only the clearest mechanical tasks at first. Expand delegation as your measurements show it works.
Revisit after model updates
New model versions change the balance. A small model that struggled last quarter may be good enough now, or the reverse.

Send a test request to the keyless, OpenAI-compatible endpoint on the home page and see how it fits your project.