Rebuilding a Chat App with LLMs: A Framework for Evaluating Models and Agent Harnesses

    A chat application replication experiment compares six model-and-harness combinations using the same requirements, prompts, and workflow. This article explains its three-stage delivery process, the differences between minimal validation and systematic testing, and how engineering teams can use structured prompts and consistent evaluation procedures to assess AI-driven development.

    1. Background: From Open-Source Models to a Replication Experiment

    After a major AI vendor open-sourced its model family, developers began experimenting with using LLMs to recreate comparable products. The value of these exercises is not how closely an application resembles its reference. It is the broader engineering question they explore: Given the same requirements, prompts, and operating procedure, how do different models and agent execution frameworks differ in strategy and capability?

    One such experiment evaluated six combinations of models and harnesses—the frameworks that organize and execute an agent’s work. Each combination received the same assignment: recreate the web interface of a mainstream chat application and produce three deliverables:

    • A product requirements document and structural diagram.
    • A working web application implemented against the official API documentation.
    • An improved version based on the model’s own assessment and engineering judgment.

    Without the product branding, this is a reusable framework for evaluating LLM-driven software development. Its design offers useful lessons for developers and engineering managers.

    2. Experiment Design: Why Three Deliverables Matter

    The three deliverables assess progressively deeper capabilities, from understanding a product to implementing and improving it.

    Product Requirements and a Structural Diagram

    The first deliverable tests product reasoning. A credible recreation should begin with a breakdown of the target application, not an immediate rush to generate UI code.

    The model needs to identify how the main components fit together:

    • The core conversation flow.
    • Conversation history management.
    • Context management across multiple turns.
    • Streaming responses.
    • Application settings.
    • Error handling.

    The structural diagram should clearly communicate page hierarchy and data flow. This stage helps distinguish models that primarily generate code from those that can analyze requirements before implementation.

    A Working Application Built from the Documentation

    The second deliverable tests engineering execution. The experiment used two rounds of prompting:

    • Round one: Define the task. The prompt established a professional role, such as a senior product manager, identified the reference application and API documentation, and authorized the model to browse relevant pages independently.
    • Round two: Enable integration testing. A working API key was provided so the model could move beyond a demonstration and validate the application against the actual API.

    This separation made it possible to observe what each combination did once real integration became available.

    An Improved Application

    The final deliverable tests autonomous iteration. After recreating the application, could the model identify weaknesses and improve them?

    Potential issues included missing loading states, unhelpful error messages, and poor mobile layouts. This stage revealed how effectively the model applied its accumulated knowledge and engineering judgment rather than merely following an initial specification.

    3. Key Findings: Models and Harnesses Follow Different Strategies

    The experiment’s central observation was that a consistent procedure did not produce consistent behavior across model-and-harness combinations.

    The Minimal Working Loop

    Some combinations performed only basic validation after receiving an API key: send a request, confirm that the page displays a response, and declare the task complete.

    This approach delivers quickly, but it can leave important edge cases unexamined, including overly long conversation contexts, network failures, and interrupted response streams.

    Systematic Testing

    Other combinations took a more thorough approach. They constructed long, multi-turn conversations to examine context management, simulated error responses to check fallback behavior, and inspected streaming-rendering performance. They then used those findings to fix hidden defects.

    These behaviors showed a deeper interpretation of the assignment: an application that runs is not necessarily an application that is ready to use.

    Multi-Agent Collaboration

    Combinations using multi-agent frameworks typically divided responsibilities among planning, coding, and review roles. This could produce more complete deliverables, but information loss between roles could also cause implementation drift.

    Combinations built around very long context windows followed a different approach: keep requirements, code, and test results within a single context to reduce handoff losses. The trade-offs were greater inference cost and the risk of diluted attention.

    The practical lesson is that the harness matters alongside the model. The same model can produce substantially different results under different execution frameworks.

    4. Reusable Prompt Design Principles

    The experiment’s prompts suggest several practices that teams can reuse.

    1. Define a professional role. A role such as senior product manager or frontend engineer establishes expectations for how the model should approach and communicate the work.
    2. Provide authoritative references. Point the model to the target application and official API documentation, and permit independent browsing rather than relying on remembered interface details.
    3. Disclose information in stages. Provide requirements first and credentials later. Separating implementation from live integration makes the model’s validation strategy easier to observe.
    4. Require layered deliverables. Documentation, implementation, and optimization encourage a complete engineering cycle instead of an immediate jump to code.

    A representative prompt structure is:

    1. You are a senior product manager and frontend engineer. Your task is to:
    2. 1. Review the target application's pages and official API documentation.
    3. You may browse independently.
    4. 2. Produce a functional breakdown and a page structure diagram.
    5. 3. Implement a working web prototype based on the API documentation.
    6. 4. Once test credentials are provided, complete integration and
    7. perform systematic testing.
    8. 5. Deliver an improved version based on the issues you identify,
    9. along with an explanation of the changes.

    5. Lessons for Engineering Teams

    Establish a Consistent Evaluation Baseline

    Use the same prompts, inputs, and operating procedure when comparing different combinations. A shared baseline is a prerequisite for a fair comparison.

    Evaluate Behavior, Not Just Final Scores

    The distinction between minimal validation and systematic testing reflects how thoroughly a model has internalized the task’s quality requirements. These behavioral differences can be more informative about real development work than a score alone.

    Design the Workflow to Reveal Strategy

    Providing the API key only in the second round naturally exposes differences in integration and testing depth. Evaluation workflows should include stages that make such choices visible.

    Keep Humans in the Loop

    A consistent human operator managed the experiment. That matters: high-quality delivery still depends on people designing the workflow, interpreting results, and exercising judgment at review points.

    6. Conclusion

    This replication exercise offers a reusable evaluation method: use layered deliverables to structure the work, staged prompts to expose strategic differences, and a consistent procedure to support fair comparisons.

    As open-source models continue to approach the capabilities of leading closed-source systems, engineering efficiency increasingly depends not only on which model a team selects, but also on how that model works within its execution framework.

    For engineering teams, the practical next step is to develop a repeatable way to evaluate models and harnesses together—examining not just what they deliver, but how they plan, integrate, test, and improve it.