Multi-Model Web App Replication: Technical Practices and Evaluation Methods
This article presents a vendor-neutral method for evaluating AI models and execution harnesses by assigning them the same end-to-end task: replicating the web interface of a conversational AI product. It covers the experimental design with controlled variables and two prompt rounds, the performance differences observed during execution, five scoring dimensions with clear judging criteria, and reusable engineering practices such as defining information architecture first, prioritizing state machines, and verifying responsive breakpoints. Readers will learn how self-testing depth, rather than first-pass generation speed, determines delivery quality.
1. Background and Problem Definition
In agent engineering, a common validation approach is to have different models and execution harnesses complete the same end-to-end delivery task under identical input conditions, then observe their differences in requirement understanding, tool use, code generation, and self-verification. This article uses “replicating the web client of a conversational AI product” as a unified task to define a technical evaluation method that is independent of any specific vendor.
The task is broken down into three deliverables:
- A product feature specification document and a feature structure diagram.
- A high-fidelity web interface that reproduces the layout, interactions, states, and responsive behavior.
- An improved version based on an understanding of the original product, covering information architecture, interaction experience, and feature extensions.
It is worth emphasizing that the “replication” here is purely a technical exercise used to measure the engineering capability of models and frameworks. It does not involve any code or assets from a commercial product.
2. Experimental Design: Variable Control and Two Prompt Rounds
A meaningful comparison requires controlling variables. This design fixes the task description, acceptance criteria, and operating method, and changes only the “model + execution harness” combination, for a total of six configurations covering three capability tendencies: long-context, strong-reasoning, and general-purpose.
The prompts are delivered in two rounds, which is the key to the whole design:
- The first round provides only the requirements: the role is set as a senior product manager, and the agent is given the public entry point of the page to be reproduced and the location of the general chat API documentation. It is asked to use the available browsing and automation capabilities to research on its own, and is explicitly instructed to “clear existing memory, skills, and external extensions, and execute directly.”
- The second round adds access credentials, allowing the agent to actually enter the pages that require login and to move into the implementation and verification phase.
The purpose of the two-round design is to observe behavioral differences “after execution conditions are obtained,” rather than only looking at the plan quality of the first round.
A schematic description of the flow is as follows:
round_1: role + goal + deliverables list + research tool description-> output: information architecture draft, page list, implementation planround_2: add access credentials-> output: runnable pages, self-test records, defect fixes
3. Real Differences in the Execution Phase: Test Depth Determines Delivery Quality
Under the unified operating method, the six configurations diverged noticeably in the second round. The core difference was not “whether they could write it,” but “what they did after writing it.”
One type of agent performed only minimal verification after obtaining the credentials: confirming that the page could open and the main flow could be clicked, then declaring completion. Such results usually had a usable interface but lacked boundary states, such as empty sessions, extremely long input, failure retries, and cross-session visibility of share links.
Another type of agent proactively constructed a more complete verification path: switching viewports to check responsive breakpoints, simulating abnormal input, verifying session persistence and share access, and then finding defects during self-testing and revising the implementation. The final delivery was clearly higher in fidelity and stability.
This can be abstracted into a practical conclusion: the upper limit of delivery quality is often determined by the depth of self-verification, not by the speed of first-round generation. In engineering, this can be solidified into a process constraint:
implement -> self-test checklist (main flow / boundaries / responsive / persistence / sharing) -> defect fixes -> retest -> deliver
4. Evaluation Dimensions and Scoring Criteria
To make the conclusions reproducible, it is advisable to break subjective impressions into verifiable dimensions, each with clear judging criteria:
- Documentation quality: whether the feature list is complete, the hierarchy is clear, the structure diagram matches the actual pages, and whether state and exception branches are included.
- Fidelity: whether the layout grid, spacing, font hierarchy, input area position and size, and mobile adaptation match the reference.
- Feature completeness: whether session management, history, streaming output, stop and retry, attachment handling, sharing, and export are all present.
- Self-test rigor: whether boundaries and exceptions are covered, and whether issues are recorded and fixed in a closed loop.
- Reasonableness of improvements: whether new capabilities solve real pain points rather than piling up unrelated features.
The “reasonableness of improvements” is the most easily misjudged. Effective improvements usually focus on accessibility, keyboard operation, readability of error messages, retrieval efficiency in long sessions, and multi-device consistency; ineffective improvements show up as piling up unrelated modules and visual noise.
5. Reusable Engineering Practices
Based on this exercise, the following implementation practices can be distilled, independent of any specific product:
- Define the information architecture before writing code. Splitting pages into four areas—“session list, message stream, input area, settings panel”—and clarifying the set of states for each area can significantly reduce rework.
- Prioritize states over styles. Streaming output, interruption, failure retry, empty states, and loading states are the real difficulties in fidelity. It is recommended to define the state machine before implementing the views.
- Accept responsive behavior by breakpoint. Desktop two-column, tablet collapsed, and mobile single-column with a fixed input area should each be checked with screenshots, rather than inspected at a single viewport only.
- Verify sharing and access control separately. Visibility across sessions and across browsers must be accepted in an independent environment to avoid false passes caused by local state.
- Write the self-test checklist into the deliverables. The checklist itself is quality evidence and makes it easier to compare the rigor of different agents horizontally.
To deploy a similar system in a real production environment, general cloud capabilities are usually needed: object storage for static assets and attachments, a container platform for deploying stateless services, a message queue for smoothing streaming requests, and logging and monitoring with alerting to track error rates and latency. These are common industry categories, and selection should be based on your own workload and compliance requirements.
6. Conclusion
This exercise yields three core conclusions. First, two-round prompting can effectively distinguish “planning capability” from “execution and verification capability.” Second, test depth is the main dividing line of delivery quality. Third, dimension-based scoring with unified criteria produces more reproducible conclusions than overall impressions. Incorporating the self-test checklist, state machines, and responsive breakpoints into process constraints is the most direct way to improve the end-to-end delivery stability of agents.
