Multi-Agent Collaboration: Let Strong Models Decide and Lightweight Models Execute
This article explores how multi-agent collaboration optimizes large language model development by separating decision-making from execution. It covers the orchestrator and executor division model, task routing rules, collaboration workflow design, cost evaluation methods, and practical implementation recommendations to improve efficiency and reduce costs.
1. Why One Model Shouldn’t Do Everything
Teams integrating large language models into development often assign every task to a single model. This approach has three main drawbacks.
First, cost and task difficulty mismatch. File search, log filtering, and classification require stable rule execution rather than top-tier reasoning. Using an expensive model for these is like having a senior architect take meeting notes.
Second, context filled with invalid information. Codebases, build logs, and test outputs are often lengthy. A single model handling both decision-making and detail processing will quickly fill its context window with raw materials, leaving less space for critical judgments.
Third, single-point bottlenecks. All tasks queue up for the same model, preventing parallel execution. The more tasks, the longer the wait.
Therefore, the key issue isn’t selecting the strongest model, but organizing multiple models to collaborate effectively.
2. The Orchestrator and Executor Division Model
The core principle of division: the orchestrator makes judgments, and the executors carry out the work. Break a complex task into clearly bounded subtasks and assign them to agents of different capability tiers. Common roles fall into four categories.
| Role | Typical Responsibilities | Model Selection Principle | Output Format |
|---|---|---|---|
| Lead Orchestrator | Task decomposition, key decisions, core code design, final acceptance | Strongest reasoning, highest cost | Task list, decision log, acceptance conclusion |
| Execution Worker | Parallel development, independent feature implementation, well-bounded coding | Stable coding ability, high cost-effectiveness | Code changes, unit tests |
| Information Organizer | File retrieval, log reading, classification, field extraction, test result summarization | Fast, low cost, stable rule execution | Structured summary, index, report |
| Advanced Coordinator | Large-scale refactoring plans, architecture planning, cross-module research | Strong long-context and complex reasoning | Design document, migration plan |
These four roles don’t have to coexist simultaneously. Small teams can start with just the orchestrator and execution worker. As task volume grows, gradually add the information organizer and advanced coordinator tiers.
3. Task Classification and Routing Rules
To make this division effective, clear routing rules are needed to determine which tier handles each subtask. Evaluate task difficulty across four dimensions:
- Ambiguity: Are requirements clear, or are there multiple valid implementations? Higher ambiguity requires stronger models.
- Scope of impact: Does the modification cross multiple modules or interfaces? Larger scopes require unified decisions.
- Verifiability: Can results be automatically verified via tests, type checking, or rules? Highly verifiable tasks suit execution workers.
- Context scale: How much material needs reading? Tasks with heavy materials but light judgments suit information organizers for initial compression.
Routing logic can be written as the following pseudo-code:
function route(task):if task.ambiguity == HIGH or task.scope == CROSS_MODULE:return LEADif task.type in [SEARCH, LOG_PARSE, CLASSIFY, EXTRACT, REPORT]:return LIGHT_WORKERif task.verifiable and task.boundary_is_clear:return EXECUTORreturn LEAD // Default to orchestrator when uncertain
Defaulting to the orchestrator is a conservative strategy. It slightly increases costs but prevents weaker models from making bad decisions on vague requirements.
4. Collaboration Workflow Design
A complete tiered collaboration workflow typically includes four phases.
1. Decomposition
Upon receiving a goal, the orchestrator outputs task cards. Each card includes goal description, input materials, expected output, allowed file scope, and acceptance criteria. Specific task cards minimize execution deviations.
2. Dispatch and Execution
Dispatch tasks without dependencies in parallel. Each worker receives only the context needed to finish its task, not the entire history. This controls costs and reduces irrelevant information interference.
function orchestrate(goal):plan = lead.decompose(goal) // Generate task card listbatches = group_by_dependency(plan.tasks)results = {}for batch in batches:futures = []for task in batch:worker = pick_worker(task) // Select executor by routing rulesfutures.append(async_run(worker, task.spec, task.scope))for f in futures:results[f.task_id] = validate_schema(f.await())return results
Tasks within the same batch run in parallel, while batches advance sequentially based on dependencies. Concurrency should be set according to conflict risks, not just maximized blindly.
3. Aggregation and Compression
Information organizers merge execution results into structured summaries. For example, test failure logs are compressed into “failed cases, error types, suspected related files.” The orchestrator can determine next steps by reading just the summary.
4. Acceptance and Rollback
The orchestrator checks against the task card’s acceptance criteria. Failed tasks can be handled in one of three ways:
- Redispatched to the same type of executor with specific feedback;
- Broken down further before retrying;
- Taken over by the orchestrator directly.
Set a limit on rollback attempts. Exceeding it suggests issues with task decomposition or acceptance criteria, requiring a return to phase one for replanning.
5. Cost Evaluation Method
Many teams compare model costs by unit price, which is incomplete. Actual total cost can be broken down as follows:
Total Cost ≈ Σ (Input/Output usage per call × respective model unit price) + Coordination overhead + Rework cost
Coordination overhead covers the orchestrator’s usage in generating task cards and aggregating results. Rework cost covers usage from re-executing failed validations. If the rework rate in a tiered approach is high, the cost savings might be offset.
A/B testing is recommended: select representative tasks, complete them using a single model and a tiered approach respectively, and record three metrics: total usage cost, first-pass success rate, and end-to-end duration. The tiered approach is only proven effective if these metrics collectively outperform the baseline. Specific savings depend on task types, codebase size, and model pricing. Teams should rely on their own test data rather than directly applying others’ conclusions.
6. Risks and Considerations
Tiered collaboration improves efficiency but introduces new engineering risks.
- Information distortion during transfer. If the orchestrator’s task card is vague, the executor will implement based on its own understanding. Solution: standardize task card templates with mandatory key fields.
- Concurrent modification overwrites. Multiple executors changing the same file cause conflicts. Solution: divide boundaries by file or module, and use version control branches to isolate changes.
- Lightweight model misjudgments. Information organizers might miss crucial log lines. Solution: implement sample reviews or retain original line numbers in summaries for traceability.
- Prompt injection. Code comments, web content, and log texts might contain malicious instructions. Treat these as data, not commands. Tool calls should follow the principle of least privilege.
- Insufficient observability. Log every call’s model, usage, duration, and result. Without this data, identifying which tier failed or optimizing routing rules continuously is impossible.
7. Implementation Recommendations
Tiered collaboration doesn’t need to happen all at once. Follow this sequence:
- Tally existing task types and proportions to find repetitive, rule-based work. These are prime candidates for migrating to the lightweight tier.
- Choose two or three models corresponding to orchestration, execution, and information organization. Model selection should reference official documentation and the team’s own test results.
- Establish a fixed evaluation set containing typical requirements, defects, and refactoring tasks to compare different approaches.
- Run the workflow sequentially first. Once task cards, summary formats, and acceptance criteria are stable, gradually increase concurrency.
- Regularly review failed cases and adjust routing rules and task card templates.
8. Conclusion
The value of multi-agent collaboration lies in separating judgment from execution, allowing each phase to use matching capabilities and costs. Model capability remains important, but the real differentiator for teams is likely the quality of task decomposition, workflow design, and evaluation systems. These are engineering practices requiring continuous investment and iteration.
