How to Evaluate Multi-Model AI Agents for Replicating a Chat Application

    This article presents a practical framework for evaluating how different combinations of large language models and agent execution frameworks replicate an existing chat application. It covers breaking a vague "clone this app" request into verifiable functional, interaction, visual, and engineering layers, designing a two-round prompt that reveals real behavior after API keys are provided, applying a weighted scoring model, avoiding common pitfalls such as key leakage and connectivity-only testing, and following a repeatable delivery workflow. Teams building conversational applications can reuse this process for model selection, acceptance, and iteration.

    1. Background and Problem Definition

    When a model provider publishes a complete list of application-side capabilities—deep thinking, web search, file input, speech synthesis, and speech recognition—and states that developers may build functionally equivalent chat clients, a natural technical question arises: given multiple candidate models and agent execution frameworks, how do you objectively compare their engineering ability to complete a composite “replication” task?

    The source material assigns the task to six “model + execution framework” combinations and asks for three deliverables: a product feature document with a structure diagram, a high-fidelity web front end, and a revised web front end improved according to the agent’s own judgment. What makes this design worth borrowing is that it does not simply measure “who writes code fastest,” but evaluates comprehension, replication accuracy, and proactive optimization at the same time.

    This article makes no recommendation or review of any specific vendor’s product. Instead, it abstracts the problem into a general one: given a deployed conversational application, how can a large-model-driven agent complete the full loop from requirement clarification to a runnable artifact?

    2. Task Breakdown: Turning “Replication” into Verifiable Engineering Items

    “Replicate a web front end” is too vague to accept or reject. In practice, it should first be split into four layers:

    1. Functional layer: session creation, streaming message output, context management, attachment upload, web search toggle, voice input and playback, share links, and history search.
    2. Interaction layer: input box position and size, send/stop button state machine, scroll and stick-to-bottom behavior, and soft-keyboard avoidance on mobile.
    3. Visual layer: design tokens (colors, corner radius, spacing, font sizes), dark mode, and loading skeletons.
    4. Engineering layer: state management, API encapsulation, error retry, and keeping keys out of the front end.

    Only at this level of detail does evaluation become comparable and model output become verifiable.

    3. Prompt Design: The Value of Two Rounds

    The source material uses two prompt rounds: the first provides only the requirements and a reference URL; the second provides the API key. This design exposes a key difference—once the key is available, the strategies of different combinations diverge sharply: some perform only the most basic connectivity check, while others proactively construct boundary inputs, exercise the streaming path end to end, find defects, and revise the code.

    From an engineering perspective, this suggests that the evaluation script should include “behavior after obtaining an external dependency” as a scored item, because it is closest to a real delivery scenario. A usable prompt skeleton is shown below:

    1. Role: Senior product manager + front-end architect
    2. Inputs: target app URL, capability documentation URL, available API key (provided in round two)
    3. Outputs:
    4. 1) Feature list and product structure diagram (with module hierarchy)
    5. 2) High-fidelity version whose interaction and visuals match the reference
    6. 3) Improved version, with reasons and trade-offs for each change
    7. Constraints: the key exists only in server-side environment variables; get the main path working before visual tuning

    4. Evaluation Dimensions and Scoring

    A weighted score is recommended so that “looks similar” does not dominate the conclusion:

    • Fidelity 30%: mobile input box position and size, control states, dark mode consistency.
    • Feature completeness 25%: whether the core path runs, and whether streaming output and interruption work.
    • Documentation quality 20%: clarity of the structure diagram hierarchy, and whether acceptance preconditions are noted (for example, a share link must be verified in another browser or an incognito window).
    • Proactive optimization 15%: whether each improvement has a clear reason rather than piling on unrelated features.
    • Stability 10%: whether the second round of changes introduces regressions.

    The most stable combination in the source material did not win on wording. Its advantage was that the documentation proactively stated acceptance caveats, and the replicated version matched the reference closely in mobile details—showing that making implicit acceptance conditions explicit is a marker of engineering maturity.

    5. Common Defects and How to Avoid Them

    • Key leakage: writing the key into front-end config or committing it to version control. Avoid it with a server-side proxy plus environment variables, and add a repository check hook.
    • Connectivity-only validation: declaring completion after sending a single request. Avoid it by preparing a minimal regression set covering empty input, very long input, attachments, stream interruption, and reconnection.
    • Visual drift: aligning only with the desktop layout. Avoid it by treating design tokens as the single source of truth and comparing screenshots across breakpoints.
    • Over-engineering: stuffing the improved version with unrelated capabilities. Avoid it by requiring every change to state its reason and impact scope.

    6. A Practical Delivery Workflow

    1. Clarify and model: produce the feature list and structure diagram, and confirm boundaries.
    2. Skeleton first: get the main path working (session—request—streaming render—interruption).
    3. Visual alignment: compare item by item per breakpoint and fix spacing and sizing.
    4. Dependency integration: inject the key, run the minimal regression set, and fix defects.
    5. Improvement iteration: optimize in small steps and keep rollback points.
    6. Acceptance records: document preconditions and known limitations.

    7. Conclusion

    The real value of this kind of evaluation is not ranking one model above another, but distilling a reusable method: break vague requirements into verifiable items, use two prompt rounds to observe real behavior after dependency integration, and use weighted dimensions to suppress subjective impressions. For teams building conversational applications on cloud platforms such as Baidu AI Cloud, this workflow can be reused directly for selection, acceptance, and iteration, reducing rework and improving delivery certainty.