How to Evaluate Multi-Agent Collaboration on Rebuilding a Chat Web Page

    A conversational web page may look like nothing more than an input box and a message list, but delivering one tests requirement understanding, UI fidelity, API integration, error handling, and continuous improvement. This article explains how to design multi-agent benchmark tasks for replicating a chat web page, how to structure acceptance criteria across three deliverables, which quantifiable dimensions to record during evaluation, and what a production-ready conversation web page architecture should include—from streaming output and session state to credential handling and regression testing. Readers will gain a practical, repeatable framework for comparing models and execution environments fairly and rigorously.

    A chat web page looks simple—an input box plus a message list—but actually delivering one tests requirement understanding, UI fidelity, API integration, error handling, and continuous improvement. When comparing multiple models and execution environments on the same task, the most valuable signal is not who produces a working page first, but who can deliver, under identical constraints, an acceptable product specification, a runnable replica, and well-reasoned improvements. This article walks through how to design such tasks, how to run acceptance testing, and what common structure a chat product should have.

    Start by Splitting the Goal into Three Deliverables

    For replication tasks, a single instruction like “make it look like the live site” invites models to substitute aesthetic judgment for functional completeness. A more robust approach is to fix three deliverables and define the dependencies between them.

    First, a product feature specification with a structure diagram. The spec should cover entry points, conversations, messages, model or capability switching, history, sharing, settings, and error and empty states—not just a list of page names. The diagram must express module boundaries: what belongs to the presentation layer, what belongs to conversation state, and what must pass through the server. Without this layer of documentation, a later page may look good, but you cannot tell what is missing.

    Second, a high-fidelity replica. The acceptance criterion is behavioral and informational-architecture consistency, not “similar style.” This includes the position and size of the input area on desktop and narrow screens, message alignment, loading and interruption states, long-text wrapping, code blocks with copy buttons, and whether scrolling follows the latest message. Visual fidelity should be checked against the key states of the real page, not just a static screenshot of the first screen.

    Third, an improved version built on understanding of the original product. Improvements must state their trade-offs: which user pain point they solve, whether added capabilities break the original main path, and whether they introduce new privacy or cost issues. Publicly available research may be used to add common capabilities, but unverified capabilities must not be presented as implemented interfaces.

    The three deliverables should be mutually traceable: every core feature in the spec has a corresponding entry point in the replica; differences between the improved version and the replica are listed separately in the spec, so the two pages never blur into an unrecoverable mix.

    Compare Strategy with Unified Prompts, Not Luck

    When comparing multiple models, the operator’s prompts, materials, and acceptance steps must be identical. At least two rounds are recommended. In the first round, provide only the goal, the reference page scope, and the three deliverable requirements—no API credentials—forcing the executor to first complete the information architecture and UI skeleton. In the second round, provide restricted credentials for integrating real conversation capabilities.

    The point of splitting into two rounds is to observe strategic differences. Some executors, once they have credentials, run only the shortest-path smoke test: send one message, see a response, declare completion. Others keep probing boundaries: empty input, extremely long input, rapid consecutive sends, stopping mid-generation, network interruption, invalid credentials, whether the conversation survives a page refresh, whether a shared link still opens in a clean browser. The latter tends to uncover real defects in the replica. Comparative conclusions should be written as “different strategies,” rather than treating a lucky click in a single run as the full measure of a model’s capability.

    The prompts themselves must be repeatable. Avoid carrying task-irrelevant memories, personalized skills, or implicit login state. If the reference page requires login, explicitly define which regions a human may supplement with manual observation and which the executor must verify itself—otherwise “I’m already logged in” becomes an irreproducible hidden condition.

    Acceptance Dimensions Must Be Measurable

    Overall performance should not be scored on “how similar it looks.” Record at least the following dimensions, keeping failed samples for each:

    • Functional completeness: create a new conversation, multi-turn context, regenerate or edit, stop generation, history list, delete or rename, copy, and feedback entry—do they exist and work? Do not invent interfaces the original product does not have; only verify observed behavior.
    • UI consistency: font sizes, spacing, whether the input area jumps at different widths, whether the input is obscured on mobile when the on-screen keyboard appears, and whether the message area scrolls independently. The position and height of the mobile input box often expose replication quality better than color schemes do.
    • Streaming experience: perceived first-token latency, whether incremental rendering flickers, and whether the state correctly returns from “generating” to “ready for input” after completion. Evaluate the interaction only; do not fabricate latency numbers.
    • Cross-environment acceptance: shared links, login state, and third-party cookies frequently cause “works on my machine, fails in another browser.” The report should note the browser used and whether it was in private mode—this annotation itself signals engineering maturity.
    • Defect closure: after finding a bug, did the executor merely fix wording, or did it fix the state machine, add retries, and produce user-comprehensible error messages? The value of deep testing is surfacing these issues before delivery.

    The Common Structure of a Chat Web Page

    Regardless of visual differences, a production-ready chat web page generally contains these boundaries:

    • The presentation layer handles layout, themes, accessibility, and input experience.
    • Conversation state tracks the current conversation ID, message order, the generating flag, and drafts.
    • The access layer should not keep high-privilege credentials in the browser long-term; model calls should be proxied through the server. The frontend then only holds short-lived, minimal-privilege access, and rotating keys does not require redeploying the page.

    Streaming output should preferably use standard server-sent events or chunked transfer, with the frontend appending messages incrementally. The following example illustrates the browser-side consumption pattern and is not tied to any vendor protocol:

    1. async function readStream(response, onDelta) {
    2. const reader = response.body.getReader();
    3. const decoder = new TextDecoder();
    4. let buffer = "";
    5. while (true) {
    6. const { value, done } = await reader.read();
    7. if (done) break;
    8. buffer += decoder.decode(value, { stream: true });
    9. const lines = buffer.split("\n");
    10. buffer = lines.pop() || "";
    11. for (const line of lines) {
    12. if (!line.trim()) continue;
    13. onDelta(line);
    14. }
    15. }
    16. }

    The server uniformly handles timeouts, cancellation, content safety policies, and usage logging when forwarding. Cancellation should also notify the upstream to stop, so users do not keep consuming quota after hitting stop. Conversation ID, user ID, and request ID should run through the logs so that “one failed message in the UI” can be traced to a specific call.

    History and sharing must be designed separately. History is private account data by default; sharing is a read-only snapshot or a controlled link created through explicit authorization. If the improved version adds collaboration, it must first define who can read, who can continue the conversation, and how links expire or are revoked—never expose a conversation ID directly at a public URL.

    Interactions That Distort Most Easily During Replication

    The input area is the main path. On desktop it usually aligns with the bottom of the message list; on narrow screens it needs room for safe areas and the soft keyboard. Placeholder text, the send button’s enabled conditions, and the maximum height of multi-line input should all be in the acceptance checklist. Replicating only the static box, without “send disabled while generating, stop allowed,” makes users think the product is broken.

    Message rendering must distinguish user, assistant, system, and error messages. Long replies containing code, lists, and tables need dedicated styles, and copy should work per code block. Auto-scroll should follow new output only while the user is at the bottom; yanking the view back down while the user is scrolling up to read history is a classic replication failure.

    Empty, loading, and failure states are often missing from first-round static pages. If credentials only arrive in round two and the executor never goes back to fill in these states, the page will show a blank screen or raw error text when a real call fails. Acceptance should deliberately test with invalid credentials and with the network disconnected, at least once each.

    Principles the Improved Version Should Follow

    Improvement is not feature-stacking. Good general candidates include: discoverable keyboard shortcuts with a clear focus order, per-message copy and quoting, conversation search, interruptible generation, retryable failures that do not duplicate user-visible messages, explicit truncation notices for very long context, and larger touch targets on mobile. If adding attachments, voice, or web retrieval, separately explain whether the data leaves the current conversation, how long it is retained, and how users can delete it.

    Do not enable high-risk capabilities by default in the improved version—for example, letting the page hold a long-lived key, assembling unconstrained system prompts on the client, or silently uploading the entire history. These may make a demo feel more “connected,” but they destroy security boundaries over time and should never count as scoring items.

    The product spec should separate “existing capabilities” from “improvement hypotheses.” Improvement hypotheses may draw on public human-computer interaction knowledge, but must be labeled as not yet validated by live data—design suggestions must not be written as established facts.

    Credentials, Login State, and Evaluation Fairness

    When providing credentials in round two, keep the scope minimal: a dedicated test key, with quotas, revocable at any time, and allowed to access only the minimal interfaces needed for conversation. Long-lived keys should never appear in prompts, repositories, or frontend bundles. If the execution environment sends conversation logs back upstream, disclose this in advance and use samples containing no real user data.

    Login state also affects fairness. When the reference site is logged in, the executor may see sidebars, quotas, or enterprise features that anonymous visitors do not. The report should record the account type at the time of observation. Verifying share links in a different browser is precisely how this hidden login state is removed.

    Context length, whether internet access is allowed, and whether multi-step file edits are possible all change strategy across execution environments. Comparative conclusions should state the environmental constraints. For example, a long-context environment is more likely to read the entire API spec before editing the page, while a short-context environment may complete only the first screen. That is a difference in conditions, not proof that “the model can’t do it.”

    How to Organize Regression

    Maintain a single checklist for all three deliverables, covered by a fixed script: create a conversation, send a short message, send a multi-line message, stop, refresh, invalid credentials, and narrow-screen width. Pixel-exact comparison is unmaintainable, but threshold checks on the input-area rectangle, main column width, and key controls are practical. Re-run the checklist on every prompt or environment change, and keep known limitations in the report, such as “share links verified only in a logged-out browser.”

    For team collaboration: humans review the spec’s structure; the replica is checked by automation plus manual walkthrough; the improved version lives on a separate branch so improvements never overwrite the reference implementation. Classify defects as “not implemented,” “implemented but with wrong state,” or “cosmetic/wording only,” so the next round re-tests only the failures.

    Resource Partitioning for Deployment

    A demo can run on a single machine, but before opening it to external users, separate static assets, conversation storage, the call proxy, and logs. Static pages fit object storage or static hosting; conversations and configuration belong in access-controlled databases or caches; the call proxy runs on a container platform for horizontal scaling and key injection; logs and monitoring provide failure rates, cancellation rates, and exception traces. The same generic categories apply whichever cloud provider you use—cloud capabilities should not be described as features of the chat product itself.

    Before launch, verify content safety, access control, transport encryption, and log anonymization. Model-generated text must be rendered as untrusted content, never inserted into the page unescaped. Usage and quota are counted server-side; the frontend only shows necessary notices.

    Conclusion

    Multi-agent replication of a chat web page is a competition in requirement decomposition, replication discipline, and defect discovery under the same task—not in the polished illusion of a single demo. By separating the product spec, the reference implementation, and the improved implementation, isolating credentials across two prompt rounds, and using a repeatable checklist to accept streaming conversations, session state, and multi-device input areas, you can converge “looks similar” into maintainable engineering delivery. Executors with more proactive strategies typically keep hunting for boundary issues after round two; these differences should be recorded and factored into scoring rather than hidden behind off-script conditions.