LLM Model Selection: Choose the Right Tier for Each Task
Choose a default LLM tier based on your team’s real development tasks, not just benchmark rankings. This article explains how to define merge-ready quality, evaluate models on repository changes, route difficult or high-risk work to stronger models, and manage cost, latency, and capacity without weakening review standards.
The Question Is Not “Which Model Is Strongest?” but “Which Should Be the Default?”
When upgrading models, many teams instinctively switch to a larger, more expensive flagship tier. Flagship models are often more reliable at multi-step reasoning, cross-module refactoring, and clarifying ambiguous requirements. That does not mean they should handle every request.
Much of everyday development involves localized changes, adding tests, writing API documentation, or updating a call to match an existing style. For these tasks, additional model intelligence may offer limited marginal value, while latency, quotas, and failed attempts matter considerably.
A better goal is to choose a default tier that meets quality requirements at an acceptable cost across your team’s actual task mix. Escalate to a stronger tier only when complexity, risk, or failure signals cross a defined threshold.
This is capacity planning, not simply a cost-cutting exercise. The same budget can support more iterations, with less queuing and rate limiting.
Define “Good Enough” Before Comparing Scores
Public benchmark rankings can help you understand the broader landscape, but they should not determine purchasing decisions on their own. Benchmarks differ in their tasks, scoring methods, and pricing assumptions. Exam-style evaluations can also overestimate a model’s ability to solve isolated problems while underestimating what it takes to produce changes that can land on the main branch.
Write acceptance criteria as verifiable requirements rather than saying a model “feels better.”
A merge-ready change should generally meet at least these conditions:
- Its scope matches the request, without unnecessary rewrites of unrelated modules.
- It passes existing builds, static checks, and critical tests. New logic has corresponding tests or an explanation of why it is not tested.
- Its style, error handling, and dependency direction follow repository conventions.
- It introduces no undeclared secrets, external endpoints, or behavior that cannot be audited.
- Its diff is small enough for a maintainer to review in a reasonable amount of time.
On the same task set, a flagship tier and the next tier down may achieve very similar pass rates while differing severalfold in cost per task. Similar results do not make them interchangeable: the remaining quality gap may be concentrated in a small number of difficult cases.
The appropriate conclusion is “use the lower tier by default and escalate difficult cases,” not “the lower tier can replace the flagship everywhere.”
Evaluate Real Repository Changes, Not Just Demos
Build a sanitized evaluation set from historical merged changes in your repository. Use stratified sampling rather than randomly selecting a hundred trivial comment edits:
- Low difficulty: A single file, clear intent, and existing tests.
- Medium difficulty: Two or three modules, with internal conventions to follow.
- High difficulty: Unclear behavior, concurrency, permissions, data migrations, or public interface compatibility.
For each sample, record the input, paths the model may modify, tests that must continue to pass, and a human judgment of whether the result is merge-ready.
Keep prompts, context budgets, and tool permissions fixed when comparing tiers. Otherwise, apparent model differences may simply reflect differences in prompt engineering.
Calculate cost per completed, assessable task, including retries, oversized context, and human rework. Looking only at the price of a single call understates both the rework a flagship model may avoid by getting a task right the first time and the lower tier’s scale advantage on simple tasks.
Do not invent precise score differences to fill out a report. Until the internal comparison is complete, record only observed trends: which task categories the lower tier handles reliably enough to merge, and which categories still fail systematically.
Set a Default Routing Policy
The default tier should handle most interactions: small edits after code completion, compiler fixes based on error messages, boilerplate tests, turning design notes into API comments, and renaming within a restricted directory.
Clear boundaries in the prompt can be more effective than switching to a more expensive model. Specify allowed paths, prohibit new dependencies, and require a list of files to be changed before any edits are written.
Reserve escalation for signals such as:
- Two consecutive attempts still fail the same test suite.
- The change affects permissions, financial operations, data deletion, or externally visible contracts.
- The relevant code exceeds the default context budget, and the model still cannot reconcile the expected behavior.
- A reviewer identifies the work as an architectural change.
Escalation is routing, not failure. Record its reason in the task so the team can later determine whether the default tier needs adjustment.
De-escalation matters too. If the stronger tier merely repeats a patch the default tier already produced correctly, or generates more text without adding valid assertions, it should not continue consuming the higher-priced quota.
The following illustrative routing policy depends only on task characteristics, not on any vendor API:
Input: task description, change paths, risk labels, recent failure countIf risk labels include any of {permissions, financial operations, data deletion, public contracts}or failure count >= 2:Select the stronger tierIncrease the context limitRequire verification steps before editingElse if change path count <= 3 and a failing test case already exists:Select the default tierInclude only the failure trace and relevant files in contextElse:Select the default tierUse a short contextOutput must include:List of modified filesVerification commandsUnresolved uncertainties
Use labels in your existing task system to implement this policy. There is no need to introduce a branded orchestration product. Generic object storage, logging services, monitoring, and alerts can support context assembly, logs, and quota tracking. Keep routing decisions available for later review rather than leaving them buried in chat histories.
Prompts and Context Often Matter More Than Model Tier
For the same model, providing an entire repository often works less well than supplying the failing tests, relevant type definitions, and an existing implementation that illustrates an exception to the usual style.
Excessive context can dilute constraints while increasing cost and timeout risk. Practical steps include:
- Use retrieval or dependency relationships to identify candidate files, then have a person confirm the allowlist.
- Give “what not to change” the same priority as “what to change.”
- Ask the model to provide verification commands first. Run them and return
stderrwhen they fail, rather than asking the model to guess the final patch in one attempt. - Review generated diffs for patterns requiring human intervention, including unusually large deletions, new network calls, and weakened assertions.
Apply these steps to both tiers. A stronger model reduces the number of guesses; it does not remove the responsibility to review.
Keep Quality Gates Outside the Model
A model can draft a patch, but it cannot declare its own work ready to merge.
Enforce quality gates on the repository side: formatting, static checks, unit tests, necessary integration tests, and human review of critical paths. Automation establishes only that a change did not fail the supplied checks. It does not establish that the requirements were understood correctly.
Retain two-person review for public interface and data changes.
If the default tier repeatedly fails the same category of checks, improve the prompt, context, and task decomposition before changing tiers. Many failures come from combining too many objectives in one request. Splitting the work into three steps—clarify why the test fails, change production code, then add regression coverage—can make the lower tier consistently successful.
Evaluate Cost, Latency, and Capacity Together
Cost per task includes model charges, waiting time, and human rework.
When the default tier is cheaper, teams are often more willing to run another round of test feedback, making the interaction cycle faster. If the flagship tier queues or times out, its nominal benchmark advantage may disappear in the delivery timeline.
Allocate quotas by repository or business unit. Give routine work a default-tier allowance, cap stronger-tier usage weekly, and require an escalation reason. The cap should not prevent legitimate use of the stronger tier; it should keep escalation selective and auditable.
Track at least three metrics:
- First-attempt task pass rate.
- Share of tasks escalated.
- Share of outputs requiring substantial human rewriting.
A sustained increase in escalation suggests that the default tier or task decomposition is unsuitable. A high first-attempt pass rate combined with frequent review rejection suggests that automated checks are too weak, allowing the model to consume budget on patches that only appear to work.
Rollout Sequence
- Select a small, stratified sample of recently merged changes and turn them into fixed evaluation cards.
- Compare the default and stronger tiers with the same prompt. Record merge readiness, rework attempts, and relative cost; do not publish precise scores that have not been independently reviewed.
- Assign task categories with stable pass rates to the default tier and document the policy in team guidelines.
- Configure escalation for high-risk labels and repeated failures.
- Review escalation reasons after two weeks. Return tasks that could have been split into smaller units to the default workflow.
Flagship models remain valuable for ambiguous, high-risk work where a single mistake is costly. The default tier, however, should deliver steady throughput: sufficient quality under merge-ready standards, a clear escalation path when it fails, and no order-of-magnitude premium for simple tasks merely because of branding or habit.
Replace “which model has the biggest name?” with “which routing policy has been validated in this repository?” That turns model upgrades into an evidence-based workflow rather than another team-wide change to a default setting.
