Multi-Model Replication of Conversational AI Products: Benchmark Findings and Engineering Lessons

    This article presents an evaluation in which multiple model-and-harness combinations rebuilt a conversational AI product from public specifications. It examines the benchmark design, deliverables, two-stage authorization process, validation depth, key security, context management, and toolchain selection. The main conclusion is that engineering quality depends less on one-shot generation and more on verification loops, exception handling, and the model’s ability to self-correct.

    1. Why Replicating Real Products Is a Meaningful Capability Test

    Traditional large-model evaluations often rely on multiple-choice questions, code snippet completion, or single-turn question answering. These tasks mainly measure knowledge density and local correctness, but they rarely reflect how a model performs on real engineering tasks. Real development work has three defining characteristics: requirements contain many implicit constraints, deliverables must be runnable end to end, and results must be verifiable by third parties.

    For this reason, using “replicate a publicly available conversational AI product web experience” as the benchmark question effectively tests multiple model capabilities at once through an open-ended task.

    The value of this kind of task is that it is naturally judgeable. The product feature document can be checked to see whether the information architecture is complete. The replicated page can be compared element by element for layout and interaction flow. The improved version can be scored subjectively but with clear rationale through usability review. Compared with simply asking whether a model says it can write frontend code, the artifact running in a browser is the only effective evidence.

    2. Evaluation Design: Six Model + Harness Combinations

    A key design choice in this evaluation was not to assess models in isolation, but to assess the entire “model + harness” system. The harness refers to engineering components wrapped around the model that handle orchestration and constraint enforcement. It typically includes four capabilities:

    • Context management: decides which files and prior conversation turns enter the context window, and how to compress or retrieve them.
    • Tool invocation: provides external capabilities such as file reading and writing, command execution, browser access, and screenshots.
    • Execution environment: handles sandbox isolation, dependency installation, port usage, and process lifecycle management.
    • Verification loop: automatically reruns checks after changes and feeds failure information back to the model.

    The evaluation used six combinations covering different technical routes: a self-developed model with a multi-agent collaboration mode; flagship international models paired with two mainstream coding-agent tools; an ultra-long-context model paired with browser automation; a long-context model paired with an agent mode in its own client; and a general-purpose large model paired with its accompanying agent platform.

    This arrangement intentionally changed both “model capability” and “toolchain capability” variables at the same time, making it possible to observe overall performance in real workflows.

    It is important to emphasize that all combinations received the same prompts, reference URLs, execution environment, and interaction method. Researchers did not intervene midway, add prompts, or correct errors. Only under these conditions can the observed differences be attributed to the strategies of the models and harnesses themselves, rather than to human intervention.

    3. Two-Round Prompt Protocol: The Design Intent Behind Progressive Authorization

    The evaluation used a progressive two-round prompt design. In the first round, the model received only role instructions, a reference page URL, an API documentation URL, and the target deliverables. No keys were provided. The model could only complete product analysis, feature documentation, and static page construction under the premise that it could not call real services.

    The API key was disclosed only in the second round, allowing the model to make real calls and verify whether the skeleton it had built could actually run.

    This design addresses a common mistake. If the key is provided from the beginning, the model is likely to skip early analysis and directly enter a “debug until it runs” loop. The final deliverable often ends up with a messy structure and insufficient documentation.

    Two-stage authorization forces the model to first establish structural understanding, and then refine that structure using real feedback. This is closer to actual enterprise development workflows: first produce design drafts and interface contracts, then perform integration and testing.

    4. Three Types of Deliverables and Scoring Dimensions

    The first round required three deliverables, corresponding to three different types of engineering capability.

    1. Product feature document and structure diagram

    This deliverable evaluates information extraction and structured expression. The focus is on whether it covers core features such as conversation lists, message streams, input areas, attachment handling, model switching, parameter settings, export, and sharing. It should also provide a three-layer structure of page, component, and data, and label state transitions such as generating, interruptible, failure with retry, and empty state.

    1. Replicated page

    This deliverable evaluates the fidelity of visual and interaction reproduction. In addition to layout spacing, font hierarchy, color schemes, and light/dark mode support, the completeness of the interaction flow is more important. For example, after user input, does a user message bubble appear? Is output rendered in a typewriter style? Can generation be stopped? Does conversation history remain after refresh?

    1. Independently improved page

    This deliverable evaluates product judgment and tradeoff ability. This item best differentiates model capability levels, because improvements do not have a standard answer. The model must identify shortcomings in the original product and provide explainable reasons for its changes, such as quick commands, citation anchoring, more readable error messages, and adaptive input areas for mobile devices.

    5. The Most Important Finding: Validation Depth After Receiving the Key

    The most informative differences appeared in the second round. All combinations received the same key, but their behavior split into two categories.

    One category performed only minimal validation after making changes: call the interface once, confirm that a non-empty response was returned, see one line of text appear on the page, and declare the task complete. This approach can pass a “has output” check, but it systematically misses boundary conditions.

    The other category proactively constructed stress scenarios: send ultra-long context to observe truncation and errors; send empty messages and pure whitespace; rapidly click send to test concurrency and deduplication; interrupt a streaming connection and retry; let the key expire to observe authentication failure messages; and simulate network jitter to see whether errors are swallowed. These additional steps exposed latent defects, which were then fixed.

    The difference between these two behaviors is essentially the result of the harness verification strategy and the model’s self-critical tendency. The former defines “runnable” as “one successful response.” The latter defines “runnable” as “still controllable under exception paths.”

    The direct lesson for engineering practice is this: when evaluating models, the metric that truly matters is not the completeness of the first output, but the closed-loop efficiency of discovering, reproducing, locating, and regression-testing problems.

    6. Key and API Security: A Boundary That Cannot Be Omitted

    At the implementation level, the biggest risk introduced by second-round authorization is writing the key directly into frontend code. No build tool can truly hide the bundled string. Once the key is sent to the browser, it is effectively public. The correct approach is to keep the key on the server side, while the frontend communicates only with its own backend.

    The following minimal schematic implementation keeps the frontend unaware of the key, while the backend handles authentication, rate limiting, and stream forwarding:

    1. # server.py - The key exists only in server-side environment variables
    2. import os
    3. from fastapi import FastAPI, Request
    4. from fastapi.responses import StreamingResponse, JSONResponse
    5. app = FastAPI()
    6. API_KEY = os.environ["LLM_API_KEY"] # not persisted, not exposed to the frontend
    7. UPSTREAM = os.environ["LLM_ENDPOINT"] # provided by the configuration service
    8. MAX_INPUT_CHARS = 32_000 # context budget
    9. RATE_LIMIT_PER_MIN = 20 # per-user rate limit
    10. @app.post("/api/chat")
    11. async def chat(req: Request):
    12. body = await req.json()
    13. messages = body.get("messages", [])
    14. if not messages or not str(messages[-1].get("content", "")).strip():
    15. return JSONResponse({"error": "empty_message"}, status_code=400)
    16. trimmed = messages[-8:] # simple sliding window to avoid unbounded growth
    17. payload = {"model": body["model"], "messages": trimmed, "stream": True}
    18. async def relay():
    19. # Pass through the upstream stream and convert upstream errors into structured events
    20. async for chunk in call_upstream(UPSTREAM, payload, headers=auth_headers()):
    21. yield chunk
    22. yield 'data: {"event":"done"}\n\n'
    23. return StreamingResponse(relay(), media_type="text/event-stream")

    Three additional engineering constraints are also required. First, authentication and quotas should be enforced at the gateway layer to prevent the service from being used as a free proxy. Second, logging services should record only request metadata and latency, not plaintext message content. Third, the frontend should provide distinguishable error codes for failure states, such as authentication failure, quota exhaustion, and upstream timeout, rather than a generic “something went wrong” message.

    7. A Reusable Validation Checklist

    The difference between the two behavior types can be turned into a checklist for accepting homegrown tools:

    • Normal path: time to first token, total latency, streaming continuity, and whether stop actions take effect immediately.
    • Edge inputs: empty strings, pure spaces, ultra-long text, and missing or malformed multimodal attachments.
    • Concurrency behavior: repeated send clicks, multiple tabs in the same session, and whether the previous round is canceled when switching sessions.
    • Exception paths: invalid keys, exhausted quotas, upstream rate limiting, connection interruptions, and idempotent behavior during timeout retries.
    • State consistency: refresh recovery, history ordering, light/dark mode switching, and whether mobile keyboards obscure the input area.
    • Security: no keys in the frontend, no unauthorized access to other users’ sessions, and log redaction.

    8. Context Strategy and Toolchain Selection

    Ultra-long context windows are often treated as a universal solution. However, stuffing all code and logs into the window at once is both expensive and inefficient. Attention dilution can significantly reduce modification accuracy. A more stable approach is retrieval-first: first use symbol indexing or vector retrieval to locate relevant files, then send only the necessary snippets and recent logs into the context window. The window should be treated as working memory, not as an archive repository.

    For toolchain selection, browser automation and screenshot capability provide clear benefits for frontend reproduction tasks because they give the model visual feedback. File system and command execution capabilities determine whether the model can compile, start services, and run test cases by itself. Combinations without a verification loop will see lower delivery quality regardless of how strong the model is, often producing results that merely “look like” the target.

    9. Conclusion

    This evaluation does not mainly reveal which model is stronger. It reveals a shift in evaluation dimensions: from measuring “the ability to generate once” to measuring “the ability to self-correct.”

    For enterprises, model selection should prioritize whether the toolchain has a verification loop, whether keys are properly isolated, and whether exception paths are included in acceptance criteria. For developers, moving the validation checklist into prompts and pipelines is more cost-effective than fixing issues afterward.

    This is also the most transferable conclusion of the evaluation: delivery quality is often determined not by the first line of code a model writes, but by what it does after being proven wrong.