Evaluating Multi-Model Collaboration for Web App Replication: A Practical Framework
This article presents a general-purpose method for evaluating how different combinations of large language models and agent harnesses replicate a mature conversational web application. It covers task design, variable control, a two-round prompting strategy, unified deliverables, a reusable prompt skeleton, and a five-dimension weighted scoring model that emphasizes self-verification depth. The goal is to help teams measure delivery determinism and select the most reliable model-and-framework combination for a given task rather than declaring a single winner.
1. Why Replicating a Web Page Is a Strong End-to-End Evaluation
During a period of dense releases across open-source model families, developers are no longer asking only “which model scores higher.” The more pressing question is “which model plus framework combination can reliably deliver a runnable project.” Replicating a mature conversational web application stresses four capabilities at once: UI fidelity, interaction logic, API integration, and self-correction. It is much closer to a real development workflow than generating isolated code snippets, which makes it a good vehicle for side-by-side evaluation.
This article does not recommend any specific vendor product. Instead, it abstracts an original hands-on practice into a general method: how to design the task, how to control variables, and how to quantify results.
2. Evaluation Design: Variable Control and Two Prompting Rounds
2.1 Variable Setup
Keep the task input and the acceptance criteria fixed, and vary only the model plus agent harness combination. For each combination, record metadata such as the context-length strategy, whether a team collaboration mode is enabled, and tool-calling permissions, so that results can be attributed later.
2.2 Purpose of the Two Rounds
The first round provides requirements only, with no keys, to observe planning and skeleton construction. The second round adds the keys, to observe how deeply the combination verifies behavior once real capabilities are connected. This step is where the gap widens: some combinations do only a minimal connectivity check after the change, while others proactively construct boundary cases, uncover issues such as pagination, authentication failures, and interrupted streaming, and then go back and fix them.
2.3 Unified Deliverables
- A product functional document and a functional structure diagram;
- A replica of the original pages (UI and interaction aligned);
- An improved version of the pages (optimized information architecture and experience).
3. Prompt Engineering: Making the “Product Manager” Role Explicit
A reusable prompt skeleton looks like this (illustrative):
Role: Senior product manager + front-end architectGoal: Replicate a conversational web client and produce an improved versionInput: Target site description, API documentation description, available browsing toolsDeliverables:1) Product report (feature list + structure diagram)2) Original replica (pixel-level and interaction-level alignment)3) Improved version (may introduce common industry enhancements)Constraints: Do not rely on any preset skills or external plugins; execute directly
The key point is to state the environment facts clearly: browsing is available, the session is logged in, and keys can be called. Also require the model to output the structure before writing code, which avoids “stack up the pages first and patch in the logic later.”
4. Scoring Dimensions: From Fidelity to Self-Verification Depth
A five-dimension weighted score is recommended (weights can be adjusted to team goals):
| Dimension | Focus | Suggested Weight |
|---|---|---|
| Fidelity | Layout, components, states, empty states, and error states | 30% |
| Engineering completeness | Runnable, routing, state management, API encapsulation | 25% |
| Documentation quality | Completeness of the feature list, accuracy of the structure diagram | 15% |
| Self-verification depth | Whether cases are proactively constructed and defects fixed | 20% |
| Reasonableness of improvements | Whether optimizations are justified and not over-engineered | 10% |
Self-verification depth is the most easily overlooked dimension, yet it best reflects the real engineering value of an agent harness.
5. Three Common Types of Differences in Practice
- Verification strategy differences: verifying only that “it connects” versus verifying “exception paths.” The gap widens quickly in the second round.
- Context strategy differences: an extra-long context helps understand the whole site structure in one pass, while a standard context relies more on retrieval and segmented summarization.
- Collaboration mode differences: multi-agent division of labor suits running “documentation + front end + testing” in parallel, while a single agent is better for keeping design consistency.
6. Actionable Engineering Recommendations
- Freeze the acceptance checklist before generation starts, to reduce subjective disputes;
- Require the model to output a “directory structure + API contract” as an intermediate artifact;
- Inject key-related information through environment variables, avoiding hardcoding;
- Track the runtime quality of the generated application with logging services and monitoring alerts;
- If hosting is needed, general cloud capabilities such as container platforms and object storage can carry static assets and backend services.
7. Conclusion
Treating “replication” as an evaluation is essentially testing “delivery determinism.” For a team, the conclusion should not be “a certain vendor is the strongest,” but “under what kind of task, which model and framework combination is the most stable.” In practical engineering at Baidu AI Cloud, the same recommendation applies: use unified acceptance, layered scoring, and a self-verification loop to drive selection, so that evaluation results genuinely serve development efficiency.
