Evaluating Multi-Model Agents on Web App Replication: A Benchmarking Practice

    This article shares a hands-on evaluation methodology for assessing the engineering capabilities of large language model agents through open-ended web application replication tasks. It covers test design with controlled variables across model-and-harness combinations, a two-round prompt strategy that decouples requirements from credentials, observed behavior differences in verification depth, a weighted scoring rubric, common failure patterns, and a reusable evaluation pipeline. Readers will learn why verification depth, rather than generation speed, is the decisive factor for long-term agent reliability.

    1. Background: Why “Replicating a Web App” Is an Excellent Evaluation Vehicle

    When assessing the engineering capabilities of LLM agents, pure algorithm problems or unit tests rarely differentiate performance. What truly exposes capability boundaries are open-ended, long-chain tasks that require multiple rounds of self-correction. Having an agent open a real target site in a browser, understand its information architecture and interaction details, and then deliver a runnable replica satisfies three conditions simultaneously:

    • Unpredictable input: The target site’s features evolve continuously, so the model cannot rely on memorized answers—it must genuinely observe.
    • Objectively verifiable output: Page structure, interaction flows, and responsive behavior can all be compared item by item.
    • Sufficiently long chain: Requirement understanding → page exploration → documentation → implementation → self-testing and fixing. Weakness in any stage shows up in the final result.

    For these reasons, this type of task has evolved from a “demo” into a usable comprehensive agentic benchmark.

    2. Test Design: Controlling Variables and Defining Deliverables

    The first principle of evaluation is variable control. Our comparison covered six “model + execution harness” combinations, spanning multiple vendors’ flagship and long-context models, and three harness types: general agent frameworks, dedicated coding agents, and official clients. The harness is treated as a first-class variable because, in practice, the same model’s performance across different harnesses often differs as much as between models—context management strategies, tool-call granularity, and failure-retry mechanisms all directly affect results.

    The deliverables were fixed to three mandatory items:

    1. Product feature documentation + feature structure diagram: Describing what features the target site has and how they are organized.
    2. High-fidelity replica: UI and functionality aligned with the original site.
    3. Improved version: Autonomously introducing better interactions and information architecture based on understanding the original design.

    Uniform environment constraints matter equally: all combinations used the same browser automation capability, the same logged-in session, the same network conditions, and prompts explicitly instructed “ignore existing memory, skills, and external extensions; execute directly” to rule out contamination from historical context.

    3. Two-Round Prompt Strategy: Decoupling Requirements from Credentials

    The key design splits the task into two rounds:

    • Round one provides only the requirements and the target URL—no API credentials. The model must complete all design and implementation through page observation and documentation reading, testing complete delivery capability without credentials.
    • Round two supplies the credentials, letting us observe whether the model truly completes the end-to-end chain and validates it.

    The value of this decoupling is that it separates “can it be written” from “can it run and self-check” into two independently observable metrics.

    An illustrative prompt skeleton:

    1. Role: Senior product manager + front-end architect
    2. Target site: <target web app URL>
    3. Reference docs: <official API documentation URL>
    4. Available capabilities: browser automation tools (session already logged in)
    5. Deliverables:
    6. 1) Product report: feature inventory + feature structure diagram
    7. 2) Replica implementation: UI and interactions aligned with the original site
    8. 3) Improved implementation: may autonomously add reasonable features
    9. Constraints: Ignore historical memory and external extensions; start executing immediately

    4. Key Observation: Verification Depth Is the Dividing Line

    Once credentials were provided, the combinations diverged significantly—our most valuable finding:

    • Shallow verifiers: Only performed the most basic connectivity checks, treating any successful response as a pass without exploring business paths further.
    • Deep verifiers: Proactively constructed multi-turn conversations, malformed inputs, boundary lengths, concurrency, and state-transition scenarios, then went back and fixed the implementation when defects surfaced.

    Importantly, this difference cannot be attributed simply to model capability; it correlates strongly with the harness’s default policies: whether “self-test after every change” is enforced, whether failure states are preserved, and whether long autonomous loops are permitted. Evaluation conclusions must therefore be written as “model × harness” combination findings, not single-model rankings.

    Overall, the most stable combinations shared three traits: their reports proactively flagged acceptance caveats (e.g., shareable links must be verified in a separate session); their replicas closely matched details like the position and size of input areas on mobile; and their core user journeys were fully restored rather than merely superficially imitated.

    5. Scoring Dimensions: Turning Subjective Impressions into Computable Metrics

    A weighted scoring table avoids “looks about right” judgments:

    Dimension Weight What to observe
    Documentation quality 20% Feature coverage, reasonableness of structure diagram hierarchy
    Visual fidelity 25% Layout, spacing, responsive breakpoints
    Functional completeness 25% Proportion of core journeys that work end-to-end
    Self-testing depth 20% Whether edge cases and failure scenarios were constructed
    Improvement value 10% Whether added features address real pain points

    Visual fidelity can be partially quantified with structural comparison:

    1. # Illustrative: extract key nodes for structural similarity comparison
    2. def dom_signature(sel, page):
    3. return page.eval_on_selector_all(sel, """els =>
    4. els.map(e => [e.tagName, e.className,
    5. getComputedStyle(e).fontSize,
    6. e.getBoundingClientRect().height])
    7. """)

    6. Common Failure Patterns and Mitigations

    • Looks right, behaves wrong: Only the static shell is replicated, with interaction states missing. Mitigation: put state machines (empty / loading / error / streaming) on the mandatory test checklist.
    • Context overflow causing mid-task amnesia: For long-chain tasks, persist intermediate artifacts in stages (documentation first, then components).
    • Hardcoded credentials: Credentials should be injected as environment variables in round two, never written into deliverables.
    • No regression baseline: Run a fixed acceptance script after every change to prevent “fix one thing, break two.”

    7. Reusable Pipeline and Conclusions

    Formalizing the above yields a repeatable evaluation pipeline: environment preparation → round-one dispatch → artifact collection → round-two credential injection → automated acceptance → weighted scoring → human review.

    Three conclusions: first, open-ended replication tasks are an effective benchmark for agent engineering capability; second, evaluations must treat the execution harness and the model as a single paired variable; and third, verification depth, not generation speed, is what determines long-term reliability. Baking “must self-verify” into the process improves delivery quality more reliably than switching to a stronger model.