Can Large Models Plan and Small Models Execute? A Practical Guide to Cost Savings
This article examines whether layered orchestration—using a strong reasoning model for planning and a lighter, faster model for execution—actually reduces total cost in AI-assisted software development. It explains the difference between static and dynamic routing, walks through a typical four-stage task flow, and breaks down the four cost categories teams often overlook: API calls, time, rework, and human review. You will also find a practical cost formula, key engineering details for reliable handoffs and validation, and a deployment checklist to evaluate whether this pattern is worth adopting.
1. Why Layered Orchestration Keeps Coming Up
Once AI coding tools become part of the daily development workflow, one reality is hard to avoid: models with strong reasoning ability are expensive per token and slow to respond, while lightweight models are cheap and fast but tend to lose the thread in complex contexts. This is why the idea of layered orchestration keeps resurfacing: let a more capable model scout ahead and break down constraints, then hand the relatively mechanical work—modifying code, running tests—to a faster model, returning control to the strong model whenever it gets stuck.
For teams that ship real requirements every day, there is only one criterion that matters: does this mechanism genuinely lower total cost (money + time + rework), or does it simply trade quota savings for a different kind of hassle? This article does not target any specific product. Instead, it abstracts the mechanism into a general engineering problem and offers a practical approach to evaluation and design.
2. Static Routing vs. Dynamic Routing
Many early tools did perform model selection, but it was static routing: at the start of a session, they would “guess” the difficulty once based on the requirement description, then lock the entire task to a single model. This works fine for single-turn Q&A, but it breaks down easily in real code-modification scenarios. A request may look like simply adding a field to an interface, only to reveal halfway through that it involves a legacy state machine, backward compatibility with old data, and a gradual rollout strategy. The lightweight model assigned at the outset cannot cope, and the whole thing has to be redone.
The key change in dynamic routing is moving the decision point from “once” to “many times”: within the continuous progress of the same task, the model is selected dynamically by stage and risk, with a fallback path preserved. The decision no longer relies only on the length of the requirement text, but on objective signals during execution, such as:
- Change scope: number of affected files, number of cross-module dependencies, whether public interfaces are touched;
- Verification results: unit test pass rate, number of static-check warnings, whether the build passes repeatably;
- Progress slope: whether errors converge after several consecutive attempts, or oscillate repeatedly at the same spot;
- Risk level: whether data migration, permission models, payment, or audit chains are involved.
One common misconception needs clearing up: enabling this kind of mode does not mean spinning up multiple independent agents in parallel behind the scenes, nor does it automatically provide isolation for code worktrees, local databases, or server ports. Parallel multi-branch work is a separate capability (usually handled by a dedicated parallel collaboration mechanism), while layered orchestration within a single session always maintains the same agent, focused on passing the “plan—code—debug” baton smoothly. Conflating the two is the root cause of many teams’ unmet expectations.
3. A Typical Flow Within a Single Task
Take a bug fix on an interface that already has unit tests. Layered orchestration typically unfolds in four stages:
- Planning (read-only): the strong model browses the codebase in read-only mode, maps upstream and downstream dependencies, clarifies ambiguous requirements, and produces a plan with explicit constraints and “replanning trigger conditions.” If the user is merely asking how a function is implemented or requesting a pure code review, the strong model answers directly and the process ends—the execution model is never invoked.
- Execution (lightweight): the lightweight model modifies code and adds or adjusts tests according to the plan, then runs the existing tests and static checks. This stage emphasizes “small commits, easy rollback.”
- Verification and fallback: when verification signals fall short (for example, the same test fails repeatedly, or changes begin spreading to unrelated files), control returns to the strong model to locate the root cause and revise the plan if necessary.
- Convergence and delivery: once the change is confirmed minimal and tests pass stably, the task is wrapped up and a context summary is saved for reuse in later sessions.
Illustrative strategy pseudocode (unrelated to any specific product):
def run_task(task):plan = strong_model.plan(task, mode="read_only")if plan.is_answer_only:return plan.answerfor step in range(MAX_STEPS):patch = fast_model.apply(plan, task)report = verify(patch) # unit tests + static checks + buildif report.passed and not report.scope_creep:return finalize(patch, report)if should_replan(report, step): # failures not converging / changes spreading / high-risk chains touchedplan = strong_model.replan(task, plan, report)return escalate_to_human(task, report)
4. The Full Cost Picture: Four Easily Overlooked Categories
Whether “cheaper” holds depends on whether you account for all costs. At minimum, include these four:
- API call cost: the strong model is billed only for planning and fallback, usually the smallest share, though its input context can be very long;
- Time cost: the lightweight model responds fast, but switching, context rebuilding, and repeated verification dilute the gains;
- Rework cost: repeated modifications caused by an unclear plan are the most expensive hidden expense;
- Human cost: the time spent on review, answering questions, and final sign-off often exceeds the model bill itself.
A practical measurement formula:
Total cost = Σ(tokens per model × unit price)+ task duration × hourly labor cost+ rework rounds × average fix cost per round+ human interventions × average time per intervention
For evaluation, run an A/B test: take the same batch of real requirements, with one group fixed to a single model and the other using layered orchestration, and compare “total cost per requirement” and “first-pass success rate” rather than just token unit price.
5. Engineering Details That Decide Success
- Make context handoffs structured: the strong model’s output should include the goal, constraints, files involved, verification commands, rollback points, and replanning conditions, so the lightweight model does not have to guess.
- Layer prompts and caching: put stable system prompts and repository conventions in a reusable prefix, and place volatile information later, improving cache hit rates and reducing repeated input overhead.
- Automate verification: tests, static checks, and builds are the “sensors” for routing decisions; without them, dynamic switching is just blind switching.
- Ensure observability: log the reason for each switch, stage durations, and failure types, and build dashboards and alerts (which can rely on general-purpose logging and monitoring/alerting capabilities).
- Set security boundaries upfront: high-risk chains (data migration, permissions, secrets) should not be handed to the lightweight model for automatic execution by default; human confirmation should be mandatory.
6. Deployment Checklist
- Can the task be split into three stages—plan, execute, verify—with objective acceptance criteria for each?
- Are explicit replanning trigger conditions defined, rather than falling back on gut feeling?
- Is there a minimal rollback unit and clean workspace isolation?
- Are first-pass success rate and total cost per requirement tracked, rather than just unit price?
- Are human gates set for high-risk changes?
- Are task summaries and prompt templates saved so the next task is cheaper?
7. Conclusion
“Large models plan, small models execute” is sound in principle: it uses expensive reasoning to buy certainty in the plan, then cheap execution to complete the mechanical labor. But it is not an automatic money-saving switch—the gains come from clear plan handoffs, reliable automated verification, and strict risk boundaries; otherwise, the saved quota is paid back in the form of rework and human intervention. Build the measurement framework and verification system first, then talk about routing strategy—that is the sound order of operations.
