Multi-Agent Collaboration in Practice: A Deep Evaluation of Agent Capabilities in Chinese LLMs
This article presents a practical framework for evaluating AI agents beyond single-turn answer quality, shifting the focus to end-to-end task completion in multi-agent workflows. It covers a five-layer scoring model (task understanding, planning, collaboration, execution, and delivery), techniques for auditing complex skill packages, managing message flow and state consistency across agents, and turning natural language into interactive applications. It also details a four-stage pipeline for converting unstructured financial documents into auditable spreadsheets, strategies for controlling token costs through context budget governance, and how to build reproducible evaluation baselines with a controlled failure-mode vocabulary. Readers will find concrete prompt structures, orchestration code, and acceptance criteria they can apply to any agent framework or cloud environment.
1. From Conversational Q&A to Engineered Execution: Evaluation Criteria Are Shifting
Over the past two years, the dominant yardstick for evaluating large language models was “is the answer correct?”—single-turn accuracy, breadth of knowledge coverage, and strictness of instruction following. But what is actually being deployed into production at scale is a different kind of capability: whether a model can read an existing codebase, decompose it into subtasks, coordinate multiple roles, and ultimately deliver an artifact that runs or can be submitted directly.
This shift has a direct consequence: evaluation based on a single metric such as “response speed” or “single-generation quality” is no longer sufficient. Take multi-agent collaboration as an example. A single task typically passes through requirement clarification, repository scanning, role assignment, parallel execution, result aggregation, and multiple rounds of iterative convergence, involving extensive cross-turn tool calls and state passing. A failure at any stage—a sub-agent repeating work, messages lost between upstream and downstream, context truncated—makes the final result unusable. Such failures often do not surface as “the model answered incorrectly,” but as “the workflow broke” or “the artifact is missing.”
The recommendation of this article is therefore to switch the evaluation perspective from “isolated capability” to “end-to-end task completion.” The scoring dimensions can be broken into five layers:
| Layer | Evaluation Question | Quantifiable Metric |
|---|---|---|
| Task Understanding | Did it read the existing assets correctly? | Accuracy of referenced files/modules |
| Planning | Are the decomposed subtasks reasonable? | Ratio of subtasks to reasonable subtasks |
| Collaboration | Are role boundaries clear and non-conflicting? | Duplicate execution rate, conflict rate |
| Execution | Is each intermediate artifact usable? | Single-step runnability, error localization accuracy |
| Delivery | Can the final artifact be used directly? | First-pass rate, manual rework time |
The advantage of this framework is that it applies both to acceptance testing of an in-house agent framework and to horizontal comparison of different models, without relying on any vendor’s proprietary metrics.
2. Multi-Agent Collaboration: Maintainability of the Skill System Is the Real Barrier
2.1 Runtime Visualization of Complex Skills Is the First Hurdle in Debugging
A well-designed skill package usually contains several sub-agents with distinct responsibilities: one for scanning and indexing, one for content generation, one for validation and revision, and one for aggregation and conflict resolution. Once the number of sub-agents reaches a few dozen, reading configuration files alone is no longer enough to determine the actual execution path—which is precisely where runtime visualization proves its value.
A pragmatic practice is to treat visualization itself as an executable audit task performed by the model: have the model traverse the entire skill directory and produce a structured report that explicitly answers the following questions:
Required audit structure for the model output (usable directly as a prompt template):1. Asset inventory: How many Agent / Skill / tool definitions exist in the directory?2. Dependencies: Who calls whom? Are there circular dependencies?3. Execution path: The complete flow of a typical task (listed on a timeline)4. Role responsibilities: Input contract, output contract, and fallback strategy for each sub-agent5. Risk points: Duplicate execution, context loss, privilege escalation, infinite loops6. Visualization: Presented from two perspectives—flowchart and sequence diagram
It is worth noting that the real difficulty of such audit tasks lies in “faithfulness” rather than “richness.” A model can easily generate an architecture diagram that looks polished but does not match the configuration files. The verification method is simple: randomly pick three nodes from the diagram and check the configuration files to confirm the input/output contracts match; then randomly pick one edge and confirm the call relationship actually exists. This step filters out most outputs that “look professional but are fabricated.”
2.2 Message Flow and State Consistency in Multi-Agent Systems
The core engineering risk of multi-agent collaboration is state management, which concentrates in three problem areas:
Context budget contention. When multiple sub-agents run in parallel, their contexts converge at the aggregation node and easily hit the window limit. There are typically three layers of countermeasures: first, have sub-agents return only “conclusions + evidence reference paths” rather than full text; second, perform semantic deduplication and summary compression before aggregation; third, write large intermediate artifacts (such as full logs or large blocks of source code) to external storage and pass only references in messages.
Overlapping role responsibilities. If two sub-agents are both granted “content revision” permissions, repeated rewriting and mutual overwriting will occur. A sound constraint is the single-writer principle: at any given moment, only one agent holds write access to a given artifact; all other agents may only propose changes, and that agent decides whether to adopt them.
Missing loops and termination conditions. Iterative optimization tasks without a clear convergence criterion can easily fall into infinite back-and-forth. A workable approach is to add three safeguards to the loop: a maximum round limit, a per-round improvement threshold (stop when improvement falls below the threshold), and mandatory hard format validation (such as completeness of structured output fields).
A minimal orchestration skeleton is shown below:
class AgentTeam:def __init__(self, agents, max_rounds=8, min_gain=0.02):self.agents = agents # ordered list of rolesself.max_rounds = max_rounds # safeguard 1: round limitself.min_gain = min_gain # safeguard 2: diminishing returnsdef run(self, task, reviewer):state = {"task": task, "history": [], "artifacts": {}}for rnd in range(self.max_rounds):# parallel execution: each role writes only to its own artifact slotfor agent in self.agents:out = agent.step(state) # input contract validation happens herestate["artifacts"][agent.name] = out["artifact"]state["history"].append(out["trace"]) # keep a traceable record# reviewer role: outputs structured scores and failed itemsreview = reviewer.review(state["artifacts"])if review["passed"]:return stateif review["gain"] < self.min_gain: # converge on diminishing returnsbreakstate["task"] = self._inject_feedback(state["task"], review)return state
The trace field deserves emphasis here: in a multi-agent system, traceability is an engineering property just as important as correctness. When the final artifact does not meet expectations, you need to pinpoint exactly which step, which role, and which input produced the deviation; otherwise debugging costs grow exponentially with the number of agents.
2.3 Generative Deliverables: Turning “Document Interpretation” into an Interactive Interface
In scenarios such as skill authoring, internal knowledge operations, and course or product documentation, a common requirement is “turn a complex piece of logic into a visual page.” The acceptance criteria for such tasks should be far stricter than “it looks nice,” and it is recommended to specify:
- Information completeness: Whether every role, every flow, and every boundary condition in the source appears on the page, with no omissions;
- Structural accuracy: Whether the direction of connectors in the flowchart matches the real call relationships defined in the configuration;
- Readability: Whether there is a legend, whether hierarchical collapsing is available, and whether it remains usable on narrow screens;
- Verifiability: Whether the page annotates the source file path corresponding to each conclusion, making manual traceback easy.
The last point is the most easily overlooked, yet it is the dividing line between a “presentation deck” and an “engineering asset.” Any generative deliverable should carry its own traceability anchors, so that when a conclusion is wrong you can quickly locate the source instead of reviewing everything again.
3. From Natural Language to Interactive Applications: Constraints That Drive First-Pass Success
A task like “generate a runnable 3D interactive scene from a single sentence” is a good litmus test of a model’s engineering ability, because it simultaneously demands spatial layout, event handling, and performance awareness. To improve the first-pass success rate for such requests, the prompt must add the following constraints; otherwise the model easily produces results that “load but are unusable”:
- Define the runtime boundary: State whether it runs in the browser or on the server, whether external dependencies are needed, and whether remote resources may be loaded;
- Define the interaction list: Enumerate the interaction actions that must be supported (drag to rotate, zoom, click to pick, reset view) and the expected feedback for each;
- Define the fallback strategy: State what should be shown on low-end devices or when rendering fails (for example, falling back to a static image plus text description);
- Define performance constraints: Provide an acceptable frame rate range and upper limits on model polygon count or texture resolution;
- Define freedom of technology choice: If no specific implementation library is mandated, declare only capability requirements (scene graph organization, lighting and shadows, raycasting for picking) and let the model choose a mature approach.
The key practice is this: implementation stack details should not be locked down by the user in advance, but the verifiable capability items must be written clearly upfront. The former limits the model’s optimization space; the latter determines whether the artifact passes. Separating “what effect is wanted” from “what to implement it with” is currently the most effective way to structure prompts for this class of generation tasks.
It is also advisable to add a “plan first” step: have the model output the implementation plan and dependency list, confirm it is correct, and only then execute generation. This step intercepts a large number of directional errors before any real generation cost is incurred.
4. Office Automation: From Unstructured Documents to Multi-Sheet Structured Artifacts
Converting a financial-report-style PDF or long text directly into a professional workbook with multiple sheets is one of the most typical enterprise use cases for agents. Its value lies not in the act of “generating a table,” but in compressing information extraction and cross-checking that would take a human hours into minutes, with the process remaining traceable.
It is recommended to split the task into four explicit stages, each accepted separately:
Stage 1: Layout and structure recognition. Extract heading hierarchy, table boundaries, stitching relationships for tables spanning pages, and footnotes and unit notes. The most important output of this stage is the “table inventory”: how many tables there are, the column definitions of each, units and currencies, and time bases. The accuracy of this step directly determines the correctness of all subsequent numbers.
Stage 2: Metric extraction and alignment. Assign numbers scattered throughout the document to a unified metric standard. Typical traps that must be handled here include: inconsistent units (mixing thousands and millions), inconsistent time bases (fiscal years mixed with quarters), definition changes (the same metric defined differently across years), and restated data (later reports adjusting prior-period figures). Engineering practice should retain a three-part traceability tuple for every value: (source file page/location, original wording, unit). Any number that cannot be traced should be flagged for manual confirmation rather than filled in by guessing.
Stage 3: Calculation and reconciliation validation. Compute derived metrics (growth rates, profit margins, expense ratios, etc.) and run automated checks: whether the sum of line items equals the total, whether the difference between the current and prior period equals the change amount, and whether cross-sheet references are consistent. This layer is the key to whether automation can be trusted—when validation fails, it should explicitly report “which item does not balance” rather than silently outputting results.
Stage 4: Artifact generation and metadata retention. Output a structured workbook containing a raw data sheet, a calculation sheet, a validation report, and an assumptions and standards sheet. It is recommended to always include a “data traceability sheet” in the file:
Column definitions: Metric | Value | Unit | Currency | Time Basis | Source Location | Confidence Flag
The “confidence flag” distinguishes three levels—“taken directly from source,” “calculated,” and “inferred/filled”—so a reviewer can see at a glance which numbers can be trusted directly and which need focused verification. This design turns an agent-produced table from “looks finished” into “auditable and reviewable.”
5. Cost Control: Context Budget Governance in Agentic Scenarios
Multi-agent setups, multi-turn calls, and long contexts stack up to make token consumption far higher than in ordinary conversational scenarios. For users putting such workflows into daily production, cost control should be built into architecture design rather than optimized after the fact. There are five entry points:
- Tiered context injection: Divide materials into three tiers—“always injected,” “retrieved on demand,” and “reference only.” Only global constraints (coding standards, directory conventions, glossaries) stay resident in context; specific file contents are pulled on demand.
- Index instead of full reads: First build a symbol-level index (modules, functions, types, export relationships), let the agent locate targets via the index and then read precisely, avoiding stuffing an entire repository into the window.
- Persist intermediate artifacts: Write large intermediate results to object storage or local cache; the message channel carries only references and summaries, reducing both context usage and retry costs.
- Cache reuse: Cache repeated retrieval, parsing, and summarization results; keep the system prompt and long document prefixes in a stable order to take full advantage of prefix caching.
- Budget and observability: Set context and call-round limits per task, and wire consumption, latency, and failure rates into monitoring, alerting, and logging services, with attribution analysis by task type. Without observability, cost optimization is guesswork.
The practical rule of thumb is this: the cost reduction from context governance is usually significantly larger than the difference from switching models. In long task chains, avoiding one full read often yields more savings than all model-side optimizations combined.
6. Quality Evaluation and Acceptance: Replace Subjective Impressions with Reproducible Baselines
If the evaluation of agent capability stays at “feels good” or “pretty impressive,” it cannot be distilled into reusable selection criteria. It is recommended to build a minimal reproducible evaluation set:
Task set design. Cover four to six categories of real tasks, each with several samples that have clear acceptance criteria: codebase audit (acceptance point: architecture diagram matches configuration), multi-round iterative writing (acceptance point: key-point coverage and style consistency), end-to-end application generation (acceptance point: interaction list fulfillment and runnability), document structuring (acceptance point: number traceability completeness and validation pass rate), and fault-injection tasks (deliberately insert erroneous configuration and observe whether it can be detected and reported).
Metric recording. Record the following fixed metrics for each evaluation: task success rate, first-pass rate, average end-to-end latency, time to first token, token consumption, manual rework time, and failure-mode distribution. The “failure-mode distribution” carries the most information—it tells you whether the problem lies in planning, execution, or convergence.
Baseline comparison. Retain historical evaluation records to form comparable version baselines. Only on top of such baselines can you judge whether a model iteration “actually got stronger,” and “in which dimension it improved and in which it regressed.”
An example of a lightweight evaluation record structure:
{"task_id": "audit-skill-team-03","category": "codebase_audit","metrics": {"success": true,"first_pass": false,"e2e_latency_s": 142,"tokens_total": 186000,"rework_minutes": 11},"failure_modes": ["graph_node_missing:auth_agent", "trace_link_broken:2"]}
Turn failure_modes into a controlled vocabulary and keep tallying it; after a few months you will have a “model capability profile” specific to your own business scenario, whose value far exceeds any generic leaderboard.
7. Conclusion: The Evaluation Focus Should Be End-to-End Completion
Overall, judging whether an agent workflow is usable should not rest on whether single-turn generation looks polished, but on how it performs in a real chain: whether it can read an existing project and give a faithful structural description; whether it can keep responsibilities clear, state consistent, and the whole process traceable in multi-role collaboration; whether it can turn a one-sentence requirement into a deliverable that runs, has fallbacks, and respects performance constraints; and whether it can reliably convert unstructured documents into auditable structured artifacts.
For action, a three-step progression is recommended: first, set up observability (call chains, token consumption, failure causes)—without measurement there is no optimization; second, templatize prompts and acceptance criteria (especially traceability and fallback requirements), which is the most cost-effective way to raise the first-pass success rate; third, build your own evaluation baseline and failure-mode vocabulary so that every model or framework change can be assessed quantitatively.
This methodology is independent of any specific model choice and transfers to any agent framework and any cloud environment—container platforms hosting execution environments, object storage hosting intermediate artifacts, message queues decoupling long tasks, and logging and monitoring services supporting observability together form the common foundation for agentic applications. What ultimately determines deployment outcomes is always the quality of task decomposition, the rigor of state management, and the clarity of acceptance criteria.
