Capability Tiers and Task Orchestration in Multi-Agent Coding
After generative coding enters software engineering, planning, execution, and review need different capabilities. This article explains how to match model tiers to those roles, isolate context to cut wasted tokens, and keep delivery quality with structured task tickets and an acceptance loop.
After generative coding enters software engineering, teams quickly hit a familiar problem that tools now amplify: along the same task chain, “thinking it through” and “doing it right” demand different abilities. Planning needs global constraints, risk judgment, and acceptance criteria. Execution needs local edits, interface alignment, and runnable increments. Scheduling and acceptance sit in between: they split work and also stop quality from sliding. If those duties sit on one model tier or one conversation history, typical outcomes follow: the plan looks sound but the code drifts from constraints, or expensive reasoning repeatedly reads a huge repo and chat log while execution still produces patches that need rework.
This article frames the issue as capability tiers and task orchestration in multi-agent coding. It does not bind to a vendor or named model. It discusses matching general capability tiers to roles, and using context isolation to reduce token waste and raise delivery quality.
Why one session and one tier fail
Coding tools often dump repo summaries, file slices, terminal output, and chat history into one context. That helps “understand the current state,” but it does not always help “execute correctly.” There are three reasons.
First, planning and execution optimize different objectives. Planning maximizes constraint coverage (architecture boundaries, compatibility, rollback, test criteria). Execution minimizes the change surface (only the files that should change, style preserved, compile and unit tests passing). Optimizing both with the same long history makes the model more likely to “forget” hard constraints later: shortcuts, weakened tests, silently changed APIs.
Second, long context has diminishing returns. Repeatedly sending a high-reasoning tier through the whole repo and full dialogue raises cost quickly. For a local task such as fixing a boundary condition in one function, extra information is often noise. Execution needs the current task spec, relevant file slices, and verification commands—not the entire chat.
Third, quality slippage chains and amplifies. Once execution emits a low-quality patch, later scheduling that splits work from the wrong artifact writes the error into the next plan. Teams then pull “senior” review back in, spending a second round of expensive reasoning to absorb a cheap execution failure—typical inversion of cost and value.
Capability tiers: planning, scheduling, execution, specialist sensing
A more stable approach is to assign tiers by duty, not by “use the strongest model everywhere.”
Planning (high reasoning, moderate context, constraint-first)
Turns requirements into verifiable task packages: goals, non-goals, file scope, interface contracts, test commands, and rollback on failure. Planning should write few concrete patches and more “definitions of done.” Output should be structured (task list, dependency order, acceptance checklist) so downstream agents consume it without ambiguity.
Scheduling and acceptance (mid-to-high reasoning, moderate history)
The middle layer: split the plan into parallel or serial execution tickets, choose files to open, check results against the checklist, and send work back or merge it. This layer may be somewhat verbose; its value is blocking bad patches, not writing all the code. It should explicitly forbid the execution layer from expanding scope on its own.
Execution (execution-oriented, short context, no long history)
Each run gets one ticket: target files, allowed interface changes, relevant code slices, commands that must pass. Deliberately omit full dialogue and whole-repo summaries so stale discussion does not steer the work. Optimize for getting it right once, a readable diff, and reproducible tests. If the task needs terminal operations or UI/image understanding (layout vs. a design, error screenshots), put that “sense and act” capability on execution or specialist nodes—not on planning issuing verbal directions.
Specialist nodes (on demand)
Log interpretation, performance profiling, security scanning, dependency upgrades, and similar work should be independent short tasks. Input is a slice, not full history. After completion, only a conclusion summary returns to scheduling so the main context stays clean.
The analogy is ordinary management: planning sets direction, the middle layer assigns work and accepts it, execution does the job inside a narrow permission set. The middle layer may look “talkative,” but if execution constraints hold, throughput and quality both improve.
Context strategy: what to read and what not to
Orchestration is less about “who is smarter” and more about “who reads which bytes.”
- Planning may read: requirements, architecture notes, a map of key modules, known defect lists. It need not ingest all source every time.
- Scheduling may read: planning output, a summary of the last acceptance failure, workspace state (often just the head of failing test logs).
- Execution reads only: the ticket plus precise slices of related files. Default: no chat history, no unrelated directories.
- Review feedback: if execution fails repeatedly or hits an architecture boundary, send “failure summary + key diff + original planning constraints” to planning or scheduling—not another full-repo read.
High-reasoning tiers then stop paying a “read-everything tax” for local edits, and execution tiers stop generating in long noise. Total tokens may exceed “unlimited cheap execution, never review,” but they are usually below “high reasoning on every full read,” and rework drops.
Acceptance loop: move quality into the ticket
Without executable acceptance, layering is just a different way to waste effort. Each ticket should include at least:
- Definition of done: behavior that changes, and what must not change (for example public API signatures).
- Verification commands: the smallest set of build, unit test, and static checks; which log range to keep on failure.
- Change ceiling: allowed paths; modules that must not be refactored.
- Rollback conditions: which failures require restore rather than “try again.”
Scheduling trusts the checklist, not the execution layer’s self-report. If execution needs more context, it should request a “slice expansion”; scheduling approves the extra read. Execution must not browse the whole repo itself.
An illustrative ticket (fields only, not a product API):
task_id: T-142goal: Fix out-of-bounds paging on empty resultsscope: src/page.ts, src/page.test.tsinvariants: do not change public function signaturesverify: test page.emptyon_fail: restore the workspace and report the first 80 lines of failure logs
Execution produces a diff from that structure; scheduling runs verify; on failure, log slices go back to scheduling or planning. Execution does not keep guessing in the same long session.
When to break the layers
Layering is not dogma. Escalate in these cases:
- Cross-module contract changes, data migrations, or security boundaries: planning should review directly and may even provide a patch skeleton.
- Two consecutive execution failures with the same cause: the ticket lacks information. Add slices or split smaller tasks; do not give execution more “free play.”
- Interactive environments (browser, desktop, devices): put sensing and operations on execution nodes. Planning only defines success screenshots or a state machine, instead of describing the UI in prose over and over.
If a team already has a stable “high-reasoning command, execution-type landing” path, the middle layer can be compressed—but only if execution has no long history, acceptance is automated, and failure summaries are structured. The middle layer is a buffer where automated acceptance does not yet cover everything.
Engineering notes for production
Capability tiers must land in the repo and pipeline, not only in chat habits. Suggested practice: store tickets in the repo or a work-item system; run execution in an isolated workspace; default to committing only diffs that pass verify; budget-alert coding sessions so one tier is not used to “chat through the repo.” On the cloud side you can store failure-log slices in object storage, chain planning–execution–acceptance with a message queue, and watch rework rates and command-failure types with logs and alerts. Those are generic capability categories, not a vendor-specific product shape.
Avoid invented claims that “a given model is always stronger or cheaper.” Choose tiers with small-sample A/B on the same tickets: first-pass rate, diff size, review comment count, and token use. Let data, not reputation, set the default orchestration.
Summary
Waste in generative coding is often not “the model is not strong enough,” but a mismatch of duty and context: high reasoning that rereads everything, weak execution that retries forever, then high reasoning again to clean up. Make planning emit verifiable task packages, make scheduling checklist-style QA, keep execution on short slices with no long history, and attach environment sensing to execution when needed. That is a repeatable engineering method. The middle layer need not be the smartest, but it must block bad patches. Execution need not be talkative, but it must get the job right inside a narrow permission set. After layering, cost and quality can be managed together instead of canceling each other in repeated full-repo rereads.
