Practical Evaluation: Multi-Model AI Agents Replicating Conversational Web Pages
This article evaluates six combinations of large language models and AI agent frameworks by tasking them with replicating a conversational AI web page. It explores the evaluation design, key findings regarding testing depth after credential injection, and proposes a structured methodology and scoring rubric for assessing AI agents' comprehensive engineering capabilities.
I. Evaluation Background: Why Replicating a Conversational Web Page is a Good Benchmark
A conversational AI product’s web interface may seem simple, but it is actually a front-end project with comprehensive features. It involves real-time streaming rendering, session state management, markup rendering and code highlighting, long context processing, authentication and key injection, exception retry and degradation, among other dimensions. Therefore, asking different combinations of “Large Language Model (LLM) + AI Agent Execution Framework (harness)” to replicate such a page can simultaneously test the model’s comprehensive capabilities in requirements understanding, engineering breakdown, code generation, self-testing, and iterative optimization. It serves as an excellent benchmark for horizontal evaluation.
II. Evaluation Design: Controlling Variables, Varying Only the “Model + Framework” Combination
This evaluation adheres to the principle of “unified task, unified process” to control variables as much as possible. Six combinations of “LLM + AI Agent Framework” were selected, covering different context length tiers and execution strategies (e.g., extreme long context, standard context, team collaboration mode, extreme reasoning mode) to ensure sample diversity.
Each group must produce three deliverables:
- Product functional documentation and page structure diagrams;
- A faithfully replicated conversational web page;
- An improved conversational web page based on its own experience.
Prompts are issued in two rounds:
- The first round focuses on requirements: setting the role as a senior product manager, providing the target site and API documentation links, allowing the use of browsing tools, and stating that the environment is already logged in;
- The second round involves key injection: providing API call credentials to the model and observing its subsequent behavior.
III. Key Observations: The Divide in “Testing Depth” After Key Injection
The most valuable findings emerged in the second round. After key injection, different combinations exhibited significant differences:
- One category of combinations only performed “minimum viable validation”—declaring completion once the page could open and send a single message;
- Another category proactively conducted deeper end-to-end testing, constructing boundary inputs and exception scenarios to expose potential defects and optimize accordingly.
It must be emphasized that the operations of all groups were completely identical, and the differences purely originated from the strategic orientations of the models and frameworks themselves, rather than human intervention. This phenomenon indicates that evaluation should not only look at “whether it runs through,” but also at “whether it possesses the engineering literacy of self-falsification and proactive optimization.”
IV. Methodology Refinement: How to Scientifically Evaluate AI Agents
It is recommended to transform subjective impressions into a structured scorecard, covering the following dimensions:
- Requirement Fidelity: Whether the functional points are fully covered;
- Code Quality: Structure, maintainability, error handling;
- Self-Test Depth: Whether exceptions and boundary cases are proactively constructed;
- Iteration Capability: Whether closed-loop fixes are made after discovering problems;
- Delivery Completeness: Whether the three deliverables are complete and meet standards.
Illustrative scorecard (pseudo-code):
{"task": "replicate_chat_web","deliverables": ["doc_and_diagram", "replica", "improved"],"rounds": ["requirement", "key_injection"],"score": {"fidelity": 0,"code_quality": 0,"self_test_depth": 0,"iteration": 0,"completeness": 0}}
V. Practical Recommendations
- Fix the environment and prompts to ensure reproducibility;
- Treat “self-test depth” and “iterative closed-loop” as first-class metrics, rather than secondary items;
- Record the intermediate process of each group, not just the final product;
- Use a unified scorecard for summary to avoid the subjective bias of “whoever looks better wins.”
In summary, replicating a conversational web page is a high-information-density evaluation task. As long as the deliverables, prompt rounds, and scoring dimensions are well designed, one can screen out “Model + AI Agent Framework” combinations that truly possess engineering closed-loop capabilities at a low cost and with high reproducibility.
