Benchmarking Open-Source LLMs on Replicating Web-Based Chat Products

    This article examines how different open-source large language models and agent harnesses perform when tasked with replicating a mature web-based chat product end to end. It outlines a three-part evaluation setup, key findings on fidelity, self-testing depth, and long-context trade-offs, and reusable engineering practices for building standardized evaluation and acceptance workflows.

    1. Background and Problem Definition

    The industry is increasingly opening up the full capability stack of conversational AI products to developers. This includes not only chat features such as deep reasoning, retrieval, and file upload and parsing, but also multimodal interfaces for speech synthesis and speech recognition. The documentation even suggests that developers can use these interfaces to build a fully functional conversational web application on their own.

    This trend raises a practical engineering question: once the underlying model capabilities are exposed in a standardized way, what is actually difficult about replicating a mature web chat product? How much do different models and agent harnesses differ on such an end-to-end task?

    This article does not evaluate any specific vendor’s product. Instead, it frames the issue as a general technical problem: given the public interface and API documentation of a mature chat product, how can an LLM autonomously complete the full loop of requirements analysis, interface replication, and experience optimization? This capability has direct value for enterprises building their own AI applications and internal toolchains.

    2. Evaluation Design

    2.1 Three Deliverables

    To make the evaluation measurable, the outputs were divided into three categories:

    1. Product feature documentation and structure diagram: The model must act as a senior product manager and map out the target product’s information architecture, feature modules, and interaction paths.
    2. High-fidelity replica pages: The UI, interactions, and responsive layout must closely match the original product.
    3. Improved version: Building on an understanding of the original product, the model must enhance the UI/UX and features using industry best practices.

    2.2 Controlled Variables

    The evaluation used two rounds of prompts:

    • Round one: The full requirements and reference entry points were provided, and the model was expected to browse, analyze, and produce output autonomously.
    • Round two: Only the API key was added, to observe whether the model performed minimal validation or conducted deeper self-testing and fixed defects.

    The test covered six combinations of “model + agent harness,” spanning different technical approaches such as ultra-long context, strong reasoning, and code specialization, ensuring that the conclusions were horizontally comparable. All combinations followed the same operating guidelines, with differences coming only from the strategies of the model and harness themselves.

    3. Key Observations and Findings

    3.1 Fidelity Is a Detail Engineering Problem

    The difficulty of high-fidelity replication lies not in the main interface but in the details: the size and position of the input box on mobile, the corner radius and spacing of message bubbles, scroll-loading behavior, and cross-browser compatibility of share links. The best-performing combinations proactively documented acceptance notes, and their replica pages were nearly identical to the original product in mobile layout.

    3.2 Self-Testing Depth Determines Final Quality

    After the API key was injected in the second round, clear divergence appeared across strategies:

    • Shallow strategy: Delivered after verifying only API connectivity.
    • Deep strategy: Constructed test cases such as multi-turn conversations, oversized files, and abnormal inputs, proactively identified boundary defects, and fixed them.

    The code delivered by the latter was significantly more robust. This suggests that the “self-verification” stage of an agent harness often affects final engineering quality more than the model’s raw generation capability.

    3.3 The Double-Edged Sword of Ultra-Long Context

    The ultra-long context combination performed stably when ingesting large amounts of page structure and documentation at once, but it was also more prone to attention dilution, leading to missed local details. A reasonable approach is to parse in segments, build a structure checklist, and then implement module by module.

    4. Reusable Engineering Practices

    1. Structure first, implementation second: Produce the feature structure diagram and module list first, then code module by module to avoid the consistency drift caused by one-shot generation.
    2. Build an acceptance checklist: Include responsive breakpoints, keyboard interactions, error messages, and empty states as the basis for automated or manual acceptance.
    3. Strengthen the self-testing loop: Require the model to complete three types of tests before delivery—API connectivity, abnormal inputs, and multi-turn context—and output test records.
    4. Layered technology selection: Assign complex reasoning and architecture design to strong reasoning models, interface replication and boilerplate code to code-specialized models, and long-document parsing to long-context models.
    5. Security by design: Inject keys through environment variables, never hardcode them on the page side, and redact them in logs.

    5. Conclusion

    As open-source capabilities become widespread, replicating a chat product has shifted from a team-level engineering effort to a task an individual can attempt. The real competitive edge has moved from “whether it can be done” to “whether it is consistent, robust, and maintainable.” For enterprises, building a standardized evaluation and acceptance framework delivers more long-term value than chasing a single model ranking.