A Comparative Technical Practice of Multi-Model Replication for a Conversational AI Web App

    This article presents a comparative engineering experiment that pairs six model-and-harness combinations to replicate a general-purpose conversational AI web interface. It covers requirement modeling, document and system architecture output, high-fidelity UI implementation with streaming, post-key-injection verification behavior, and reusable conclusions on acceptance checklists, multi-agent execution environments, long context, and secret management.

    1. Experiment Background and Goals

    As large models evolve quickly, a single model can no longer handle the full chain from requirement analysis to product delivery on its own. A common industry practice is to combine a reasoning model with an execution framework (harness) to form an intelligent coding unit with a closed loop for planning, coding, and verification. This article uses “replicate a general-purpose conversational AI web interface” as a unified task and observes six “model + execution framework” combinations side by side. The goal is not to rank any specific product, but to summarize transferable engineering methods.

    The task is broken into three deliverables:

    1. A product feature document and system architecture diagram;
    2. A high-fidelity conversational interface;
    3. An enhanced version with experience improvements based on personal judgment.

    The experiment uses two rounds of prompts. The first round provides only requirements and reference targets, with no keys. The second round adds keys to observe how each combination behaves once real integration conditions are available. All combinations share identical inputs, output paths, and acceptance criteria to keep the comparison fair.

    2. Variable Control Across the Six Combinations

    Six configurations are used, covering long-context, standard-context, high-reasoning, and general-purpose conversational orientations:

    • Combination A: a high-throughput fast model (top tier) + a multi-agent team collaboration framework;
    • Combination B: a high-reasoning model + a code execution framework;
    • Combination C: another high-reasoning model + the same code execution framework;
    • Combination D: an extreme long-context model + a standard-context model + the official client;
    • Combination E: a general-purpose top-tier model + the vendor client;
    • Combination F: a control group using a single model with no external framework.

    The key to variable control is that four factors, model capability, context length, whether the framework supports multi-agent work, and whether a real runtime environment is available, are deliberately spread across different combinations to make attribution easier.

    3. Phase One: Requirement Understanding and Document Output

    The first-round prompt asks the model to act as a senior product manager and produce a feature list, information architecture, and architecture diagram. High-quality combinations share a common pattern: they first clarify boundaries (login, conversation history, file upload), then output a layered structure (access layer, session management layer, model invocation layer, rendering layer), and finally provide a verifiable acceptance checklist.

    Low-quality output typically shows three problems: feature items are piled up without priority; the architecture diagram is inconsistent with the document; and exception paths (timeouts, rate limiting, interrupted streams) are missing. This shows that whether a model has the habit of “modeling before writing” directly determines how usable the document is.

    4. Phase Two: Interface Reproduction and Engineering Implementation

    In the first round without keys, most combinations could only produce static pages with interactions filled by mock data. Differences appeared in the details: whether streaming character-by-character output was implemented, whether long-text scrolling and auto-scroll-to-bottom were handled, and whether user input was preserved when a request failed.

    A minimal illustrative implementation skeleton is shown below:

    1. async function* streamChat(payload, signal) {
    2. const resp = await fetch('/api/chat', {
    3. method: 'POST',
    4. headers: { 'Content-Type': 'application/json' },
    5. body: JSON.stringify(payload),
    6. signal,
    7. });
    8. const reader = resp.body.getReader();
    9. const decoder = new TextDecoder();
    10. while (true) {
    11. const { done, value } = await reader.read();
    12. if (done) break;
    13. yield decoder.decode(value, { stream: true });
    14. }
    15. }

    This snippet highlights three pieces of engineering common sense: use streaming reads instead of waiting for the whole response, support an interruption signal, and decode incrementally to avoid garbled multi-byte characters.

    5. Phase Three: Behavioral Divergence After Key Injection

    In the second round, once keys were provided, clear strategy differences emerged between combinations. This is the most valuable observation of the experiment.

    • Shallow verification: the combination declares completion after a single successful request, without checking error codes or testing boundary inputs;
    • Deep verification: the combination actively constructs scenarios such as oversized input, concurrent requests, network interruption, and authentication failure, then reverts and fixes defects and runs regression tests.

    Take Combination D as an example: after receiving the key, it redesigned the session state machine and fixed the issue where the interface stayed stuck in a loading state after a stream interruption, while Combination C only added a key configuration item and did not touch existing defects. Under a unified operating procedure, this divergence can only be attributed to the strategy preferences built into the model and framework, not to differences in external conditions.

    6. Reusable Engineering Conclusions

    1. The requirements phase must enforce an acceptance checklist; otherwise “done” cannot be judged later;
    2. Whether the framework supports multi-agent work and a real execution environment significantly affects the defect discovery rate;
    3. Long context helps maintain cross-file consistency but adds interference from irrelevant information, so explicit constraints are needed;
    4. Sensitive configuration such as keys should be injected through environment variables and never hard-coded:
    1. export MODEL_API_KEY="<your-key>"
    1. Before delivery, run a minimal regression set: normal conversation, stream interruption, authentication failure, oversized input, and concurrent sessions.

    7. Conclusion

    Replicating a conversational web interface is essentially a combined test of requirement modeling, engineering implementation, and a verification loop. The experiment shows that model capability sets the ceiling, while the execution framework and verification strategy set the floor. For developers, the truly transferable takeaway is not the ranking of any combination, but turning clarification, acceptance, and regression into a fixed process so that different models can all produce usable results reliably.