Multi-Model Tiered Scheduling: An Architecture for AI Coding
This article explains why running a single high-capability model in a continuous loop tends to fail on medium and long coding tasks, and how a three-tier scheduling architecture solves the problem. You will learn the roles of the planning, dispatch and acceptance, and execution layers, why passing context on demand is cheaper and more stable than full-context replay, and a practical checklist covering task card templates, context isolation, acceptance loops, failure fallback, and observability.
1. The Problem: Why the “Infinite Ammo” Pattern Spirals Out of Control
A common practice with AI coding tools is to keep the most capable model running in a continuous loop: it plans, writes code, and repeatedly re-reads the entire repository and the full conversation history. This looks like overwhelming firepower, but on medium and long tasks it quickly exposes three problems.
First, context pollution. Correct conclusions from the planning phase get gradually diluted by a large volume of low-quality execution output, and the model starts to “think it through at the top and break it at the bottom.”
Second, a distorted cost structure. The high-capability model is spent re-reading long histories and long task descriptions, while the actual code is produced by weaker roles. The result is an inversion: the model that needs to think little ends up doing the work, and the model that needs to think a lot ends up supervising it.
Third, amplified rework. When execution output is unacceptable, the only option is to feed the whole repository and conversation history back to the “big model” for review. Token consumption multiplies, and the review itself is bounded by the context window.
2. The Core Idea: Split the Monolithic Loop into Three Layers of Responsibility
A more robust approach is to introduce a middle management layer and split the workflow into three tiers:
- Planning layer: a strong-reasoning model produces the approach, boundaries, and acceptance criteria within high-quality context.
- Dispatch and acceptance layer: handles task decomposition, assignment, and result verification. This is the quality gatekeeper.
- Execution layer: completes single-point coding tasks under no history and a narrow context.
A schematic division of responsibilities looks like this:
Plan(strong reasoning, full context)↓ task card(goal/constraints/acceptance points)Dispatch(medium reasoning, task-level context)↓ atomic task(single file/single function)Execute(weak reasoning, no history)↓ output + self-check resultAccept(medium reasoning, sees only the diff and acceptance points)
The key point: context is delivered on demand, not passed through in full. What the execution layer receives should not be the entire project, but a task card with clear boundaries.
3. Why Tiering Is Both Cheaper and More Stable Than an Infinite Loop
Cost side: the high-capability model handles one planning pass and a small amount of acceptance work instead of repeatedly reading long histories. Because the execution layer works with very short context, its per-call cost drops significantly. Overall token consumption is usually higher than the peak of the “infinite ammo” pattern but lower than running the strongest model at a low reasoning setting for the entire task, because it avoids re-reading the whole repository.
Quality side: once execution tasks are atomic, the blast radius of an error is limited to a single point, and the acceptance layer can decide by looking only at the diff and the acceptance points, without re-reading the full history.
Complex scenario side: when a task involves UI operations, image recognition, or other steps that require multimodal perception, having the dispatch layer orchestrate while the execution layer focuses on implementation is more reliable than a single model handling everything serially.
4. Implementation Checklist
- Templatize the task card: include the goal, the allowed input file scope, the items that must not be changed, and the acceptance commands.
- Isolate context: the execution layer must not carry conversation history and receives only the task card and necessary file fragments.
- Close the acceptance loop: use executable checks (such as unit tests and static analysis) as the pass condition rather than subjective judgment.
- Define a failure fallback strategy: after two consecutive acceptance failures, fall back to the dispatch layer for re-decomposition instead of continuing to “force a fix” in the same context.
- Ensure observability: record an input summary and output diff for each layer so you can tell whether the problem lies in planning or in execution.
5. Conclusion
The essence of multi-model collaboration is not piling up models but trading organizational design for stability. Put strong reasoning in the decision seat, put weak reasoning in the execution seat, and connect them with task cards and an acceptance mechanism. This controls cost while keeping output quality high. If you already have a mature orchestration environment, letting a strong-reasoning model direct a low-reasoning one at a high reasoning setting achieves a similar effect. The constant is always separation of responsibilities and context governance.
