Evaluating AI Coding Agents with End-to-End App Replication: A Six-Model Practice Report

    This article presents a practical approach to evaluating AI coding agents with an end-to-end application replication task. It explains why this task type is useful, then walks through the evaluation design (inputs, three deliverables, and six model-plus-framework combinations), a two-round execution process with unified operations, and the decisive role of verification depth after an API key is injected. It also covers common failure modes and their attribution, a weighted scoring system with implementation recommendations, and the limitations of the approach. Readers will learn how to separate model capability from framework strategy and how to build a standardized, repeatable evaluation workflow.

    End-to-End App Replication Evaluation for AI Agents: Methods and Practice

    1. Background: Why “End-to-End Replication”?

    In recent years, the capability boundaries of open-source models keep expanding, and code-generation agents are steadily entering development workflows. Faced with continuously updated models and an ever-growing number of runtime frameworks, how should a team objectively assess “who should take on end-to-end development tasks”? This has become a real problem in technology selection.

    Two approaches dominate the industry: running benchmark tests, and gathering subjective hands-on experience. The former focuses on isolated capabilities, while the latter is hard to reproduce and quantify. The “end-to-end app replication” task adopted in this article is closer to a real project: the subject under test must understand the product, write code, run it in a real environment, and verify it autonomously. It strongly differentiates the following capabilities:

    • Product understanding: Can it distill the information architecture and core flows from the interface and documentation?
    • Long-horizon execution: Can it stay aligned with the goal over a long context without drifting when new information is inserted mid-task?
    • Tool orchestration: Can it effectively invoke capabilities such as browser automation, file read/write, and terminal execution?
    • Code implementation: Can it deliver a complete, runnable project?
    • Autonomous verification: Can it complete end-to-end verification on its own after receiving an API key, rather than “shipping as soon as it’s written”?

    2. Evaluation Design: Tasks, Deliverables, and Subjects

    2.1 Task Inputs and Constraints

    This evaluation selected a web-based conversational application from an open-source large model series as the replication target. The application has a publicly accessible web front end and API integration documentation, making it suitable as a reference. The inputs include:

    1. Reference app entry point: The subject can browse and interact with it directly through a browser automation tool that is already logged in;
    2. API documentation URL: Describes how to connect the conversational capability through backend interfaces, which is the key basis for implementing a complete pipeline;
    3. Execution constraints: Preloaded memory, skill packs, and any external extensions are explicitly prohibited to avoid reliance on personalized configurations;
    4. Unified instructions: Start with a role setting (e.g., “Assume you are a senior product manager”) and require “get started right away,” conveying the expectation to begin work early with minimal unrelated preamble.

    Two details deserve attention during execution:

    • Navigation dependency: Some agents rely on the browser’s “current tab” to locate the target page, so it’s essential to ensure the target page is the active tab when the task starts; otherwise the agent may land on the wrong page;
    • Command screening: Some agents judge the nature of the task based on the opening command. If they identify it as an evaluation scenario, they may switch to producing an evaluation report instead of completing the replication as required.

    These two points show that both the wording of the prompt and the state of the runtime environment can directly affect the subject’s execution path.

    2.2 Three Deliverables

    The subject must produce three types of output:

    1. Product feature documentation and a functional architecture diagram: Map out the reference app’s functional modules, interaction paths, and information hierarchy;
    2. A 1:1 replication: Match the original webpage as closely as possible in both features and interface;
    3. An improved version: Optimize UI/UX and functionality based on understanding, and it may search the web for material and incorporate features it deems appropriate.

    These three items correspond to a capability ladder of “understand—reproduce—improve”:

    • The replication assesses fidelity of reproduction, and there is a reference answer;
    • The improved version assesses product judgment and innovation, and the answer is open-ended;
    • The feature documentation requires the subject to translate interface behavior into a structured description, providing a basis for the next two steps.

    2.3 Combination of Subjects

    A total of 6 “model + runtime framework” combinations were tested, covering several representative approaches:

    Combination type Description
    Reasoning model focused on coding + collaborative agent framework Emphasizes division of labor and multi-agent collaboration, with a conservative context setup
    General-purpose flagship model + coding agent tool (two configurations) Different reasoning configurations, both running under an extremely high reasoning budget
    Extreme long context + client-side agent One uses extreme long context, the other uses standard context, both initiated via the client
    Vendor’s general-purpose flagship model + vendor’s built-in agent Model and framework from the same source, tightly coupled

    The “runtime framework” (harness) here broadly refers to the system that hosts model execution, including context management, prompt assembly, tool-calling loops, permission control, and termination conditions. Products differ markedly in their strategies at this layer, and the following sections explain how this affects results.

    3. Execution Process: Unified Operations and Two Rounds of Prompts

    3.1 Unified Preconditions

    To ensure comparability, all subjects followed these conventions:

    • Consistent inputs: The same reference entry point, documentation URL, and execution constraints;
    • Unified operations: All driven by the same operator following the same steps, with no per-subject adjustments;
    • Consistent round structure: The first round delivers the requirement; the second round supplies the API key;
    • Automated terminal execution: All confirmation-requiring commands issued by the subject are automatically approved. This reduces differences caused by manual intervention, but also requires a controlled execution environment—for example, running in an isolated container.

    It’s worth emphasizing that “unified” here means a consistent operational process, not that the internal strategies of models and frameworks are unified. Each framework makes its own trade-offs in reasoning effort, context management, and tool calling—and this is precisely what the evaluation aims to observe.

    3.2 Round One: Requirement Delivery

    The first-round prompt is as follows:

    Assume you are a senior product manager, and now you need to replicate the web front end of an open-source large model.
    This is the web front end URL:
    This is the API documentation:
    You can use browser automation tools to browse these web pages; I’m already logged in.
    You need to:

    1. Generate a product report document that clearly describes what features the webpage has, and provide a product functional architecture diagram;
    2. Replicate a web front end whose features, UI, etc. match the original webpage as closely as possible;
    3. Based on your understanding, optimize the web front end and generate an entirely new version; UI/UX, features, etc. can all be improved, and you can search the web for material and add any features you consider appropriate.
      Get started right away, gogogo.

    This prompt contains three layers of information: role and task, reference materials and available tools, and a clear deliverable list. Among them, “search the web for material” is an explicit requirement for external tool capabilities.

    3.3 Round Two: API Key Injection

    After the first round completes, the operator checks whether the page opens properly and whether the features work, then supplies the API key in the second round:

    API Key: , now you can use this key to test the webpage.

    At this point, the reference app’s page is accessible. The second round requires the subject to do two things: configure the key into the replicated app, and verify whether the conversational pipeline actually runs end-to-end. This is the key watershed of the entire evaluation.

    3.4 Refactored Execution Process

    Considering that the original process did not yet form a quantifiable scoring system, here is the refactored full process:

    1. Preparation: Set up a unified environment (isolated container, controlled browser, test key);
    2. Round one: Deliver the requirement, and monitor execution logs, elapsed time, and resource usage;
    3. Mid-point check: Confirm the page is accessible and features work;
    4. Round two: Inject the key and observe the verification strategy;
    5. Acceptance: Run automated checks, manual comparison, and record archiving.

    Example code is as follows:

    1. # Evaluation execution process (pseudocode illustration)
    2. def run_eval(candidate):
    3. env = Sandbox(browser_profile="logged_in") # Isolated environment + logged-in browser
    4. result = {"model": candidate.model, "harness": candidate.harness}
    5. # Round one: deliver the requirement
    6. log1 = env.agent.run(REQUIREMENT_PROMPT, auto_approve=True)
    7. result["artifacts"] = collect_outputs(env.workspace) # Docs, replication, improved version
    8. result["round1"] = metrics(log1) # Rounds, elapsed time, token usage, number of tool calls
    9. # Mid-point check: does the page open, do features work?
    10. result["mid_check"] = smoke_check(result["artifacts"])
    11. # Round two: inject the key, observe verification depth
    12. log2 = env.agent.run(f"API Key: {env.test_key}, now you can use this key to test the webpage.",
    13. auto_approve=True)
    14. result["round2"] = metrics(log2)
    15. result["verify"] = analyze_verification(log2) # Number of verification actions, coverage, issues found and fixed
    16. # Acceptance and scoring
    17. result["auto_checks"] = run_checks(result["artifacts"])
    18. result["manual_review"] = blind_review(result["artifacts"])
    19. record(result)
    20. return result

    4. Key Differences: Verification Depth Determines Final Quality

    4.1 Two Verification Strategies

    After the first-round artifacts are produced, the main differences among subjects appear after they receive the key:

    • Shallow verification: Call the API only once to confirm connectivity, at most check page rendering once more, then directly declare the task complete;
    • Deep verification: Treat connecting the key as “the pipeline has just begun,” and conduct multiple rounds of testing around front-end/back-end integration—including sending real requests, checking streaming output, triggering exception branches, and investigating console errors—fixing issues and re-testing after finding them.

    Interestingly, the two configurations using the same coding agent tool also differ in their investment in deep verification; and the combination using extreme long context demonstrated a fairly complete verification and fix loop. This shows that capability cannot be judged by the model alone—the runtime framework’s strategy is equally important.

    4.2 Where Do the Differences Come From

    The main causes of these differences are:

    • Termination conditions: Whether the framework treats “a key feature passing one check” as a completion signal, or treats “no new problems found” as the completion condition;
    • Task understanding: Whether the key is treated as “an optional connectivity test” or as “a mandatory requirement for end-to-end acceptance”;
    • Tool capabilities: Whether it has closed-loop capabilities such as running the app, executing requests, reading logs, and comparing screenshots;
    • Reasoning budget: After more reasoning effort is added, the model is more likely to re-examine the existing implementation rather than settle for the status quo.

    4.3 What Deep Verification Should Cover

    Given the characteristics of conversational applications, the following acceptance checklist is recommended as a standard part of the evaluation:

    Check item Focus
    API connectivity Whether the key is correctly injected, whether requests return successfully
    Streaming output Whether chunks arrive in order and are correctly concatenated, whether the end marker is complete
    Conversation state Whether multi-turn message order is correct, whether context is properly carried
    Exception branches Error messages for empty input, overly long input, and invalid or expired keys
    Stability Behavior under concurrent requests, timeout and failure retries
    Front-end quality Whether the console has errors, whether network requests are abnormal, whether the page layout is broken
    Security configuration Whether the key is stored only on the backend, whether the front end leaks sensitive information

    This checklist can be directly turned into an acceptance script, as shown below:

    1. def run_checks(app):
    2. checks = []
    3. # 1. Health check
    4. checks.append(("health", http_get(f"{app.base_url}/health").status_code == 200))
    5. # 2. Streaming response: chunks should concatenate in order into complete content
    6. chunks = stream_chat(app.base_url, "你好", api_key=app.test_key)
    7. checks.append(("stream_order", is_monotonic(chunks.seq)))
    8. checks.append(("stream_complete", chunks.final_text.strip() != ""))
    9. # 3. Exception branch: an invalid key should return a clear error, not fail silently
    10. resp = chat(app.base_url, "hi", api_key="invalid-key")
    11. checks.append(("auth_error", resp.status in (401, 403)))
    12. # 4. Front end: page loads with no uncaught script exceptions
    13. page = browser.open(app.base_url)
    14. checks.append(("page_load", page.title != ""))
    15. checks.append(("no_console_error", page.console_errors == []))
    16. return checks

    5. Common Failure Modes and Attribution

    From the execution process, the problems fall into roughly four categories:

    1. Incomplete product feature understanding: Only replicating the conversation input box while missing session management, message editing and retry, history records, etc.;
    2. Interface reproduction deviation: Differences from the reference page in layout, spacing, and state styles, and missing loading and empty states;
    3. Messy project structure: Front-end/back-end coupling, hardcoded configurations, keys written into client-side code;
    4. Sloppy wrap-up: Not verifying after completing feature development, or performing only the simplest connectivity test.

    Attribution requires distinguishing three levels:

    • Model capability: Understanding, reasoning, and code generation;
    • Framework strategy: Context management, toolset, and termination conditions;
    • Environment constraints: Browser state, command approval, key availability.

    Only by separating the three do the conclusions become actionable.

    6. Scoring System and Implementation Recommendations

    Dimension Weight Scoring focus
    Product documentation quality 15% Feature coverage, clarity of the architecture diagram, logical consistency
    Replication fidelity 25% Interface similarity, interaction consistency, functional completeness
    Improved version quality 20% Reasonableness of improvements, implementation completeness, presence of genuine innovation
    Autonomous verification depth 20% Coverage of verification, number of issues found and fixed
    Engineering and code quality 15% Runnability, structural clarity, security configuration
    Efficiency 5% Elapsed time and token usage

    The specific scores need to be determined based on team goals. If delivery quality is more valued, the weights of “autonomous verification depth” and “engineering and code quality” can be increased; if cost is the main concern, the proportion of “efficiency” can be raised.

    6.2 Implementation Recommendations

    1. Automate first: Use scripts as much as possible for startup, smoke testing, and screenshot comparison to reduce subjective judgment;
    2. Record the whole process: Preserve execution logs, tool-call sequences, and final artifacts for later review;
    3. Focus on verification behavior: Treat “whether it autonomously discovers and fixes issues” as a core metric, rather than only judging how good the final page looks;
    4. Cross-validate across multiple combinations: Run the same task with at least two “model + framework” combinations to distinguish model contributions from framework contributions;
    5. Standardize key management: Evaluation keys should only be used in isolated environments and revoked after use; never write them into code repositories or front-end artifacts. On cloud platforms such as Baidu AI Cloud, evaluation environments and artifacts can be centrally governed and audited by combining general-purpose capabilities such as key management, logging services, and monitoring and alerting.

    7. Limitations and Notes

    • Limited sample size: With 6 combinations and a single task, the conclusions only reflect performance under this configuration and should not be extrapolated into an absolute ranking of model capabilities;
    • Task depends on the external environment: Replication tasks rely heavily on the availability of the reference app and network access conditions, so the environment version should be recorded during execution;
    • Prompt sensitivity: The opening role setting and phrases like “get started right away” can significantly affect the execution path, so they must be kept consistent during evaluation;
    • Compliance boundaries: Replicating another party’s product is only permissible for technical evaluation, and the artifacts must not be used for external operation to avoid infringement risk;
    • Conclusions need dynamic updating: Models and frameworks iterate frequently, so it’s recommended to solidify this evaluation as a repeatable regression task and rerun it periodically.

    8. Summary

    “End-to-end app replication” is an evaluation task close to real development scenarios. It can simultaneously assess an agent’s product understanding, code implementation, and autonomous verification capabilities—and the most noteworthy of these is the verification depth after receiving the key: agents that perform only one connectivity test often treat “it runs” as the finish line; agents that continuously integrate and proactively troubleshoot can turn “it runs” into “it’s usable.” In actual selection, it’s recommended that teams turn such tasks into a standardized, repeatable evaluation process and adjust the weights according to their own scenarios, so as to obtain truly valuable conclusions.