Multi-Model Agent Benchmarking: Replicating a Web App End to End
This article presents a practical framework for evaluating AI agents on a long-horizon engineering task: replicating an existing conversational web app from a live page and an API specification. It breaks the task into three deliverables—a feature document with a structure diagram, a high-fidelity replica, and an independently improved version—and maps each to the capabilities it tests. Key sections cover prompt design with explicit context clearing to control variables, a two-round interaction that uses API credentials as a deep-testing trigger, layered context management, a weighted scoring rubric, common failure modes, and a reusable implementation pipeline. Readers will learn how to make model and harness differences attributable, measurable, and repeatable rather than relying on one-off visual impressions.
1. Background and Problem Definition
As agent capabilities advance quickly, a typical engineering task is shifting from “generate a code snippet” to “deliver a runnable product end to end.” The original scenario discussed here is this: given a live conversational product web page and an API calling specification, an agent must produce three deliverables without step-by-step human intervention—a feature document with a feature structure diagram, a high-fidelity replica of the page, and a new version that incorporates improvements based on the agent’s own judgment.
This article does not evaluate or recommend any specific vendor’s product. Instead, it abstracts the scenario into a general technical problem: how to measure the real engineering capability of different models and execution frameworks (harnesses) on long-horizon, multi-deliverable tasks under a unified evaluation standard. This is directly relevant to enterprises that want to build internal development assistants, automated prototyping pipelines, or model selection evaluation systems.
2. Task Breakdown: Mapping Deliverables to Capabilities
Breaking the goal into verifiable sub-items is a prerequisite for a valid evaluation. The three deliverables actually test different capability dimensions:
| Deliverable | Primary Capabilities Tested | Common Failure Modes |
|---|---|---|
| Feature document + structure diagram | Information extraction, structured summarization, hierarchy design | Listing UI elements without information architecture logic |
| High-fidelity replica page | Visual fidelity, interaction state coverage, API integration | Reproducing only the static appearance, missing loading/empty/error states |
| Improved page | Autonomous decision-making, trade-off justification, explainability | Piling up features without prioritization or design rationale |
One key observation: the third deliverable best distinguishes the upper limit of a model. Replication is about “converging to an existing answer,” whereas improvement requires the model to actively define the problem, make trade-offs, and bear the design consequences.
3. Prompt Design: Constraints, Role, and the “Reset” Instruction
The original prompt contains four reusable elements worth abstracting into a template:
- Role setting: a senior product manager, anchoring the output perspective and document tone;
- Input anchors: one accessible live page plus one API specification document;
- Tool authorization: permission to use browsing tools to read the page and document, with the session already logged in;
- Explicit reset: an instruction to ignore existing memory, skill packs, and external extensions, and execute directly.
The “explicit reset” is the core mechanism for controlling variables. If different experiment groups carry inconsistent context, plugins, and historical memory, the final differences cannot be attributed to the model itself. In engineering practice, it is advisable to fix the control items as a checklist:
Control variable checklist- Keep temperature, max output length, and context window tier consistent- Keep the tool set consistent (browsing, retrieval, file writing, command execution)- Start from an empty workspace for all runs, with no historical memory or preset skills- Keep network access scope consistent, with public retrieval allowed for all- Unify the delivery directory structure and naming conventions
4. Two-Round Interaction: Turning “Obtaining the Key” into a Deep-Test Trigger
The process is designed as two rounds: the first round provides only the requirements, and the model completes a rough implementation; the second round provides the API calling credentials. The clever part of this design is that the second round is a strong-signal test point—whether the model truly gets the pipeline running depends on its behavior after receiving the credentials.
Observed behavior falls into two categories:
- Shallow verification: making only a single minimal call and declaring completion once it returns success;
- Deep verification: constructing multiple sets of inputs covering streaming output, extra-long context, error status codes, concurrency, and timeouts, then exposing defects and going back to fix them.
From an engineering perspective, the value of the latter far exceeds the former. Deep verification can be fixed as a minimal test set:
# Illustrative: minimal deep verification set after obtaining credentialscases = [{"name": "happy_path", "stream": True, "max_tokens": 128},{"name": "long_context", "input_len": 200_000},{"name": "empty_input", "input": ""},{"name": "bad_token", "expect_status": 401},{"name": "rate_limit", "expect_status": 429, "retry": True},{"name": "timeout", "timeout_ms": 1000},]
It should be noted that differences in verification depth across models and execution frameworks stem more from strategy orientation than from operational differences. During evaluation, “verification depth” itself should be recorded as an observable metric rather than treated as noise.
5. The Relationship Between Context Length and Engineering Performance
The original scenario contrasts an “extra-long context tier” with a “standard context tier,” which points to a commonly misunderstood conclusion: a larger context window does not equal a higher completion rate on long-horizon tasks. Window capacity determines “how much information can be stuffed in,” while completion depends on retrieval strategy, information compression, and staged memory management.
A more reliable practice is layered context:
- Short-term layer: the goal, constraints, and acceptance criteria of the current sub-task;
- Mid-term layer: the list of generated files, API contracts, and data structure definitions;
- Long-term layer: summaries of externally retrieved reference material, kept as key points rather than full text.
Combined with a three-stage process of “write the spec first, then the implementation, and self-test last,” this can significantly reduce the probability of inconsistency before and after in long tasks.
6. Unified Evaluation Standard and Scoring Recommendations
To ensure reproducible conclusions, a weighted scoring table is recommended, with an objective判定 method given for each item:
Feature completeness 30% Consistency ratio between document items and actual page featuresVisual & interaction fidelity 20% Number of key page elements and states coveredPipeline usability 25% Pass rate of the minimal test setImprovement reasonableness 15% Whether each change has a clear rationale and priorityEngineering standards 10% Directory structure, error handling, maintainability
Here, “pipeline usability” is best quantified directly by the test set pass rate to avoid subjective scoring; “improvement reasonableness” requires the model to output a change list with reasons, otherwise no points are awarded. This suppresses the false high scores caused by “feature piling.”
7. Common Defects and Diagnosis Methods
Problems that recur across multiple experiments share commonalities and can be grouped into four categories:
- Missing states: implementing only the main interface, lacking loading, empty-data, error, and rate-limit prompts;
- API assumptions: defining request fields by imagination without strictly aligning with the specification document;
- No self-test loop: not running or verifying after generation, treating delivery as the end;
- Baseless improvements: new features conflicting with the original information architecture, lacking trade-off explanation.
For diagnosis, it is recommended to mandate a “self-test report” as a fourth deliverable, including test set results, a known-defect list, and a description of uncovered items. This item can significantly distinguish execution frameworks that “can self-correct” from those that “can only generate in one pass.”
8. An Actionable Implementation Pipeline
Integrating the above experience into a reusable pipeline:
- Freeze the control variables and initialize an empty workspace;
- Issue the first-round requirements prompt to produce the document, replica page, and improved-page skeleton;
- Issue the second-round credentials, observe verification depth, and record behavioral differences;
- Run the unified minimal test set, collecting pass rates and the defect list;
- Score according to the weighted scoring table, and archive prompts, artifacts, and logs;
- Review failure modes and reverse-optimize the prompt template and tool permission configuration.
9. Conclusion
The real value of this type of task lies not in “who replicates more faithfully,” but in establishing an attributable, quantifiable, and reusable agent engineering evaluation method. Once control variables, test depth, and scoring standards are explicitly defined, differences between models can be translated into engineering conclusions that guide selection and process optimization, rather than a one-off impression.
