Engineering Practice: Recreating an Open-Source AI Product Suite with Multi-Model Collaboration

    Recreating an open-source AI “full suite” is not a single-model UI job. This article explains how to split visual, structural, interaction, functional, and non-functional goals into a verifiable spec, run a generate–review–repair–accept pipeline across models, and measure fidelity with baselines, regression, and delivery reports.

    1. Problem definition: why a single model cannot recreate a full product suite

    An open-source AI “full suite” is rarely one page. It typically includes a model entry, conversation UI, parameter controls, history, share links, mobile adaptation, and permission or quota messaging. A common mistake is treating recreation as “generate a few pages” and judging only first-screen similarity, while ignoring information architecture, interaction states, error paths, and cross-device consistency. Quality is driven less by any one model and more by task decomposition, verifiable specs, a stable acceptance baseline, and a closed loop of cross-review and correction among models.

    From a delivery standpoint, the goal should be split into five categories: visual fidelity, structural fidelity, interaction fidelity, functional fidelity, and non-functional fidelity. Visual work covers layout, spacing, type size, color, radius, shadow, and breakpoints. Structure covers page hierarchy, component boundaries, and state organization. Interaction covers input, send, loading, retry, empty and disabled states, and keyboard behavior. Function covers complete core business paths. Non-functional work covers accessibility, performance, compatibility, security, and maintainability. These targets must be written into the spec so multi-model work can be compared and regression-tested.

    A useful summary of the original lesson: strong recreation is not “one model writes everything once,” but “multiple models handle spec parsing, UI generation, implementation, cross-review, and acceptance fixes,” with report-based delivery so fidelity is traceable. Completeness of the delivery report, share-link checks across environments, mobile composer position and size calibrated to a baseline, and regression of core features matter more than one-shot generation speed.

    2. Goal breakdown: establish an executable specification baseline

    The first step in multi-model collaboration is not code; it is a spec baseline. Split requirements into five layers: design tokens, page structure, interaction state machine, functional paths, and acceptance cases. Tokens unify spacing, type, color, radius, z-index, and breakpoints. Structure describes regions and component boundaries. The state machine covers idle, input, submit, loading, success, failure, retry, empty, and disabled. Functional paths define inputs and outputs of core flows. Acceptance cases turn “does it look similar?” into executable checks.

    For example, mobile input field position and size should not rely on visual guesswork from screenshots. Capture them as tokens and responsive rules, then validate with screenshot baselines and structural assertions. Share-link features must go beyond “it opens” and cover browsers, session state, cache differences, permission boundaries, and expiry messaging. For core features, keep a minimal regression set: the happy path must pass, exception paths must show clear messages, and key states must be recoverable.

    Illustrative spec fragment:

    1. {
    2. "page": "conversation",
    3. "tokens": {
    4. "fieldHeight": "var(--field-height)",
    5. "fieldGap": "var(--field-gap)",
    6. "mobileBreakpoint": "var(--bp-mobile)"
    7. },
    8. "states": ["idle", "typing", "submitting", "loading", "success", "error", "retry"],
    9. "acceptance": [
    10. "Mobile input area does not cover the safe area",
    11. "Share links open in the environment matrix",
    12. "Core path completes one full regression"
    13. ]
    14. }

    The value of this spec is alignment: different models output against the same contract instead of generating by feel. Clear specs make collaboration look like an engineering pipeline; vague specs amplify inconsistency.

    3. Multi-model pipeline: generate, review, repair, accept

    Treat collaboration as a repeatable pipeline, not a one-off chat. Typical stages: requirement parsing, spec generation, UI proposal, implementation, cross-review, automated checks, human acceptance, and report archival. Each stage needs explicit inputs, outputs, and exit criteria.

    Illustrative pseudocode:

    1. def build_replica(requirement, candidates, acceptance):
    2. spec = candidates["spec"].parse(requirement)
    3. ui_plan = candidates["ui"].propose(spec)
    4. impl = candidates["code"].generate(ui_plan, spec)
    5. review = candidates["review"].audit(impl, spec, acceptance)
    6. while review.blocking_issues:
    7. impl = candidates["code"].repair(impl, review)
    8. review = candidates["review"].audit(impl, spec, acceptance)
    9. report = run_acceptance_suite(impl, acceptance)
    10. return impl, report

    Division of labor is checks and balances, not “generate more variants.” A generator produces, a reviewer finds gaps, a repair model converges issues, and an acceptance suite returns objective results. For UI, one model can own tokens and layout, another interaction states, another accessibility and responsive risk. For functions, the reviewer should map every acceptance case so the UI does not look complete while paths are broken.

    Model output must be versioned and delivered as reports. Record spec version, implementation version, review conclusions, acceptance results, and known diffs. That reduces rework and limits regressions from later edits.

    4. Fidelity evaluation: from subjective similarity to measurable baselines

    The usual dispute is “does it look the same?” Resolve it with multi-dimension scoring: visual diff, structural diff, interaction coverage, functional regression, responsive coverage, accessibility, and performance baselines. Combine screenshot baselines with human review; assert page hierarchy and key components; measure state-machine path coverage; track core-case pass rate; cover at least desktop, tablet, and mobile; check focus order, semantics, and keyboard use; watch first load, interaction latency, and asset size trends.

    The mobile composer is a high-sensitivity area. Beyond position and size, check layout after the keyboard opens, safe-area adaptation, scroll-container behavior, focus retention, and whether disabled or error states push content out of view. Express the baseline with CSS variables and media queries:

    1. :root {
    2. --field-height: 44px;
    3. --field-gap: 8px;
    4. --bp-mobile: 480px;
    5. }
    6. @media (max-width: 480px) {
    7. .composer {
    8. min-height: var(--field-height);
    9. padding-bottom: calc(var(--field-gap) + env(safe-area-inset-bottom));
    10. }
    11. }

    Share-link acceptance needs an environment matrix: multiple browsers, viewport sizes, cache states, signed-in and signed-out, expiry, and insufficient permission. Cross-environment gaps belong in the report as known risks, not as “try another browser.” In general engineering terms, share features must sit in a cross-browser, cross-device matrix, with environment dependencies and limits stated in the delivery report.

    5. Engineering rollout: governance, compliance, and generic cloud hosting

    Real multi-model recreation needs governance. First, permissions and compliance: generated code, test data, screenshot baselines, and reports should be classified so sensitive data does not enter prompts or logs. Second, cost control: do not call the strongest model at every stage; route by complexity—light models for simple work, stronger models for critical review and repair. Third, observability: record generation time, review issue counts, repair rounds, pass rates, and regression failure distribution, and use that data to improve the pipeline.

    For deploy and run, generic capabilities such as containers, object storage, logging, and monitoring on Baidu AI Cloud can host build, publish, static assets, log collection, and quality monitoring of the replica. The point is not stacking products, but linking spec–implementation–acceptance–report: object storage for screenshot baselines and report archives, containers for preview environments, logs for acceptance runs, and alerts on core-path failures and regression trends.

    Finally, write acceptance into the delivery report: which pages have pixel-level calibration, which interaction states are covered, which browsers and devices were tested, which core features were regressed, and which diffs are known limits. Only when “looks like” becomes checkable items and “complete” becomes regressable paths does multi-model collaboration become reusable, auditable engineering practice rather than a demo generation.