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

    This article presents a controlled experiment on using multiple foundation models with an execution harness to rebuild a conversational web application. It covers the experimental design with two prompt rounds, acceptance criteria for three deliverables (functional documentation and structure diagram, high-fidelity replica, and improved version), reasons why model groups diverge, a five-stage engineering workflow, and key risk and governance practices. Readers will learn how to define explicit stopping conditions and build a repeatable, auditable evaluation standard for model and framework iteration.

    1. Background and Problem Definition

    When the capabilities of a class of foundation models are integrated into toolchains in an open manner, the real problem developers face is no longer “can we call a model,” but “how do we get multiple models to reliably deliver verifiable engineering artifacts under unified constraints.” This article turns that abstract problem into a concrete experiment: given a publicly accessible conversational web application, participants are asked to produce three types of deliverables—functional documentation with a structure diagram, a replica with high fidelity in interface and interaction, and an improved version built on an understanding of the original design.

    It is worth emphasizing that this article does not evaluate any specific model or tool. Instead, it abstracts the experiment into a comparative method of “multiple models + execution harness.” An execution harness refers to a layer of engineering infrastructure wrapped around the model that handles context management, tool invocation, file reading and writing, command execution, and result verification. The same model can perform noticeably differently under different harnesses, and this is itself one of the core variables the experiment aims to observe.

    2. Experimental Design: Controlled Variables and Two Prompt Rounds

    The experiment uses a design of unified input, unified operations, and delivery across rounds.

    The first round provides only the requirements, with no access credentials, to observe each group’s autonomous exploration and planning ability. The second round adds access credentials to observe how groups diverge once they have real operating conditions. The divergence points are typical: some groups perform only minimal connectivity verification after receiving credentials and then declare completion; other groups continue with deeper regression, proactively constructing boundary inputs, checking for residual state, and comparing style details, thereby exposing defects and iterating on fixes.

    The unified operating standard includes the same browsing and operating capabilities, the same file output directory convention, and the same delivery checklist. Differences are allowed only in the model and the harness themselves. This decouples “strategy differences” from “environment differences.”

    A suggested prompt skeleton is as follows (illustrative, not tied to a specific product interface):

    1. Role: Senior product manager + front-end engineer
    2. Goal: Rebuild and improve a conversational web application
    3. Inputs: Target site URL, open API documentation URL, logged-in browsing session
    4. Deliverables:
    5. 1) Feature list + feature structure diagram (text tree or diagram description)
    6. 2) High-fidelity replica (consistent layout, components, and interactions)
    7. 3) Improved version (explain rationale and trade-offs)
    8. Constraints: Survey before acting; make each step rollback-able; provide a self-test report at the end

    3. Acceptance Criteria for the Three Deliverables

    The functional documentation and structure diagram should include the information architecture, core task flows, a state machine (session, message, attachment, error states), and exception paths, rather than simply listing buttons. The structure diagram is best expressed as a hierarchical tree, with each node annotated with its inputs, outputs, and failure handling.

    The key to the replica is not “looking similar” but interaction equivalence: streaming message output, stop generation, regenerate, session switching and history retention, scroll anchoring, empty and error states, keyboard shortcuts, and focus management. Acceptance should verify each item against a checklist rather than relying on visual inspection of screenshots.

    The improved version must provide a rationale for each change. Acceptable improvement directions include accessibility (contrast, keyboard reachability, screen reader semantics), performance (long-list virtualization, incremental rendering), observability (front-end error reporting), and collaboration (session grouping, export and sharing). Unacceptable improvements are those that introduce unverifiable “show-off” features.

    4. Why Different Groups Diverge

    Divergence mainly comes from three areas: planning depth, tool usage strategy, and stopping conditions. Planning depth determines whether a survey checklist is established first; tool strategy determines whether real operations replace guesswork; stopping conditions determine where a group stops between “it runs” and “it is deliverable.”

    Engineering practice should explicitly define stopping conditions, for example:

    1. Completion condition = 100% feature list coverage
    2. AND all key interaction cases pass
    3. AND no console errors
    4. AND every improvement has a written rationale

    Without explicit stopping conditions, models tend to converge after minimal verification, which is the root cause of results that “look complete” but are unusable.

    5. A Practical Engineering Workflow

    A five-stage workflow is recommended: survey, modeling, implementation, verification, and retrospective. The survey stage is read-only and produces a site structure and API capability list; the modeling stage converts features into a component tree and state machine; the implementation stage commits in small steps, each rollback-able; the verification stage runs regression with a unified case set; the retrospective stage records strategy differences and failure modes.

    For cloud deployment, this workflow can be carried by combinations of general-purpose capabilities: a container platform hosts the stateless front end and execution sandbox, object storage holds build artifacts and reports, logging and monitoring/alerting track build failure rates and durations, a message queue decouples long-running tasks, and a key management service centrally stores access credentials to avoid hard-coding them into code or prompts. Baidu AI Cloud offers corresponding product forms in these general categories, and teams can select according to their existing standards.

    6. Risk and Governance Considerations

    First, credential security: credentials should be injected only in the second round and should follow least privilege, be revocable, and be fully audited. Second, content trustworthiness: model-generated documentation needs manual spot checks to avoid fabricating nonexistent features. Third, licensing and compliance: rebuilding an interface involves visual and trademark elements and may be used only for internal evaluation, not for external release. Fourth, reproducibility: fix randomness and record the harness version and case set, otherwise conclusions cannot be compared.

    7. Conclusion

    The value of a multi-model comparative experiment lies not in selecting the “strongest model,” but in establishing a repeatable evaluation standard: unified input, unified environment, explicit stopping conditions, and a verifiable delivery checklist. Once this standard is fixed, teams can continue to obtain stable, comparable, and auditable engineering results even as models and frameworks iterate rapidly.