Multi-Agent Division of Labor: Separating Coordination from Execution
A practical multi-agent setup does not rely on one stronger model to do everything. It separates communication, planning, execution, and acceptance into replaceable roles, connected by a stable task contract, isolated context, and evidence-based review.
Multi-agent work is not “find one stronger model to handle everything.” It means splitting communication, planning, execution, and acceptance into replaceable responsibilities. Many teams fail early not because the model cannot write code or explain ideas, but because they bind requirement alignment, planning, implementation details, and human-facing explanation into a single inference pass. As tasks grow more complex, the context fills with plans, code, errors, and side conversation at the same time. Latency rises, and cost grows with it. A more stable approach is for the front office to turn human language into a task with clear boundaries, for the back office to complete hard logic in an isolated environment, and for the front office to summarize the result against acceptance criteria.
Why an all-purpose single model hits the ceiling first
A single-model workflow looks simple: one conversation runs from requirements to delivery. It fits short tasks, such as changing a function, explaining an error, or filling in an interface description. Once the work involves cross-module changes, mathematical derivation, long-document constraints, or repeated trial and error, the problems concentrate.
First, context pollution. Planning text, historical discussion, failed attempts, and final code mix together. Later reasoning must keep revisiting old material, which wastes context length and makes it easy to revive an approach that was already rejected.
Second, capability and cost do not match. Everyday alignment and writing explanations do not need the heaviest reasoning budget, but complex proofs, algorithm boundaries, and concurrency correctness cannot be forced through lightweight replies. Using the same reasoning intensity throughout is either slow and expensive, or not stable enough at the critical points.
Third, responsibility boundaries are unclear. Implementation starts before requirements are aligned, and there is no independent acceptance afterward. Errors bounce between “I think this is what you meant” and “the code is already like this.” For people, that shows up as repeated prompt rewriting. For the system, it is a missing role design and handoff protocol.
The goal of division of labor is therefore not to pile on more agents. It is to separate “make it clear” from “make it correct,” and connect them with checkable handoff artifacts.
A minimal architecture: coordinator and executor
A practical minimal system needs only two roles, plus a shared task contract.
The coordinator faces people. Its job is to clarify vague requirements, identify constraints, break down work, decide whether to dispatch a task, accept results, and translate technical outcomes into readable conclusions. It should respond quickly, ask good follow-up questions, and maintain the overall plan, but it should not personally complete every heavy computation by default.
The executor faces the task, not casual conversation. It receives a converged goal, inputs and outputs, prohibitions, and acceptance conditions, then completes algorithms, derivations, refactoring, or tests in a relatively clean context. It does not guess business preferences, and it does not write long explanations for the end user.
People remain the decision makers: confirming scope, accepting trade-offs, and approving high-risk changes. Agents reduce friction in communication and implementation; they do not replace accountability.
One collaboration can be viewed as four steps.
- Align. The coordinator turns spoken requirements into goals, non-goals, inputs, outputs, constraints, and unknowns. Unknowns are either asked about or explicitly marked as assumptions.
- Dispatch. A subtask is created only when the work exceeds the complexity the coordinator should handle. Simple documents and lightweight edits stay in the front office to avoid pointless second calls.
- Execute. The executor sees only the material required for that subtask, produces code, a derivation, or test results in an isolated context, and attaches a self-check note.
- Accept and report. The coordinator checks the result against the acceptance conditions. If it fails, the task is returned with concrete failure evidence. If it passes, the result is compressed into a conclusion the user can judge directly.
The task contract matters more than adding roles
Role names can change. The handoff format should not be casual. Each subtask should include at least these fields:
- Goal: one sentence describing what the world should look like when the work is done.
- Scope: modules that may be changed, interfaces that must not be touched, and compatible behavior that must be preserved.
- Inputs: relevant specifications, existing code snippets, data samples, and error logs. Provide only what is necessary.
- Outputs: the expected file-level change description, key function behavior, and test or derivation conclusions.
- Definition of done: observable conditions, such as “given three classes of input, the output satisfies the invariant,” “new tests cover the boundary,” or “the complexity explanation matches the implementation.”
- How to return on failure: missing information, conflicting constraints, or an inability to finish within the current boundary should be reported explicitly, not guessed through to completion.
The structure below shows the responsibilities. The field names are not tied to any specific platform:
task:goal: add retryable failure classification to a batch workflownon_goals:- do not change external interface fields- do not introduce a new storage dependencyconstraints:- keep the existing idempotency key rules- errors must distinguish transient failure from permanent failureinputs:- current processing flow description- failure samples and expected classificationdone_when:- three sample classes are classified correctly- retry count and backoff policy have an upper bound- caller-visible error semantics are provided
The value of this contract is replaceability. Today’s executor can be another model, a set of rules, or a human review. As long as the inputs and outputs stay stable, the coordination logic does not need to be rewritten.
Dispatch on demand: finish locally by default, escalate only as an exception
Sending everything out doubles latency and cost, and it also makes the coordinator lose its feel for simple problems. A practical policy is for the coordinator to finish work directly by default, and to escalate only under explicit trigger conditions.
Work that should stay in the front office includes requirement clarification, option comparison, interface descriptions, document restructuring, small naming and comment changes, and explaining execution results to people.
Work that should go to the executor includes core algorithms, state machines, concurrency and consistency, numerical or symbolic derivation, cross-file refactoring, and logic that needs multiple rounds of self-testing before it converges.
Triggers should be written as rules rather than feelings. Examples include an expected change spanning more than one module, an invariant that must be proved, a history that has already exceeded a maintainable length, or a previous direct implementation that failed tests. The rules must be auditable. Otherwise, “automatic dispatch” becomes unexplained random forwarding.
Dispatch should also limit permissions. By default, the executor can read only the code and specifications required for the task, and the write scope is declared in advance. Steps involving secrets, production data, or external side effects should not enter an automatic loop. They should produce a change list for human confirmation. Isolation is not distrust of the model; it reduces the blast radius.
Acceptance must be independent of “it says it is done”
An executor’s own statement cannot count as acceptance. The coordinator should check at least three layers.
Specification consistency: whether the output answers the goal and whether it touches non-goals. Extra refactoring, unauthorized interface changes, and silent removal of validation all count as failure.
Evidence consistency: whether the code, derivation, or tests actually support the conclusion. If a boundary is claimed to be handled, the corresponding case should be identifiable. If complexity is claimed to improve, the data-scale assumption should be identifiable.
Expression consistency: reports to people should distinguish facts, assumptions, and recommendations. For example, “it passed on the given samples” must not be stated as “all inputs have been proved correct.”
When returning work, do not merely say “redo it.” Attach the failed acceptance item, a minimal counterexample, and the allowed modification scope. The executor’s next round of context then stays clean, instead of receiving the entire failed conversation.
Context and cost
A long context is not unlimited memory. A useful approach is layered retention: globally, keep only goals, decisions, and open questions; create subtask context per run, and after it ends keep only the summary, diff, and acceptance record. Raw reasoning can go into logs, but it should not automatically enter the next prompt.
Cost control also comes from division of labor. Lightweight rounds handle conversation and documents. Heavy rounds cover only hard tasks, and the definition of done limits retries. Set a maximum number of dispatches, and escalate to a person after that limit, so two agents do not keep revising each other until the work diverges.
Do not evaluate this architecture only by whether a single answer reads smoothly. Look at end-to-end measures: requirement rework count, first-pass acceptance rate, lines changed by people, time from question to a mergeable result, and call count per task. If these measures do not improve after dispatch, the trigger conditions are too loose or the task contract is too vague.
Common pitfalls in implementation
Too many roles. Giving review, security, testing, and documentation each its own agent often only lengthens serial waiting. Get coordination and execution working first, then split out checks that are truly independent.
A contract that is too thin. Writing only “make this feature good” forces the executor to guess preferences, and acceptance cannot be objective.
Context that is too fat. Stuffing an entire repository description into every subtask “just to be safe” returns the system to single-session pollution.
Missing human gates. When automatically changing external state, bulk data, or permission policy, stop at a reviewable patch and explanation instead of executing directly.
Treating model differences as the architecture. Models will iterate; the division-of-labor protocol should stay stable. What is reusable is the task boundary, isolated context, acceptance evidence, and on-demand escalation, not the temporary feel of a particular model.
How to start
Pick a real task that is repeatedly reworked, such as “add failure classification to an existing flow while keeping the interface unchanged.” First write a one-page task contract by hand. Let the coordinator handle only alignment and acceptance, and limit implementation to one isolated execution. Record whether work was dispatched, whether acceptance passed, and how much people changed. After three to five similar tasks work, turn the trigger conditions and definition of done into a team standard.
When communication, planning, and hard logic no longer crowd into the same generation, the system becomes explainable: people know what is being asked, the executor knows what must not be done, and the reviewer knows why something can be called complete. That is closer to sustainable engineering practice than chasing one all-purpose conversation.
