A Technical Practice for Replicating Web Apps with Multiple LLM and Harness Combinations
This article presents a controlled experiment for evaluating how different large language model and coding harness combinations perform when replicating the same conversational web application. It explains how to fix the task, workflow, and acceptance criteria while varying only the model and tool combination, use a two-round prompting strategy to separate requirement understanding from executability, and apply a three-layer evaluation framework covering structure, implementation, and evolution. It also shares common pitfalls and a scriptable evaluation loop that produces a four-dimension capability radar chart for model selection and internal baselining.
1. Background and Problem Definition
When a group of large models and their accompanying coding harnesses are used to replicate the same conversational web application, the real difficulty is not “whether a page can be generated,” but how to objectively compare the engineering capabilities of different model and tool combinations under unified input conditions. The core design of the original practice is well worth borrowing: fix the task, fix the workflow, change only the model and harness combination, and observe differences in the output.
It should be emphasized that this article does not evaluate any specific vendor or product. Instead, it abstracts the practice into a general technical problem: evaluating the capability boundary of “model + toolchain” collaboration in completing end-to-end delivery under controlled experimental conditions.
2. Experimental Design: Controlling Variables Is Key
To make the comparison meaningful, variables must be strictly controlled. The recommended minimal variable set is as follows:
- Fixed task: the same requirement to replicate a conversational web application.
- Fixed workflow: unified two-round prompts, unified acceptance criteria, and a unified runtime environment.
- Single variable: replace only the model and harness combination (for example, neutral descriptions such as “long-context model + client-side tools,” “high-reasoning-tier model + code execution tools,” and “general-purpose LLM + vendor’s own toolchain”).
The task outputs should be fixed into three categories, forming a progressive chain of “documentation—replication—improvement”:
- Product feature documentation and structure diagrams (information architecture, module division, and state transitions);
- High-fidelity replicated pages (visual and interaction alignment with the reference object);
- An experience-based improved version (demonstrating proactive optimization capability).
3. Two-Round Prompts: Separating “Requirements” from “Executability”
The first round provides only the requirements, without keys, to observe the model’s autonomous planning capability: whether it proactively asks follow-up questions, whether it produces the information architecture first, and whether it breaks down components and state management.
The second round adds the key to observe differences in the model’s verification strategy. This is the most informative step in the entire experiment:
- Weak strategy: only performing “minimum viable verification,” ending once the page can open;
- Strong strategy: conducting deep self-testing that covers boundary conditions, abnormal inputs, concurrency, and error states, thereby proactively discovering defects and iterating.
An illustrative prompt structure (kept neutral and containing no real credentials):
Round 1:Goal: Replicate a conversational web application.Requirements: First output the feature documentation and structure diagram, then implement the page, and finally provide an improved version.Constraints: No internet access, no real keys, use local mock data.Round 2:A local environment variable KEY (placeholder) has been provided.Requirements: After integration, complete end-to-end self-testing and list at least 5 boundary cases and fix records.
4. Output Acceptance: A Three-Layer Evaluation Framework
It is recommended to replace the subjective “easy to use” judgment with three layers of metrics:
- Structure layer: whether the documentation is complete, whether modules and states form a closed loop, and whether the structure diagram is consistent with the implementation;
- Implementation layer: runnability rate, interaction completeness, error handling coverage, and code readability;
- Evolution layer: whether verifiable improvements are produced after the second round, rather than mere parameter substitution.
The “evolution layer” best distinguishes toolchain strategies. Deep self-testing usually exposes issues such as message scrolling and virtual lists, adaptive input box height, interruption and reconnection of streaming output, fallback on authentication failure, and truncation strategies for overly long contexts.
5. Common Issues and Engineering Recommendations
- Long-context combinations are good at ingesting large amounts of specifications at once, but “beautiful documentation with implementation drift” must be prevented; bidirectional validation between documentation and code should be enforced.
- Code-execution tools are good at closed-loop verification, but sandbox permissions and network egress must be restricted.
- When unifying operational criteria, be sure to record sources of randomness (temperature, number of retries, tool call limits); otherwise, the conclusions are not reproducible.
6. A Deployable Evaluation Loop
Requirements → Specification document → Replication implementation → Automated cases → Defect list → Improved version → Regression comparison
Once this loop is scripted, the cost of swapping models becomes very low, and the team can obtain a “capability radar chart”: four-dimension scores for documentation capability, implementation capability, self-testing capability, and evolution capability. For engineering teams, this method can be directly used for selection evaluation and internal baseline building, without relying on the promotional claims of any single vendor.
