A Practical Guide to General LLM Evaluation and Multi-Agent Collaborative Development
This guide explores practical strategies for evaluating general Large Language Models (LLMs) and implementing multi-agent collaborative development. It covers shifting the evaluation focus from natural responses to actual task completion, building reproducible benchmarks, designing effective multi-agent workflows, managing parallel development, and optimizing costs. By understanding these principles, developers can transform LLM capabilities into reliable engineering outcomes.
I. Shifting from “Natural Responses” to “Actual Task Completion”
When evaluating general Large Language Models (LLMs), developers often form their first impressions based on expression: whether explanations are clear, language is natural, and ambiguous requirements are understood. While these factors affect user experience, they are insufficient to prove that a model is suitable for complex engineering tasks.
A model might excel at explaining code yet miss boundary conditions during actual modifications; it might generate a seemingly complete implementation but fail to handle dependencies, run tests, or fix failures. Therefore, the evaluation focus should shift from “how does this response look” to “can it consistently deliver acceptable results under explicit constraints.”
For development scenarios, capabilities can be broken down into four levels:
- Comprehension: The ability to extract requirements, identify ambiguities, and distinguish between mandatory constraints and optional goals.
- Implementation: The ability to modify code based on existing structures rather than rewriting an implementation detached from the engineering context.
- Validation: The ability to design effective tests, analyze error causes, and check for regressions after fixes.
- Collaboration: The ability to use tools, preserve task states, accept feedback, and exchange reliable information with other execution units.
These four levels do not always improve simultaneously. Especially in long tasks, the model’s own reasoning capability must be evaluated separately from the maturity of the peripheral execution system.
II. Building Reproducible Evaluations Instead of Relying on Single Experiences
1. Replace Scattered Q&A with Real Tasks
If the goal is to assist development, the evaluation set should come from actual work rather than just algorithm problems or short code generation tasks. Representative tasks include:
- Fixing bugs with stable reproduction steps;
- Adding features to existing modules and supplementing tests;
- Refactoring duplicated logic while maintaining external behavior;
- Troubleshooting exceptions caused by cross-module calls;
- Organizing structural documentation and modification suggestions for an unfamiliar codebase.
Each task should be accompanied by the initial code state, runtime environment, allowed modification scope, and acceptance criteria. Otherwise, even if two tests use the same prompt, incomparable results may occur due to differences in dependency versions, file states, or tool permissions.
2. Separately Record Subjective Experience and Objective Results
Natural language and easy-to-understand explanations are valuable experience metrics, but they cannot replace engineering acceptance. It is recommended to record the following information separately:
| Evaluation Dimension | Key Observation Points |
|---|---|
| Correctness | Whether functionality meets requirements and boundary conditions are fully handled |
| Stability | Whether there are obvious quality fluctuations across multiple runs |
| Engineering Quality | Whether modifications are concise and follow existing project conventions |
| Validation Quality | Whether tests can uncover real defects rather than just proving the code runs |
| Delivery Efficiency | Time required from start to acceptance completion |
| Manual Burden | Number of corrections, supplements, and reworks required by developers |
| Overall Cost | Comprehensive investment in model invocations, tool execution, and manual review |
When evaluating failure cases, distinguish the source of failure: whether it is a model comprehension error, lack of environment permissions, unstable tests, or the execution system failing to pass results correctly. Attributing all failures to the model will mislead selection and optimization directions.
3. Maintain Statistical Caution with High Success Rate Conclusions
A 100% pass rate in a specific task set only indicates that the model performs well under that set and its test conditions; it cannot be directly extrapolated to general reliability.
Further inspection is needed: Is the sample size sufficient? Are the tasks representative? Do they include multiple random runs? Was manual correction involved? Are the success criteria too lenient? For small-sample evaluations, the task scope and uncertainty should be clearly reported to avoid interpreting local achievements as broad capability guarantees.
III. Multi-Agent Collaboration: Value Comes from Division of Labor, Not Quantity
A single agent usually needs to handle requirement comprehension, code reading, solution planning, modification, and testing simultaneously. As task duration increases, key constraints are easily overwhelmed by a large amount of intermediate information, leading to repeated exploration, missed requirements, or deviation from goals.
The multi-agent collaboration approach assigns different responsibilities to multiple execution units and maintains overall consistency through structured states and collaboration mechanisms. A general organizational structure includes:
- Coordinator Agent: Maintains goals, task dependencies, interface agreements, and acceptance criteria.
- Implementation Agent: Completes specific code modifications within defined limits.
- Validation Agent: Runs checks, designs counterexamples, and reviews modification results.
- Integration Phase: Aggregates modifications, resolves conflicts, and completes overall regression.
However, multi-agent systems are not inherently superior to single-agent ones. If tasks are minimal, modifications are highly coupled, or goals remain unclear, adding execution units will only expand communication costs. Multi-agent systems are better suited for long-cycle tasks with clear work boundaries, independent sub-tasks, and explicit validation paths.
Furthermore, multi-agent systems cannot completely eliminate context decay. They merely shift information maintenance from a single conversation history to task records, message events, and delivery artifacts. Without reliable state management, multiple agents can still misunderstand each other.
IV. Parallel Development Requires Clear Boundaries and Interfaces First
1. Divide Tasks by Responsibility, Not by Mechanically Splitting Files
Dividing labor solely by directories or files easily leads to multiple agents separately modifying the same business logic. A more robust approach is to split tasks around responsibilities and dependencies. For example, when implementing a batch processing feature, tasks can be assigned for requirement and data structure drafting, input validation, core processing logic, exception path testing, and integration checks. However, if subsequent implementations depend on undecided data structures, interfaces should be frozen before initiating parallel work.
Task descriptions should at least include:
- Inputs and expected outputs;
- Allowed and prohibited modification scopes;
- Mandatory interfaces and compatibility constraints;
- Dependent prerequisite tasks;
- Verifiable acceptance criteria;
- Reporting methods for failures or blocks.
Clear task contracts reduce redundant labor and help coordinators determine if the work is genuinely complete.
2. Isolated Workspaces Reduce Conflicts, But Do Not Eliminate Them
Allowing each execution agent to use an independent code workspace prevents multiple processes from overwriting files simultaneously and facilitates saving their respective modifications and test evidence.
However, file isolation does not equate to semantic isolation. Even if two workspaces do not modify the same file, they might alter different aspects of the same interface, ultimately causing integration errors. Therefore, parallel development still requires a unified base version, shared interface agreements, and running overall tests post-merge.
A robust sequence is typically:
- Fix the common starting state;
- Clarify task ownership and interface contracts;
- Independently execute modifications and local validation;
- Submit change summaries and inspection results;
- Integrate in dependency order;
- Execute regression validation on the integrated overall state.
Passing tests in isolated workspaces cannot be equated with the final delivery passing acceptance.
V. Shared Messaging Mechanisms Need Both Tracking and Information Compression
An append-only message log is suitable for saving task assignments, decisions, blocks, and validation results because historical events are not overwritten by subsequent operations, facilitating auditing and replay.
An effective collaboration message should typically include the sender, associated task, event type, dependency information, and artifact location. For critical decisions, the rationale and applicable scope should also be recorded.
However, message logs cannot accumulate indefinitely, nor should every agent read the entire history each time. Doing so increases context consumption and amplifies the impact of outdated information.
Collaboration information can be divided into three layers:
- Event Log: Preserves the complete process for tracking and auditing;
- Current State: Displays task owners, progress, blocks, and the latest valid decisions;
- Essential Context Summary: Provides the specific executor with the information needed to complete the current task.
Summaries should be traceable to original evidence and must not present speculation as fact. Modified or revoked decisions must be clearly marked as invalid to prevent old messages from continuing to influence execution.
Idle agents can also adopt an event-trigger mechanism, resuming execution when relevant messages appear. This helps avoid continuous polling but does not mean zero overall cost: restoring context, reading messages, and running tools still incur overhead.
VI. Independent Validation Should Proactively Seek Failure Conditions
If implementation and validation share the exact same assumptions, testing easily becomes a self-confirmation of the implementation. A more reliable approach is to give the validation phase different inspection objectives.
While implementers focus on “how to meet requirements,” validators primarily check:
- What inputs could break the implementation assumptions;
- Which exception paths are not covered;
- Whether there are permission, concurrency, or resource management issues;
- Whether modifications broke existing behavior;
- Whether test assertions are strict enough;
- Whether there are differences between the validation environment and the delivery environment.
Validation artifacts should not just be “pass” or “fail” but should include execution scope, failure evidence, uncovered risks, and environmental limitations. Checks that could not be executed must be clearly marked, not packaged as passed.
Independent validation also does not mean another agent can guarantee correctness. For high-risk systems, deterministic checks, manual review, and necessary security testing are still required. Model reviews can supplement checks but should not replace reliable engineering gates.
VII. Observability Keeps Parallel Execution Controllable
When multiple agents run simultaneously, developers need to know what they are doing, why they are doing it, and when intervention is necessary. Therefore, the collaboration interface should not just display more conversations but should present task structures and execution evidence.
Practical observation views include:
- Task Board: Shows pending, executing, blocked, pending validation, and completed work;
- Member Status: Shows the responsibilities, current actions, and recent activities of each execution unit;
- Dependency Graph: Reveals prerequisite relationships and block sources between tasks;
- Execution Trace: Links modifications, inspection results, and key decisions;
- Manual Intervention Entry: Allows pausing tasks, adding constraints, or vetoing high-risk operations.
For operations like deleting data, modifying permissions, or executing irreversible changes, independent approval should be set. The faster parallel execution runs, the faster errors can propagate; post-hoc replay cannot replace proactive control.
VIII. Cost Optimization Must Target Effective Delivery
The cost of a multi-agent system is not just the text volume of the final answer; it also includes repeated reading, state synchronization, tool calls, failure retries, and manual review.
The overall investment can be understood through the following relationship:
Overall Cost = Model Invocation Cost + Execution Environment Cost + Collaboration Overhead + Manual Review and Rework Cost
Parallel processing may reduce wait times but increases total invocation volume. Therefore, optimization should center on “cost per verifiable task” rather than solely pursuing less text consumption.
Practical measures include:
- Identify whether parallel tasks exist before deciding to enable collaboration;
- Have executors read relevant files and essential summaries to reduce redundant loading;
- Set budgets and stop conditions for exploration and retries;
- Pause and clarify if goals or interfaces are unclear;
- Use deterministic flows for stable and easily checked steps;
- Allocate more review resources to high-risk changes.
Discounted prices or short-term invocation fees cannot replace long-term cost assessment. What truly affects production efficiency is completion quality, stability, and rework burden.
IX. Capability Improvements in Embodied Tasks Require Layered Understanding
General LLMs have application potential in task planning, environment description comprehension, and action sequence generation, but these capabilities do not equate to reliable physical execution capabilities.
Embodied systems typically involve perception, state estimation, task planning, action generation, low-level control, and safety constraints. A model’s progress in high-level planning cannot directly prove its ability to meet real-time control, collision avoidance, or fault handling requirements.
When evaluating these capabilities, clarify:
- Whether tasks are completed in a simulated or real environment;
- Whether environmental states are provided by sensors or manually organized;
- Whether the model controls high-level actions or low-level continuous control;
- Whether preset action libraries, external controllers, and safety protections exist;
- Whether success depends on human intervention.
Achieving a high completion rate in a limited, structured environment can prove effectiveness on specific tasks but cannot be extrapolated to comprehensive reliability in open physical environments. When involving actual equipment, permission limits, safety boundaries, and failure fallback mechanisms should be maintained.
X. Adopt a Progressive Implementation Route
Teams can first establish a baseline with a single agent before gradually adding collaboration capabilities, rather than deploying a complex parallel system from the start.
Phase 1: Collect real tasks, clarify acceptance criteria, and record quality, time spent, and manual correction situations.
Phase 2: Add independent validation to existing workflows and observe whether defect discovery capabilities and delivery stability improve.
Phase 3: Select tasks with clear boundaries for limited parallelism, and establish isolated workspaces, message logs, and integration checks.
Phase 4: Complete cost budgets, operational approvals, audit replays, and failure recovery before considering expanding the scope of use.
The ultimate judgment criterion is not the number of agents or the impression of a single demo, but whether acceptable results can be continuously produced at an acceptable cost and risk. General LLMs are responsible for enhancing comprehension and reasoning, while engineering systems handle constraints, validation, and delivery; only by designing both synergistically can capability improvements be transformed into stable development gains.
