Choose Models by Task: A Practical Guide to Multi-Agent Development
Using one high-capability model for every coding task raises cost, hides failure causes, and makes results hard to review. This article explains how to route work across three capability tiers, when to use deep reasoning versus a multi-agent team, and how to split a feature with task cards, scoped context, tool limits, and acceptance checks.
Why “One Model for Everything” Breaks Down
Many teams still treat an AI assistant as a single Q&A entry point. Rewriting a line of copy, investigating a production incident, and designing a cross-module change all go to the same high-capability model. That looks efficient at first, but over time it exposes three problems.
The first is a mismatch of cost and latency. Hard reasoning often needs a longer chain of thought, more context, and more rounds of checking. If high-frequency work such as format conversion and comment completion takes the same path, cost per request rises and queue delay slows interaction. The second is a hidden capability boundary. When a complex task fails, it is hard to tell whether the context was insufficient, the steps were not broken apart, or an independent review was missing. The third is that results are hard to audit. A single long answer mixes the plan, the code, and the conclusion, so reviewers cannot easily see which step introduced a wrong assumption.
A more reliable approach is to treat model selection as an engineering decision rather than brand loyalty. Choose a capability tier based on task risk, context length, whether tool calls are required, and whether the work can run asynchronously. When needed, a coordinator role splits the work across several sub-agents. This layered approach matches the common industry pattern of flagship reasoning, everyday workhorse, and lightweight high-frequency use. In practice, the task contract should decide the route, not a model slogan.
How Three Tiers Map to Real Workloads
Model capability can be abstracted into three tiers. The names describe roles only; they are not tied to any vendor family.
The flagship tier fits work with serious consequences, high ambiguity, and a long cycle: security-related code review, cross-service data-consistency changes, and root-cause analysis that must cross-check multiple logs and change records. Its value is sustaining a longer reasoning chain and stating assumptions when information is missing. It is slower and more expensive, so it should not be the default path.
The workhorse tier handles day-to-day project work: clarifying requirements, designing interfaces, implementing medium-complexity changes, and summarizing documentation. It should approach flagship reasoning quality while keeping cost down through shorter context and clearer output templates. Most work that means “write a runnable skeleton, then let a person fill in the edge cases” belongs here.
The lightweight tier is for frequent, low-risk calls: rewriting titles, generating comments, completing simple functions, and checking format. Speed and unit price come first. If the task involves permissions, money, data deletion, or external publication, it should be upgraded automatically. The lightweight tier should not “finish it while it is here.”
Selection should be fixed in a decision table, not left to the user’s feel:
- If failure could corrupt data, widen permissions, or create a compliance issue, use at least the workhorse tier. Security-related work moves up to the flagship tier.
- If the input exceeds the agreed context threshold, or several specifications must be compared, move up a tier and compress the input with a summary first.
- If the change is local and existing tests can verify it immediately, drop to the lightweight tier and upgrade only if it fails.
- If the task can run in parallel and the subtasks do not write the same file, enter team mode instead of lengthening a single-model monologue.
What Deep Reasoning and Team Mode Each Solve
“Think longer” and “get several people to work together” are not the same thing.
Deep reasoning is a single-executor strategy. Give the model more internal reasoning budget so it lists constraints, rules out paths that will not work, and then proposes an implementation. It fits cases where the problem is already well defined and the difficulty is mainly logical—for example, whether a piece of concurrency control has a race. It cannot automatically supply runtime evidence you did not provide.
Team mode is an organizational strategy. One coordinator agent owns the task graph. Several sub-agents separately gather evidence, draft the implementation, write tests, and perform adversarial review. The coordinator does not do every detail itself. It publishes task cards, collects artifacts, and decides whether to send work back. It fits development with a clear goal but many steps, such as “add idempotency and timeout retry to an API, and add the observation points.”
The two can be combined. The coordinator sends high-risk subtasks to the flagship tier with deep reasoning enabled, and sends copy and examples to the lightweight tier. Without task boundaries, a team only copies one hallucination into several outputs that look busy.
How to Split One Feature
Take “add a retryable external notification to the order flow” as an example. The coordinator should not dump a whole-file patch. It should first write a task graph that can be accepted.
- Collect constraints. Extract facts from existing code and interface notes: timeouts, retries, idempotency keys, and whether failure affects the main transaction. Sub-agents must not invent fields that do not exist.
- Sketch the design. The workhorse tier produces a state machine: persist synchronously, notify asynchronously, send failures to a retry queue, and escalate to a person or an alert after the limit. Describe only states and invariants.
- Draft the implementation. Split by module. One sub-agent changes the caller; another changes the retry consumer. They must not edit the same file at the same time.
- Design tests. Another sub-agent writes cases only from the invariants: repeated notifications do not cause repeated side effects, a downstream timeout does not roll back an already committed order, and alerts include a correlation identifier.
- Review adversarially. A flagship-tier model or an independent reviewer looks specifically for gaps: missing idempotency, retry storms, sensitive data written to logs, and swallowed errors.
- Merge. The coordinator outputs a change note, residual risks, and points that need human confirmation. It does not claim the change is “ready for production.”
A sample task card can be short, but its fields must stay stable:
task_id: notify-retry-01goal: External notification failures can be retried without repeating business side effectsinputs: Existing order sequence, notification interface notes, log field listnon_goals: Do not change the payment state machine; do not add a new external domainowner_role: implementdone_when: The idempotency key spans both the call and the consumer; timeout and attempt count are configurable; critical failures raise an alert
The coordinator accepts only a return that meets done_when. If a sub-agent finds a gap in the specification, it should return a blocking question instead of filling the gap with a guess.
How to Design Context, Tools, and Acceptance
Team quality depends on the evidence you feed in, not on how good the role names sound.
Deliver context in layers. Give specifications and invariants to every role. Give large sections of source only to the role that owns that module. Give production data to the reviewer only after it is redacted. Pasting the whole repository consumes the reasoning budget and can make the lightweight tier edit unrelated files.
Authorize the smallest set of tools. Retrieval, static checks, and test execution can be open. Changing production configuration, releasing, and deleting data stay closed by default. Limit each sub-agent’s shell or edit scope with a directory allowlist. Treat logs and secrets as material that must not leave the environment. Outputs should keep only redacted error types.
Judge artifacts, not tone. Each subtask should leave at least the intent of the change, a note on the key diff, how to reproduce the verification, and risks that were not covered. If tests did not pass, mark the work red. Do not merge it because it is “correct in theory.” At merge time the coordinator does three things: check that every task card is covered, check that roles do not contradict each other, and list as human follow-ups anything the model cannot verify.
Cost, Latency, and Failure Modes
A team is not free parallelism. If subtasks depend on each other’s data, running them in parallel only creates merge conflicts. In practice, finish “collect constraints, then freeze the design” serially, run implementation and test design in parallel, and review serially at the end.
Cap cost with a budget: write down flagship-tier call count, total tokens, and maximum rework rounds in advance. If the lightweight tier fails twice, upgrade it so the team does not keep spinning at the wrong tier. For latency, keep interactive completion on the lightweight or workhorse tier. Put team work that takes more than a few minutes into an async task and notify the developer when it finishes, instead of holding the conversation.
Write common failures into the runbook before they happen. Roles copying each other’s conclusions can look consistent without independent review. The reviewer’s prompt should require “find counterexamples from the specification only,” and should not treat the implementation draft as fact. If the coordinator merges too early, it packages a half-finished result as a plan. Use tests and invariants as the gate. If a sub-agent widens scope and refactors unrelated modules, both non_goals and the directory allowlist should apply. Deep reasoning is not evidence. Model inference cannot replace logs, metrics, and one real call.
A Minimal Loop for Team Adoption
You do not need a full platform on the first try. Start with one kind of work that recurs and has an objective right or wrong answer, such as “add timeout, retry, and idempotency to an internal API.” Fix three-tier routing rules, one task-card template, and one mandatory adversarial review. After ten runs, review which tasks the lightweight tier could have handled, which still failed at the flagship tier because the specification was unclear, and whether the extra time of a team bought fewer rework cycles than a single model.
Keep the metrics plain: the share of tests that pass on the first try, lines changed by humans, escaped severe defects, and cost and wait time per request. Do not conclude with an unverifiable sentence such as “the model got stronger.” Once routing rules, task boundaries, and acceptance artifacts are stable, an agent team becomes part of the development process rather than a longer chat.
