How AI Coding Assistants Built a Complete Web App from Scratch in 2026
This article benchmarks AI coding assistants on a medium-complexity React shopping site with 10 pages. It compares task completion, site-wide consistency, and code quality across conversational agents, project builders, and IDE completion tools, then summarizes common generation failures and a practical review workflow.
1. Why run this experiment
Over the past two years, AI coding tools have moved from code completion to task-level generation. A developer can describe a requirement in natural language, and an intelligent coding IDE can break the work into steps, create files, run and debug, and produce a project that actually starts. Leading agent-style coding assistants have shown how far that model can go. Network access, subscription cost, and data-compliance constraints have also pushed many teams to look at region-specific alternatives.
Marketing pages are a weak basis for selection. A more reliable test is a real task of moderate complexity. The task used here has three traits:
- Manageable scope: 10 pages, about two hours of manual work, and roughly 10–30 minutes for an AI attempt.
- A full user path: browsing, purchase, login, and an account area, so global consistency can be checked.
- Objective checks: whether the app runs, whether routes are correct, and whether forms validate.
2. Task definition and evaluation framework
2.1 Prompt design
The prompt was kept deliberately short to test how well a tool fills in an underspecified request:
Build a frontend shopping site with React and 10 pages:home (product list), product detail, checkout, purchase success,login, registration, user-center dashboard, orders,wallet (coupons), and settings.
2.2 Three core dimensions
- Task completion: Can the tool generate and run all 10 pages in one pass? After errors, can it repair them on its own?
- Site consistency: Do the 10 pages share one design language (color, components, navigation)? This is the most common failure in multi-page generation: individual pages look acceptable, but the site feels disjointed.
- Code quality: Are routes clear, is state handled reasonably, are styles separated from logic, and is mock data decoupled from components?
3. Mainstream interaction patterns
Intelligent coding IDEs in this comparison fell into three interaction styles, each with tradeoffs.
3.1 Conversational generation (Craft/Agent mode)
The representative experience is a natural-language conversation in which the AI decomposes the task and keeps executing. The advantage is full context across the whole job. The drawback is a black-box process: intermediate outputs are hard to control. In testing, one major vendor’s tool in this mode ran all pages in a single pass, with stable responses and no obvious stalls. These products also tend to use concrete, personified assistant UIs, which feel more approachable than a traditional command-line style.
3.2 Builder-style project generation
Another class of tools follows the interaction habits of mainstream overseas products: a dedicated project-level build mode, sometimes with developer-friendly options such as a privacy mode. In testing, the first generation failed to run and needed several repair rounds. That is a useful reminder: task-level generation still needs a human in the loop. How precisely you locate errors and write fix instructions largely decides how fast the result converges.
3.3 Traditional completion plus Q&A
Tools such as Baidu Comate stay closer to day-to-day engineering. Inside an existing IDE they offer completion, comment generation, and natural-language Q&A. They fit incremental work better than one-shot generation. For maintaining an existing codebase, this mode is often more controllable than a full agent rewrite.
4. Typical generation problems and fixes
A cross-check of outputs from several tools shows recurring weaknesses when an AI generates a frontend app in one shot:
| Problem | What it looks like | Fix |
|---|---|---|
| Mobile-first layout | Default width assumes a phone | State “desktop-first and responsive” in the prompt |
| Broken auth pages | Forms misalign on small screens | Require forms to use a shared grid component |
| Placeholder images only | No realistic visual assets | Use a placeholder image service, or object storage plus a CDN |
| Coupled data | Mock data hardcoded in components | Ask for a /data directory and explicit types |
| Over-simple architecture | No route layers, no state management | Ask for a directory-structure plan before generation |
A practical approach is a two-step prompt: have the AI propose the architecture, confirm it, then generate.
Step 1: Propose the React project directory layout, route plan, and technology choices. Do not write code yet.Step 2: After confirmation, implement page by page using that architecture. Put all mock data under src/mock.
5. Findings and engineering advice
From this run:
- A one-shot full site is already usable. Leading tools can generally get the whole flow running, but “it runs” is still far from “it can ship.” Detail pages are too thin, form validation is rough, and error handling is missing.
- Code quality varies widely. Some tools separate styles from logic and organize routes sensibly. Others dump everything into a single file. Treat “is the architecture maintainable?” as a veto criterion when choosing a tool.
- Agent mode still needs a human check. A workable loop is: AI generates → run locally → static checks → human review → iterate the prompt.
- Match the tool to the team. New prototypes fit conversational agents. Maintenance of existing code fits completion-plus-Q&A tools embedded in the IDE, such as Baidu Comate. Teams that are sensitive about data should look first at privacy modes and local deployment.
By 2026, AI coding tools built for Chinese-language workflows were already competitive on ease of use, response speed, and understanding of Chinese requirements. The real contest is engineering quality: architecture, multi-file coordination, and how quickly autonomous debugging converges. For developers, the useful question is less “which product replaces which” and more whether you have your own benchmark task and checklist, so each upgrade can be judged on evidence.
