Multi-Model Collaboration for Replicating an AI Chat Web App: An Engineering Practice
This article presents an engineering experiment that evaluates large language models by asking them to replicate a mainstream AI chat assistant web app. It describes six model-plus-harness groups, a three-part deliverable consisting of a product document and structure diagram, a replicated web page, and an improved web page, and a two-round prompting strategy: requirements first, API integration second. The observations show that most models can generate complete static pages, while the real differences emerge during API integration and debugging. Some models perform only shallow connectivity checks, whereas others proactively build edge-case tests, find bugs, and fix them. The article also examines how harness quality and context management affect outcomes, summarizes a reusable evaluation methodology, and offers practical recommendations for developers.
Multi-Model Collaboration for Replicating an AI Chat Web App: An Engineering Practice
1. Why Use “Replicating a Real Product” to Test Coding Ability
As large language models continue to improve in code generation, more developers are trying to have models complete full product development tasks independently, rather than only writing isolated code snippets. However, objectively evaluating how different models perform in real development scenarios remains difficult.
Traditional code evaluation benchmarks, such as function completion and algorithm problem solving, differ significantly from real engineering practice. Real development requires understanding requirements, designing a product, writing frontend and backend code, integrating APIs, testing, and fixing issues. It is a complex process that connects multiple stages. As a result, “given an existing mature product, ask the model to replicate it completely” has become a useful testing paradigm. It provides a clear reference object and covers the full workflow from requirements analysis to delivery acceptance.
This article uses “replicating the web frontend of a mainstream intelligent chat assistant” as the experimental task. It organizes multiple groups of models and supporting harnesses for side-by-side comparison and summarizes a reusable testing methodology.
2. Experiment Design: Unified Task, Multiple Control Groups
2.1 Test Groups
The experiment set up six “model + harness” combinations, covering models from different vendors and with different positioning:
- Combination 1: A reasoning-enhanced model with deep thinking and multi-agent collaboration mode enabled.
- Combination 2: A general-purpose flagship model plus an AI coding assistant tool.
- Combination 3: Another flagship model in the same series plus the same coding tool.
- Combination 4: A combination of an ultra-long-context model supporting nearly one million tokens and a standard-context model, plus the official client.
- Combination 5: An open-source flagship model plus a companion coding entry point.
- Combination 6: A control group using a baseline configuration.
It is important to emphasize that the model and the harness are coupled. The same model connected to different clients, configured with different context lengths, or run with or without agent mode can produce significantly different output quality. Therefore, the minimum unit of comparison should be the “model + harness” combination, not the model alone.
2.2 Deliverable Requirements
Each combination needed to deliver three artifacts:
- Product function document and structure diagram: From the perspective of a product manager, outline the target product’s functional modules, information architecture, and user flows.
- Replicated web page: Reproduce the target chat product’s appearance and interactions as closely as possible.
- Improved web page: Based on the model’s own product understanding, make reasonable optimizations to the original version, testing the model’s product judgment.
These three artifacts progress from shallow to deep, examining requirements analysis ability, engineering implementation ability, and product innovation ability respectively.
2.3 Two-Round Prompting Strategy
The test used two rounds of prompts.
First round (requirements round): With the role set as a senior product manager, the model was given the target product’s URL and API documentation URL and was asked to browse and understand them before completing the three artifacts. An example prompt is shown below:
Assume you are a senior product manager and now need to replicate the web frontend of an intelligent chat assistant.This is the target product's web address: [target site]This is its API documentation: [documentation URL]You can use the built-in web browsing tool to view these pages; the relevant account is already signed in.Please complete: 1) product function document and structure diagram; 2) replicated web page; 3) improved web page.
Second round (integration round): The model was told which API keys were available and was required to connect the frontend page with the real large language model interface so that the chat function actually worked.
The design intent behind splitting the task into two rounds is clear. The first round examines “pure generation” ability, while the second round examines the ability to debug and iterate after connecting to real dependencies. The latter often reveals differences between models more clearly.
3. Experimental Observations: Key Differences Lie Not in “Writing It Out” but in “Testing Deeply”
3.1 Commonality of First-Round Outputs
At the stage of generating only static pages, most combinations could produce structurally complete pages with high visual fidelity. Their functional documents also generally covered core modules such as session management, streaming message output, and model switching. This shows that current mainstream models already have a relatively high baseline for “understanding requirements + generating frontend code,” and it is difficult to distinguish them based on first-round outputs alone.
3.2 Real Gaps Exposed in the Second Round
The real dividing line appeared after API keys were connected. The observed behavior strategies differed sharply across combinations after they received the keys:
- Shallow validation type: Some models completed API integration and then performed only the simplest connectivity test—sending one message and declaring completion once a response was returned. Hidden issues in the page, such as missing handling for interrupted streaming responses, no fallback prompts for exceptional states, and context cross-talk when switching among multiple sessions, were not discovered.
- Deep debugging type: Other models proactively constructed multi-turn test cases and simulated boundary conditions such as network anomalies, empty input, and very long input. After finding bugs during testing, they fixed them on their own and even optimized details such as loading animations and error message copy. Some combinations also reflected on the shortcomings of the initial implementation and refactored the state management logic.
It should be noted that manual operations were strictly unified during the test, so the differences came entirely from each combination’s own execution strategy. This suggests that a model’s “active testing awareness” is becoming a key indicator of its engineering practicality. Many models can write code, but models that proactively verify, discover, and fix issues like engineers remain scarce.
3.3 Amplification Effect of the Toolchain
The experiment also confirmed that harness quality can significantly amplify or weaken model capabilities. Agent frameworks that support filesystem read/write, terminal execution, and browser operations can enable models to complete the full loop of “write code—run—see errors—modify code.” In contrast, environments that can only output text push debugging responsibility back to humans. Ultra-long context also has clear value in multi-file projects. As project files increase, models with insufficient context can easily “forget” interface contracts defined earlier, causing inconsistencies.
4. Reusable Methodology Summary
Based on this experiment, a general process for evaluating model coding ability can be distilled:
- Choose a real target product with API dependencies as the replication object to ensure sufficient task complexity.
- Split the prompts into rounds: requirements first, then keys, to distinguish “generation ability” from “integration ability.”
- Require layered deliverables: document, replication, and improvement, corresponding to analysis, implementation, and innovation.
- Keep manual operations consistent and converge all variables onto the “model + harness” combination itself.
- Focus on second-round behavior: whether a model actively tests and whether it finds and fixes bugs reflects engineering value more than page aesthetics.
5. Practical Recommendations for Developers
For teams hoping to introduce AI coding capabilities into their business, this experiment offers several insights:
- Do not look only at demo results: Static page generation is no longer the bottleneck. Evaluation should focus on how deeply a model debugs after connecting to real dependencies.
- Toolchain investment is worthwhile: Equipping models with an executable, observable agent environment often yields greater returns than simply switching to a stronger model.
- Pay attention to context planning: Multi-file projects should actively manage context. When necessary, use ultra-long context capabilities to keep interface contracts consistent.
- Write “active testing” into the prompt: You can explicitly require the model to “construct at least several groups of boundary test cases after integration and fix the issues found,” partially compensating for differences in model strategies.
At the enterprise deployment level, teams that want to quickly build such intelligent chat applications can also use general-purpose cloud services from Baidu AI Cloud—for example, a container platform to host frontend services, object storage to serve static assets, and logging and monitoring/alerting to improve runtime observability—so they can focus on business logic itself.
6. Conclusion
Testing large models by “replicating a mature product” is essentially simulating a miniature real software project. The experimental results show that competition among current models is shifting from “whether they can generate usable code” to “whether they can deliver a closed loop like an engineer.” For developers, establishing a standardized evaluation process and understanding the coupling between models and harnesses are essential for making rational technology choices in a rapidly evolving model ecosystem.
