Replicating Web Apps with LLMs: Six Configuration Benchmarks Tested

    This article reports a hands-on benchmark that asks six model-plus-agent-harness combinations to replicate a conversational web application under identical tasks, rounds, and acceptance criteria. It breaks the evaluation into three deliverables, two prompt rounds, and five scoring dimensions, then shares key findings on documentation quality, verification depth, long-context trade-offs, and the boundaries of autonomous improvement. A reproducible workflow is included for teams that want to turn model output into dependable engineering delivery.

    1. Why Replicating a Conversational App Is a Good Test

    When a group of large models is released together through open weights or open APIs, the question developers care about is no longer “can the model answer questions?” but “can the model deliver engineering artifacts?” Replicating a conversational web application works well as a test because it stresses three capabilities at once:

    • Requirement understanding: turning a vague description into a structured feature list.
    • Long-context and engineering memory: keeping existing conventions intact across multiple iterations.
    • Self-verification: running the code, spotting problems, and fixing them.

    This experiment uses a unified setup: six combinations of “model + agent execution framework (harness)” run in parallel under the same task, the same number of rounds, and the same acceptance criteria, keeping the variables as close as possible to the models and frameworks themselves.

    2. Experiment Design: Three Deliverables and Two Prompt Rounds

    2.1 Three Deliverables

    1. Product feature document and structure diagram: must include information architecture, page hierarchy, module responsibilities, and key interaction states, and serve as the single source of truth for later development.
    2. High-fidelity replica page: visuals, layout, and interaction feedback must match the reference, and the code must run and be easy to split into modules.
    3. Autonomous improvement version: the model may enhance the replica based on its own judgment, but must explain the reasons for the changes and the scope of their impact.

    2.2 Two Prompt Rounds

    The first round provides only the requirements, with no external dependency credentials, to observe how the model breaks down the task and plans the directory structure and state management. The second round adds access credentials to see whether the model actually enters a “verify, locate, fix” loop. The key value of this design is that it separates “can write code” from “can deliver working code.”

    2.3 Unified Operations and Differentiated Strategies

    All operating instructions stay the same throughout the experiment; differences come only from the default strategies of the models and frameworks. Two typical behaviors emerge. One group performs only a basic connectivity check after receiving credentials and then declares the work done. The other proactively constructs boundary inputs, checks exception branches, and compares style details, exposing hidden defects and iterating on fixes. This suggests that the harness’s “verification depth” often determines final delivery quality more than the model’s raw generation ability.

    3. Observation Dimensions: Turning “Feels Good” into Quantifiable Conclusions

    Score five dimensions from 1 to 5 each, and keep the raw logs:

    • Requirement coverage: whether the feature document covers all mandatory items and whether the structure diagram matches the document.
    • Fidelity: whether layout grids, spacing, colors, and responsive breakpoints meet the standard.
    • Code quality: component splitting, state management, accessibility, and error handling.
    • Verification depth: whether testing goes beyond the minimum requirement and whether real defects are located.
    • Iteration efficiency: whether the rounds and change scope needed to fix a defect stay controlled.

    The illustrative scoring and aggregation logic can be written as:

    1. dimensions = ["coverage", "fidelity", "code_quality", "verification", "iteration"]
    2. weights = {"coverage": 0.25, "fidelity": 0.25, "code_quality": 0.2,
    3. "verification": 0.2, "iteration": 0.1}
    4. def score(result):
    5. return sum(weights[d] * result[d] for d in dimensions)

    4. Key Findings and Engineering Takeaways

    First, documentation quality determines the rework rate. Producing the feature document and structure diagram first significantly reduces rework on both the interface and the logic; groups without documentation often add design only in the second round, at a higher cost.

    Second, verification depth is the dividing line. Groups that only run a connectivity check tend to fail under real network fluctuations, empty data, and extremely long text input; groups that proactively verify exception branches catch issues such as inconsistent pagination, scroll loading, and message state early.

    Third, long context is not a cure-all. Very long context helps absorb a complete specification in one pass, but it can also dilute key constraints; standard context paired with client-side engineering constraints is often more stable on detail consistency. A reasonable approach is to externalize hard constraints into a checklist file and force a re-read every round.

    Fourth, autonomous improvement needs boundaries. When the model is allowed to “improvise,” require it to output a change list and a rollback plan so that showing off does not break existing interaction conventions.

    5. A Reproducible Implementation Workflow

    1. Freeze requirements: use a one-page document to state mandatory features, non-goals, and acceptance criteria.
    2. Externalize constraints: write style rules, naming conventions, and the state machine into a checklist for re-reading each round.
    3. Deliver in stages: document and structure diagram first, then the static page, then interactions and data.
    4. Enforce a verification loop: each round must cover at least four scenarios: normal flow, empty data, invalid input, and weak network.
    5. Record and review: save each round’s prompts, change diffs, and failure reasons as team assets.

    If real data and online services are involved, consider putting static assets in object storage, decoupling long-running tasks with a message queue, hosting the runtime on a container platform, and connecting logging and monitoring with alerts so problems can be located quickly during verification.

    6. Conclusion

    The real output of this kind of side-by-side test is not a ranking but a transferable engineering method: use documentation to unify facts, use checklists to constrain the model, and use deep verification to safeguard quality. Build these three practices into the workflow, and any model-plus-framework combination can reliably deliver a usable conversational web application.