A Practical Guide to Multi-Model Collaboration for Rebuilding Web Applications

    This article presents a practical experiment on using multiple models paired with agent execution frameworks (harnesses) to rebuild a conversational web application from a natural language requirement. It explains the controlled setup, the two-round prompting strategy with delayed credential injection, the prompt template, the five-stage execution workflow, and the differences observed across model and framework combinations in fidelity, initiative, and verification depth. Readers will find a reusable evaluation methodology based on unified inputs, layered acceptance checklists, and scripted self-testing, along with engineering recommendations for running such workflows reliably.

    1. Experiment Background and Goals

    As AI coding tools evolve quickly, “delivering a complete application from a single natural language requirement” has moved from demo to engineering practice. The original premise of this experiment was to take the full release of an open-source model family as the technical backdrop, select six combinations of “model + agent execution framework (harness),” and have them rebuild a conversational web application under identical constraints.

    This article deliberately strips out specific products and model names and keeps only the transferable technical question: under the same input conditions, how do different model and framework combinations behave differently, and how should engineering teams design evaluation and acceptance mechanisms?

    The unified deliverables were split into three categories:

    1. A product feature specification document with a feature structure diagram;
    2. A high-fidelity reproduction of the interface (matching the original as closely as possible in both function and visuals);
    3. An improved version based on the model’s own judgment (enhancing interaction experience and functional completeness).

    The experiment used two rounds of prompts: the first round provided only the requirement and a reference entry point; the second round added access credentials. All combinations kept the same operational steps, tool permissions, and acceptance criteria. The only variable was model capability and framework strategy.

    2. Variable Control and Evaluation Design

    To make the comparison meaningful, uncontrollable factors had to be minimized. The control strategy included:

    • Identical input: the same requirement description, the same set of reference pages, and the same tool permissions;
    • Identical workflow: analyze first, then implement, then self-test, with no manual intervention in between;
    • Delayed credential injection: credentials were provided only in the second round, to observe how models behave in a “verifiable state”;
    • Unified delivery: three types of artifacts, the same directory structure, and the same submission format.

    The most notable observation was the behavioral divergence after credential injection. Some combinations performed only the most basic connectivity check after receiving credentials and then declared completion; others proactively performed deeper verification, constructing boundary inputs and checking state consistency, thereby exposing defects and going back to optimize. This difference is not simply a matter of capability level, but the combined result of framework strategy and model tendency: some frameworks lean toward a “minimal closed loop,” while others lean toward “exploratory verification.”

    3. Key Details of Prompt Engineering

    The core structure of the original requirement prompt was “role setting + goal + reference entry point + tool description + three deliverables + clear existing configuration.” After engineering refinement, it can be abstracted into the following template:

    1. Role: Senior Product Manager + Frontend Architect
    2. Goal: Rebuild and optimize a conversational web application
    3. Input: <reference entry point> <API documentation entry point> <available tool description>
    4. Deliverables:
    5. 1) Feature specification document + feature structure diagram
    6. 2) High-fidelity reproduction version
    7. 3) Experience-enhanced version
    8. Constraints: Do not rely on any preset skills or external orchestration; execute directly

    Templatizing significantly improved the repeatability of evaluation. In practice, three points deserve attention: first, avoid stacking too many implicit constraints in the prompt, otherwise the model may lose track of some requirements; second, write the “acceptance criteria” into the prompt, for example, “the reproduction version must cover session creation, history retrieval, parameter adjustment, export, and sharing”; third, reserve a “verification instruction slot” for the second round, explicitly requiring what level of self-test to perform after credentials are obtained.

    4. Breaking Down the Execution Workflow

    A robust execution chain typically consists of five stages:

    1. Requirement analysis: extract the feature list and form a structured feature tree;
    2. Information gathering: visit reference pages and API documentation, recording interaction paths and state transitions;
    3. Architecture design: determine component division, state management, and data contracts;
    4. Implementation and self-testing: code, run, and fix issues to produce a minimal runnable version;
    5. Enhancement iteration: optimize the experience on top of the reproduction version and output a difference description.

    A schematic component division is shown below:

    1. App
    2. ├── components/
    3. │ ├── Sidebar/ # Session list and new-session entry
    4. │ ├── MessageList/ # Message stream and scroll anchoring
    5. │ ├── Composer/ # Input area, attachments, and parameters
    6. │ └── SettingsPanel/ # Model and generation parameters
    7. ├── state/ # Sessions, messages, configuration
    8. ├── services/ # Streaming API wrapper
    9. └── utils/ # Export, sharing, tracking

    5. Observations and Attribution of Differences

    In terms of behavior, the six combinations diverged noticeably across three dimensions:

    • Fidelity: how closely visual details and interaction paths matched the original;
    • Initiative: whether missing features were filled in without manual prompting;
    • Verification depth: whether systematic self-testing was performed after credentials were obtained.

    Attribution analysis shows that context window size affects “how much information can be held at once,” and long-context combinations tend to read through everything before acting; framework strategy affects “the pace of action,” and exploratory frameworks are more willing to iterate through trial and error. Only when the two are combined do differences in final delivery quality emerge. This suggests that evaluating models should not look only at single-shot generation quality, but also at their convergence ability in multi-round, verifiable environments.

    6. Recommendations for Engineering Implementation

    To reuse this method in an enterprise environment, the following practices are recommended:

    • Establish a layered acceptance checklist: check off items across four layers—feature coverage, interaction consistency, exception handling, and performance baseline;
    • Script the self-tests: incorporate connectivity checks, boundary inputs, and state consistency into an automated pipeline;
    • Standardize artifact conventions: use fixed directories and naming for documents, code, and description files;
    • Leverage cloud platforms to fill engineering gaps: use a container platform to host the runtime environment, object storage to archive artifacts, logging and monitoring services to track execution, and a message queue to decouple long-running tasks;
    • Accumulate prompts and evaluation sets: build a regression baseline to avoid starting from scratch each time.

    On Baidu AI Cloud, this kind of “multi-model collaboration + agent execution framework” practice can be closed-loop with general-purpose model services, container platforms, and logging and monitoring capabilities, turning a one-off demo into a continuously iterable engineering process.

    7. Conclusion

    The real value of this experiment lies not in “who reproduced it more faithfully,” but in revealing a reusable evaluation methodology: unified input, delayed credential injection, layered acceptance, and deep self-testing. When model and framework combinations are placed under the same yardstick, differences become explainable; when self-testing is scripted and artifacts are standardized, AI coding can move from “looks usable” to “engineering trustworthy.”