Multi-Model Collaboration for Code Review: Lessons from a Real Engineering Project

    This article shares practical lessons from running multi-model experiments on a real project: a mobile tool that uses LiDAR scanning to quickly generate 2D and 3D floor plans. The goal was to compress the full-home export workflow for large units (over 100 square meters) into two to three minutes. Rather than asking which model ranks first, the article shows how to assign different "working personalities" to different stages, using one model to turn vague requests into verifiable engineering constraints and another to challenge assumptions with reproducible experiments. It also covers evaluation set design, metric alignment, regression baselines, and cost control.

    In real projects, multi-model testing rarely produces a simple answer like “model X wins.” More often, the useful conclusion is “which model is suited to which part of the work.” This article uses a mobile tool that scans LiDAR point clouds to generate 2D and 3D floor plans as a case study. The objective is to reduce the end-to-end export time for large homes (over 100 square meters) to two or three minutes.

    Background: Why “Pick the Strongest Model” Is the Wrong Question

    As large language models improve quickly, teams often start model selection by asking which one is the strongest. In medium-to-large engineering tasks, that question is hard to act on, for three reasons:

    • Work is split into increasingly fine stages. Requirement clarification, solution design, code changes, defect localization, and performance validation each demand different strengths.
    • The same input can be interpreted differently by different models, and those differences directly affect how much rework is needed.
    • The real evaluation function is not single-point accuracy but end-to-end delivery time and defect escape rate.

    A more practical question is: at which stage of the current task can a model with a particular working style reduce communication and rework costs?

    The tool in this case study is already in production. Its core pipeline is: scan the point cloud, detect walls, reconstruct the 2D plan and 3D structure, allow on-site wall tapping to mark measured dimensions, attach site photos to walls, and export a report. The recent optimization goal is clear: keep the underlying recognition capability unchanged and bring the full-home export flow for large units down to two or three minutes. That constraint turns the problem from an algorithm problem into a process and engineering problem.

    Stage 1: Requirement Clarification Needs Verifiable Constraints, Not Guess-Based Code Changes

    When the requirement description, local project code, and on-device diagnostic logs were handed to a model, the better responses shared a common pattern. Instead of following surface-level technical guesses and modifying the underlying recognition layer, the model first read the logs to locate where time was spent. It pointed out that post-processing and modeling took only one to two seconds, and that the real room for speedup lay in the overall workflow pacing. It then proposed interaction-level tradeoffs and proactively flagged that one possible change would touch the boundaries of the existing trial entitlement. It also factored in different housing conditions and export expectations.

    The value of such a response is that it translates a vague request into verifiable engineering constraints. A reusable prompt skeleton looks like this (illustrative):

    Goal: With recognition capability unchanged, reduce end-to-end export time for large homes to under 120 seconds.
    Inputs: requirement description, project structure notes, on-device diagnostic logs, existing telemetry field list.
    Requirements:

    1. First provide a time-distribution hypothesis and a validation method.
    2. List candidate optimization paths and the impact scope of each.
    3. Mark whether each path touches entitlement, compatibility, or export-format boundaries.
    4. Output acceptance metrics and the criteria for judging them.
      Prohibited: modifying underlying recognition parameters before reading the logs.

    The key point of this prompt is not the wording but moving the acceptance criteria to the front. In engineering practice, the root cause of requirement rework is often not insufficient model capability but missing acceptance standards.

    Stage 2: Empirical Validation Needs Reproducible Experiments, Not Verbal Judgment

    Given the same code and logs, another class of model behaves very differently. It skips small talk, goes straight to experiment design, and runs hundreds of adversarial simulations in a real game or simulation engine to rank candidate solutions with data.

    In this case, that working style is well suited to an empirical role for performance and stability: build a sample set covering different room layouts and occlusion conditions, repeatedly run the full scan-to-export pipeline, record per-stage time, failure rate, and retry count, and run controlled experiments on candidate changes.

    An illustrative experiment record structure:

    run_id, house_area, room_count, occlusion_level, scan_duration, reconstruct_ms, export_ms, retry_count, failure_reason

    Only after the metrics are aligned can you fairly compare the real gains of “workflow pacing optimization” versus “local algorithm tuning.” Empirical conclusions must be reproducible: fix the device and OS version, fix the sample set, and fix concurrency conditions. Otherwise the data is not comparable.

    Collaboration Framework: Let the Two Working Styles Review Each Other

    The most effective approach is not to choose one model but to put both into the same project and have them review each other. A recommended three-stage flow:

    1. A product-oriented model outputs the constraints and tradeoff list.
    2. An empirical-oriented model turns those constraints into an experiment matrix and produces data.
    3. The two cross-review: the first checks whether any change crosses entitlement or experience boundaries; the second checks whether conclusions are backed by data.

    The cross-review rules can be reduced to four:

    • Every optimization item must come with an acceptance metric.
    • Every metric must state how it is collected and the sample scope.
    • Any change touching entitlement or compatibility must be explicitly flagged.
    • Any statement like “it feels faster” must be replaced with a reproducible experiment ID.

    Evaluation Set and Metric Design

    The evaluation set should cover both typical and extreme scenarios: large homes over 100 square meters, multi-room long corridors, mixed load-bearing and lightweight partition walls, door and window occlusion, low-light environments, and users who pause and resume scanning midway.

    Metrics should include at least end-to-end time, per-stage time share, point cloud missing rate, wall-recognition rework count, export success rate, and report readability score. Maintain a regression baseline and run the same sample set on every change to avoid “locally faster, overall slower.”

    Cost and Risk Control

    Multi-model collaboration is not free. Control three types of cost in engineering:

    • Call cost: allocate budget by stage, and prefer batch-executable approaches in the empirical stage.
    • Latency cost: keep cross-review in an offline step so it does not block the user’s main path.
    • Cognitive cost: standardize outputs into tabular conclusions to reduce back-and-forth comparison across multiple long texts.

    For risk control, stick to “gradual rollout + metrics dashboard + fast rollback,” and make entitlement-boundary and compatibility checks a fixed gate before release.

    Conclusion

    Back to the original question: instead of asking which model ranks highest overall, break the task into stages and put models with different working styles in the right seats. Requirement clarification needs a partner who understands the request and states boundaries clearly; empirical validation needs an engineer who runs experiments and speaks with data. Put the two in the same project to review each other, align metric definitions, and maintain a regression baseline. That is the reliable path to turning ideas into a sustainable business.