Replicating LLM Applications in Practice: From Requirements to Delivery
This article reframes the challenge of replicating a mature conversational AI product as a practical engineering exercise. It breaks the task into three progressive deliverables—a functional specification, a high-fidelity UI reproduction, and an optimized redesign—and evaluates six combinations of models and agent harnesses. The key takeaway is that verification depth, not generation speed, determines delivery quality. The article includes a reusable harness structure, a two-round prompting strategy, and an acceptance checklist, along with recommendations for evaluating replicability and building observable, rollback-capable delivery pipelines.
1. Background: Why “Replicability” Has Become a Test of Model Capability
A recent trend in the industry raised an interesting question. When one open-source model team published its technical materials, it noted that developers could reproduce a complete conversational application one-to-one. The statement quickly sparked community discussion. On one hand, open weights and open documentation genuinely lower the barrier to secondary development. On the other hand, a subsequent adjustment to usage limits made some developers realize that hosted services and self-hosted deployments differ inherently in cost structure and stability.
Setting aside the online commentary, the real lesson for engineering teams is this: the ability to replicate a mature product has become a composite measure of LLM engineering capability. It tests requirement understanding, long-context information extraction, frontend fidelity, API integration, and self-verification all at once. This article does not focus on any specific vendor’s product. Instead, it abstracts the scenario into a standard engineering exercise and offers a reusable methodology.
2. Task Design: A Complete Loop Built from Three Deliverables
To make the evaluation comparable, the task was designed around three progressive deliverables:
- Product functional documentation and a feature structure diagram: The model must first extract and structure information, producing a feature list, hierarchy, and key interaction descriptions.
- High-fidelity interface reproduction: The model must approximate the original product in both function and visuals, including layout, component sizing, and responsive breakpoints.
- An optimized version based on the model’s own judgment: The model is allowed to redesign using general best practices, testing its aesthetic judgment and product thinking.
Together, these deliverables form an “understand—reproduce—create” loop that avoids the bias of simply measuring how much code is generated.
3. Evaluation Matrix: Combining Models with Agent Harnesses
The evaluation used six combinations of “model + agent harness,” covering different positioning: a low-latency model tuned for speed paired with a multi-agent collaboration mode; a higher-tier reasoning model paired with a code execution environment; an ultra-long-context model paired with a standard-context model; and a general flagship model paired with the official client environment.
The key design choice here is to decouple model capability from harness capability. The same model performs noticeably differently under different harnesses, because the harness determines context management strategy, tool invocation, error retry mechanisms, and how artifacts are written to disk. A common combination pattern in engineering practice can be expressed in pseudocode:
# Minimal responsibility boundary of an agent harnessclass Harness:def plan(self, requirement): ... # Task decompositiondef act(self, step): ... # Invoke the model or a tooldef observe(self, result): ... # Parse artifacts and logsdef verify(self, artifact): ... # Automated acceptancedef loop(self, max_turns=20): ... # Termination condition and budget control
4. Prompt Engineering: Two Rounds Reveal the Real Gap
The prompts were designed in two rounds. The first round provided only the requirements and a reference entry point, asking the model to browse, extract information, and produce the three deliverables on its own. The second round added API keys to observe whether the model would actually connect the full chain.
The differences in practice were striking. Some combinations, after receiving the keys, performed only a minimal connectivity check before declaring completion. Others proactively constructed edge cases—such as oversized inputs, empty messages, abnormal responses, and concurrent requests—thereby surfacing defects early during integration and rolling back fixes. This shows that verification depth, not generation speed, is the dividing line that determines delivery quality.
A reusable acceptance checklist example:
[ ] Feature list coverage ≥ agreed threshold[ ] All key interaction paths work end to end[ ] No layout overflow at responsive breakpoints[ ] API error branches have fallback messages[ ] Interrupted streaming output can recover
5. Conclusions and Recommendations
Overall, the most stable combination was not the one with the largest parameter count, but the one that balanced rigor in documentation detail with interface fidelity: it proactively flagged acceptance items requiring cross-validation in its report, its reproduction matched the original product closely on details such as the mobile input area sizing, and its core paths were fully usable.
Three practical recommendations for engineering teams: First, incorporate “replicability” into selection evaluations and make decisions based on real deliverables rather than leaderboard scores. Second, standardize operating conventions and acceptance criteria to avoid harness differences contaminating conclusions. Third, for production environments, combine general capabilities such as the container platform, object storage, log service, and monitoring and alerting offered by Baidu AI Cloud to build an observable, rollback-capable delivery pipeline for model applications.
