How Six Intelligent Coding Approaches Recreate a Q&A Web App
This article compares six intelligent coding setups on one shared task: recreating an existing conversational Q&A web app. It covers product analysis, faithful UI recreation, experience improvements, a two-stage prompting workflow, typical differences among approaches, and practical criteria for judging understanding, fidelity, functionality, engineering quality, testing depth, and redesign value.
1. Why Test a Model’s Ability to Recreate a Web App
Intelligent coding models are no longer limited to completing code or generating a single function. They are increasingly able to analyze a product, build pages, connect APIs, run tests, and fix issues. For an existing conversational Q&A web app, a real recreation is not just “a similar-looking page.” It has to solve three problems at once:
- Understand the product structure. Identify the modules, how they are organized, and the steps a user takes to complete a conversation.
- Restore the interaction experience. Reproduce layout, color, spacing, input behavior, message display, response states, and mobile adaptation as closely as possible.
- Deliver a working product. The page should not remain a static demo. It should support session creation, message sending, streaming output, error prompts, history, and configuration.
This exercise therefore did not simply compare how much code each model produced. The task was split into three deliverables—a product document, a recreation of the original page, and an improved design—to observe how different models perform across a fuller software-engineering workflow.
2. A Shared Task and Delivery Scope
To reduce external variables, every test used the same requirements, the same page-access conditions, and the same acceptance criteria. Six combinations of “model + intelligent coding execution framework” were tested, covering agent collaboration, code generation, very long-context analysis, terminal-style development, and browser-assisted development.
Each approach had to produce three results.
2.1 Product Function Report
The report had to describe the target page’s core features, page composition, user paths, and dependencies between features. Beyond written description, it also needed a product structure diagram so a developer could quickly understand the information architecture.
A reasonable structure can be abstracted as:
Conversational Q&A web app├── User and identity│ ├── Sign-in state│ ├── User profile│ └── Sign-out├── Conversation management│ ├── New conversation│ ├── Conversation history│ ├── Rename conversation│ ├── Delete conversation│ └── Share conversation├── Message interaction│ ├── Text input│ ├── Multiline editing│ ├── Send message│ ├── Stop generation│ ├── Regenerate│ └── Copy message├── Content presentation│ ├── Plain text│ ├── Markdown│ ├── Code blocks│ ├── Quoted content│ └── Loading state└── System capabilities├── Theme switching├── Settings├── Error prompts└── Mobile adaptation
This work checks whether the model actually understands the product instead of jumping straight from the page to visual imitation.
2.2 Recreation of the Original Page
The recreation should stay as close as possible to the original experience. Acceptance cannot stop at a homepage screenshot. It should also check:
- Whether desktop and mobile layouts are each reasonable
- Whether the side navigation can expand and collapse
- Whether the input box supports multiline text
- Whether the send button changes correctly across states
- Whether loading or stop controls appear while a message is generating
- Whether long text, code blocks, and error messages display correctly
- Whether conversation state after a refresh matches expectations
- Whether empty conversations, first use, and error responses have clear prompts
A high-quality recreation often shows up in these edge states. A static page can look “similar,” but complete interaction flows and natural state changes show that the model has reconstructed the product more deeply.
2.3 An Experience-Based Improved Version
The improved version should not merely change colors or rearrange buttons. It should address real usage problems, for example:
- Place the actions new users need most where they are easier to reach
- Add message location and context navigation for long conversations
- Offer retry on network failure instead of discarding the typed input
- Give code, tables, and long text clearer visual hierarchy
- Reduce occlusion on mobile so the input area remains visible when the keyboard opens
- Layer model selection, parameter settings, and advanced features to reduce interface complexity
This task mainly tests whether a model can move from “copy what you see” to “understand, then improve.”
3. Designing a Two-Stage Prompt Workflow
The test used two prompt rounds instead of asking the model to finish everything at once.
3.1 Round One: Product Analysis and Implementation
The first round provided only the target page, feature goals, and delivery requirements. API credentials were not supplied yet. The model first had to observe the page, break down features, initialize the project, and implement the interface. This has two benefits.
First, it shows whether the model, without a real backend, will design mock data, abstract an API layer, and leave room for later integration. Second, it prevents the model from focusing only on “send one request” while ignoring product structure and interaction completeness.
A sound implementation should decouple the UI from API calls, for example:
async function sendMessage(payload, options) {const response = await fetch("/api/chat", {method: "POST",headers: {"Content-Type": "application/json"},body: JSON.stringify(payload),signal: options?.signal});if (!response.ok) {throw new Error("Request failed");}return response;}
With this separation, changing the server address, authentication method, or response format later does not require large changes to the page code.
3.2 Round Two: Provide Credentials and Require Acceptance
In the second round, the model received the necessary access credentials and was asked to make real calls, verify features, and fix problems. Differences between approaches became much clearer at this stage.
Some models, once they had the credentials, made only the simplest request, confirmed that the page returned text, and stopped. That approach is fast, but it easily misses streaming output, error handling, long-text display, duplicate submission, and conversation persistence.
Other models built multiple test scenarios, including:
- Sending an empty message
- Sending several messages in rapid succession
- Clicking stop while generation is in progress
- Simulating a network interruption
- Entering long content
- Restoring history after a page refresh
- Opening the input box on a small screen
- Copying a message that contains code
- Retrying a failed request
This style of testing is closer to real development and more likely to expose hidden defects.
4. Typical Differences Among the Six Approaches
4.1 Agent Collaboration
These setups usually split the task so different roles handle product analysis, visual implementation, API development, and testing. The advantage is a more complete structure, which tends to produce a product document, a page implementation, and an acceptance checklist.
If roles do not share a consistent state, however, the result can include duplicated work, inconsistent naming, or mismatched front-end and back-end interfaces. Agent collaboration does not automatically produce high quality. Shared directory conventions, interface contracts, and task boundaries are still required.
4.2 Code Execution
These setups are good at creating a project quickly, installing dependencies, editing files, and running the application. They can often deliver a reachable page sooner, which suits prototype validation and basic features.
The weakness is that the model may focus too much on “whether the project starts” and miss product detail. The page may send messages without solid error prompts. Buttons may be clickable but not disabled during a request. The mobile layout may render, yet the input box can be covered by the virtual keyboard.
4.3 Very Long-Context Analysis
Setups with a large context window have an advantage when reading multiple pages, long documents, and large amounts of code. They can keep visual information, API notes, and existing project code in the same analysis scope, which makes cross-file issues easier to find.
A large context window does not mean the model will test on its own. If the prompt does not explicitly require regression checks, the model may still stop at analysis and coding.
4.4 Terminal-Driven Development
These setups are usually strong at running commands, reading logs, executing tests, and modifying the project. They are efficient at diagnosing build errors, dependency conflicts, path issues, and runtime exceptions.
The risk is an engineering-heavy result: the code structure may look sound, while visual fidelity and interaction detail fall short. Terminal testing should be combined with screenshot comparison and walkthroughs of user paths.
4.5 Browser-Assisted Development
Setups that can observe and operate the page directly are better at understanding page hierarchy, button placement, and real interaction. Compared with reading a text description alone, they are more likely to notice hidden menus, hover states, and responsive changes.
Browser observation can still be affected by sign-in state, network conditions, and dynamic page content. The observation scope should be recorded so temporary content is not mistaken for a stable feature.
4.6 End-to-End Product Development
These setups try to move from requirements, design, and coding through testing in one pass. They are fast and often produce a relatively complete demo.
If there is no staged review, an early misunderstanding can travel all the way into the final delivery. The safer path is still to confirm the product structure first, implement the core flow next, and finish with real API calls and multi-device acceptance.
5. Building a More Objective Evaluation Standard
Judging “whether it looks similar” by subjective impression is unreliable. A multi-dimensional scoring model is more useful.
Product Understanding
Check whether the function report covers the core modules, whether the structure diagram reflects the real user flow, and whether core features, supporting features, and error states are distinguished.
Visual Fidelity
Compare overall layout, navigation width, content area, type hierarchy, button size, spacing, corner radius, color, and mobile behavior. Visual review works best when screenshot comparison is combined with hands-on use.
Functional Completeness
Check whether creating a conversation, sending a message, stopping generation, regenerating, copying content, viewing history, and showing errors all work. Do not only verify that the homepage loads.
Engineering Quality
Look at directory structure, component reuse, state management, API encapsulation, use of environment variables, and protection of sensitive information. Credentials should not be written directly into front-end source code or committed to a public repository.
Testing Depth
Assess whether the model actively runs boundary tests, failure tests, and regression tests. An approach that finds and fixes problems is usually more valuable in practice than one that only completes the first request.
Improvement Value
The improved version should explain which problem each design change solves. Surface polish is not enough. A good change should lower the learning cost, reduce mistaken actions, or improve efficiency during long sessions.
6. Security and Engineering Notes from Practice
In a real project, access credentials should be managed through server-side environment variables. The front end should call only controlled business APIs. The server should also set request timeouts, map error codes, apply rate limits, and redact logs so authentication data and user privacy are not written into logs.
When recreating a public web page, respect the boundaries around intellectual property, brand marks, page assets, and user data. Technical testing can be used to study interaction and engineering methods, but it should not directly copy protected visual assets, private code, or real user content.
7. Conclusion: Model Differences Go Beyond Code Generation
Overall, recreation quality depends on more than a model’s coding ability. It also depends on how the execution framework works, how tasks are decomposed, how tools are used, and whether the system tests itself.
In this exercise, the more stable approaches shared several traits:
- They analyzed the product before coding.
- They separated page, state, and API layers.
- They used a replaceable mock layer before connecting a real service.
- They ran multi-scenario tests after receiving access credentials.
- They actively checked mobile behavior and failure flows.
- They kept fixing issues based on test results instead of stopping after the first successful call.
- They set separate acceptance goals for the recreation and the improved version.
When evaluating an intelligent coding model, it is not enough to count generated files or judge whether the page looks similar at first glance. More useful questions are whether it understood the product, built a maintainable project, completed real verification, and kept iterating after problems appeared. The same test method can also be applied to intelligent reconstruction of admin consoles, knowledge bases, customer-support systems, and other complex web applications.
