Evaluating Multi-Model Agents on End-to-End Web App Replication: Methods and Practice

    This article presents a practical evaluation methodology for comparing multiple LLMs and agent harnesses on a single high-density task: replicating a conversational web application. It covers controlled-variable experiment design, a two-round prompting strategy with and without credentials, a weighted scoring rubric, common failure modes, and how to turn the evaluation into a repeatable, containerized pipeline with automated acceptance checks. Readers will learn how to measure self-correction depth, engineering runnability, and delivery stability instead of relying on first-pass output or benchmark scores.

    1. Background and Problem Definition

    When a batch of open-source models and agent frameworks is released together, developers rarely care about who scores higher on a leaderboard. The real question is who can reliably finish the job on real delivery tasks. Replicating a mature conversational web application is a high-density综合 exam: it simultaneously tests UI fidelity, interaction logic, API integration, documentation output, and the ability to improve autonomously.

    The original practice was to prepare several combinations of “model + agent execution framework (harness)”, have them complete the same task under identical conditions, and produce three types of deliverables:

    1. Product feature documentation and a feature structure diagram;
    2. A replica that closely matches the original site in both functionality and visuals;
    3. A new version with autonomous improvements built on top of that understanding.

    This article strips away the specific product attributes and abstracts the topic into “evaluation and engineering practice for multi-model agents on end-to-end web replication tasks”.

    2. Evaluation Design: Controlling Variables Matters More Than Piling Up Models

    The most common mistake in multi-model comparison is letting each model run with different prompts, different tool permissions, and different time budgets, which makes the conclusions impossible to attribute. The reliable approach is to reduce the variables to the minimum.

    • Independent variable: only the combination of model and execution framework.
    • Controlled items: task description, available tools, login state, runtime environment, delivery directory structure, acceptance scripts.
    • Dependent variables: deliverable completeness, fidelity, code runnability, and the reasonableness of improvements.

    The task prompt should keep the structure of “role + goal + constraints + deliverables”, for example:

    1. You are a senior product manager and front-end engineer.
    2. Goal: replicate a conversational AI chat web app (with session list, message stream, input box, parameter area, history management).
    3. Constraints: use only locally available browsing and file tools; do not access unauthorized external resources.
    4. Deliverables:
    5. 1) Feature list + feature structure diagram (text tree or diagram description both fine)
    6. 2) Original replica (UI and interactions consistent, locally runnable)
    7. 3) Improved version (explain the rationale and expected benefits)
    8. Round 1 gives requirements only, with no access credentials; Round 2 provides credentials.

    The two-round prompt design is the key to the whole evaluation: the first round verifies “planning and skeleton-building ability without credentials”, and the second round verifies “execution, verification, and self-correction ability once credentials are available”.

    3. Real Differences Revealed by the Two Rounds

    The most informative observation in practice comes in the second round. Once access credentials are provided, the behavior of different combinations diverges clearly:

    • One group does only minimal verification: it confirms the page opens and the API responds, then declares completion;
    • Another group performs deep verification: covering exception branches, boundary conditions, and state consistency, thereby proactively finding defects and reworking them.

    This is not simply a matter of “strong vs. weak capability”, but a difference in execution framework strategy: whether a “hypothesize-verify-correct” loop is built in, whether a self-check list is enforced, and whether multiple iterations within budget are allowed. The evaluation conclusion therefore cannot look only at first-round output; “self-correction depth” must be treated as an independent metric.

    A suggested self-check list (can be enforced by the framework):

    1. [ ] Cold start: loads normally after clearing cache
    2. [ ] Session create/switch/delete
    3. [ ] Rendering and truncation under long text and very long context
    4. [ ] Streaming output interruption and reconnection
    5. [ ] Error codes and user-facing messages
    6. [ ] Keyboard accessibility and focus management
    7. [ ] Mobile narrow-screen layout
    8. [ ] Degraded path when no credentials are available

    4. Scoring Dimensions: Breaking “How Similar” Into Quantifiable Items

    A subjective “similar” must be split into dimensions, otherwise the conclusions cannot be reproduced. The following weighting system can be used (adjust as needed):

    Dimension Focus Suggested Weight
    Feature completeness Feature list coverage, consistency between structure diagram and implementation 25%
    Visual fidelity Layout, spacing, hierarchy, state styles 20%
    Interaction correctness State machine, boundaries, and exception branches 20%
    Engineering runnability One-command startup, clear dependencies, no placeholder fake data 15%
    Improvement reasonableness Whether changes are justified, beneficial, and non-breaking to the original 15%
    Documentation quality Clear structure, deliverable to non-engineering roles 5%

    “Engineering runnability” is the most easily overlooked dimension, yet it best distinguishes demo-style output from deliverable output. The criteria are simple: whether it can start by following the documented steps in a clean environment, whether there is a large amount of hard-coded fake data, and whether there is a fallback when the API fails.

    5. Common Failure Modes and How to Avoid Them

    • Documentation disconnected from implementation: write the structure diagram first, implement, then use a script to check that the feature list maps one-to-one with routes/components.
    • Only reproducing the static shell: missing the “invisible but experience-defining” parts such as streaming output, session persistence, and error states.
    • Out-of-control improvements: rewriting half of the original without being able to explain the benefit. Constrain the improved version so that “the original can be rolled back and changes can be enumerated”.
    • Credential dependency: hard-coding access credentials into the code. Switch to environment variable injection and define the degraded behavior when no credentials are available.
    1. # Unified run entry point to reduce noise from environment differences
    2. export APP_ACCESS_TOKEN="<injected by the evaluator in Round 2>"
    3. npm ci && npm run dev

    6. Engineering the Evaluation: Turning It Into a Repeatable Pipeline

    A one-off manual comparison cannot accumulate into anything durable. It is recommended to pipeline the evaluation:

    1. Repository-based tasks: check prompts, acceptance scripts, and the initial scaffold into version control.
    2. Containerized execution: run each combination in an isolated container with unified timeouts and resource limits.
    3. Automated acceptance: startup checks, route coverage, static scanning (whether hard-coded credentials remain), screenshot comparison.
    4. Result archiving: archive logs, screenshots, and deliverables together to support traceability and re-evaluation.
    5. Human review: only manually review boundary samples of the automated scores to reduce subjective bias.

    For stronger reproducibility, each combination can be run once in “no network” mode and once in “intranet proxy only” mode inside the container, to observe differences in planning quality under restricted environments.

    7. Selection Advice and Transferable Conclusions

    • If you want one-shot completion and high fidelity: prefer the execution framework with a stricter “verification loop” rather than simply a model with larger parameters.
    • If you want long context and large codebase understanding: focus on context management and retrieval strategy, not just the nominal window size.
    • If you want stable delivery: move the self-check list, acceptance scripts, and rollback mechanism forward into the framework layer, so the model “must finish before submitting”.

    On a general cloud environment, this pipeline maps naturally to: a container platform hosting isolated execution, object storage archiving deliverables, a message queue scheduling tasks, and logging services plus monitoring alerts observing failure and timeout rates. To further reduce self-built costs, it is worth evaluating the general-purpose combination of capabilities in containers, storage, and observability offered by Baidu AI Cloud.

    The final conclusion is that the real watershed in multi-model replication tasks is not how flashy the first-round generation is, but whether, after receiving credentials in the second round, the agent is willing to and is required by the framework to perform deep verification and correction. Only by designing the evaluation as a pipeline with controlled variables, automated acceptance, and traceability can “a feeling about who is stronger” be turned into “data showing who is more stable”.