Zero Labs
Industry News / AI

We Built a 100K-Line Enterprise App Using AI — Here’s Why Vibe-Coding Couldn’t

Source · Towards AI By Anil Sharma

From the publisher’s feed, collected in the ZeroLabs newsroom.

We generated an AI-native Aircraft MRO system — 55 entities, 78 API endpoints, 114 UI components, over 100,000 lines of code — in under a week. The blueprint took less than an hour.The conventional process to create a blueprint with similar detail would take four months.It consists of 44,000 lines of server-side code and 63,000 lines of UI code. Overall, the AI-generated code is 50%–60% of the production application code.Our assessment is that the server side has 40%–50% stubbed code that needs to be completed. The incomplete part is algorithmic and related to external systems integration and knowledge graphs.The blueprint surfaced the knowledge graph in the specification. By analyzing the artifacts using AI, we were able to deduce what the knowledge is and how to extract it from documents.Our approach was to blueprint first. The blueprint was created using Gemini 3.0 and a human-in-the-loop interface.Using blueprint artifacts, it took Claude Code 20 hours to generate the code autonomously.The following diagram shows the process we followed.From Requirements to Production: The Journey of an Enterprise Application using AIVibe-Coding vs Blueprint for Application GenerationThe blueprint approach works for generating a large body of code with a textbook structure. It doesn’t mean that vibe-coding is dead or some such claim. We will later see that vibe-coding works well once structure is available.Could we have built an application of such complexity using vibe-coding? Definitely not. A developer can’t carry the mental map of a complex application in their head and translate it into code using Claude Code.By analogy, you can’t build a thousand-room hotel one room at a time. Add fifty amenities, optimal use of the land, and city building code to the mix — it becomes a problem you can’t solve by prompting AI (vibe-code style). You need a blueprint of the application.Similarly, you can’t build a large enterprise-class application using the bottom-up approach of vibe-coding — prompting AI to generate code incrementally, one feature at a time, without an upfront architectural design. You need a blueprint of the application.There is a second problem with vibe-coding: it is developer-centric. It does not involve business experts, analysts, product managers, architects, and other roles in the process.The following diagram says it all about vibe-coding vs. blueprint.Vibe-coding can’t produce either normative or canonical output at scale, because there’s no single authoritative specification governing the generation.The interesting finding is that vibe-coding works well once you generate the structure of the code using a blueprint. Blueprint does not eliminate AI coding tools. It elevates them by grounding them in a system-level design.Vibe-coding vs. Blueprint (image courtesy of Eduardo Ordax)The rest of the blog answers the following questions:Is it possible to generate a blueprint of a large application using AI?Is the process repeatable?Can the blueprint be used to generate code at scale using tools like Claude Code?Will the blueprint and generated code be accurate — or will it produce plausible-looking output that is fundamentally wrong?How will different roles participate in and verify the output?You will find that the answers to the above questions are as follows:AI can generate a structured blueprint by orchestrating several smaller steps in a logical order.The output is accurate if human actors review and refine it by conversing with AI.Human participation leads to convergence.That blueprint can drive deterministic, large-scale code generation.The resulting system is more coherent, auditable, and understandable across roles.What is a blueprint of a software system?A software blueprint is a collection of structured documents that collectively provide a normative definition of a software system. Externally, to a user, these are presented as readable documents, including visuals, to understand and comprehend. Internally, they may be modeled using JSON/XML schemas, RDFs, or knowledge graphs.Blueprint-driven development is a superset of spec-driven development. Rather than focusing on individual specifications, a blueprint unifies them — connecting object models, APIs, workflows, and UI components into a single, cohesive architecture.An AI-driven blueprint should fulfill the following requirements.AI should generate it from a requirements document, with a human-in-the-loop interface that operates using natural language.Internally, it should adhere to a formal schema so an AI system can consume it for code generation.Externally, it should be easy to understand so people in different roles can review and validate it.Together with human-in-the-loop input, an orchestrator should converge on a desired blueprint.List of blueprint artifactsThe following diagram shows a list of AI artifacts. They resemble steps of SDLC (Software Development Life Cycle).Artifacts of a Structured BlueprintRequirements: This is input to the workflow.Requirements Analysis: This agent analyzes requirements to determine gaps using AI. It prompts the user with questions, providing one or more possible answers. The user can edit or select the right answer.Solution Discovery: This agent proposes solution options based on factors such as cloud services, deployment models, and available out-of-the-box services. The user selects the preferred approach.Software Specification: This agent generates functional and non-functional requirements of the application. It also generates technical specifications for various aspects of the application — object model, user interface scenarios, microservices, workflows, external integration, MCP tools, AI agents, deployment specifications, and cloud services mapping.Architecture: This agent prepares an architecture diagram of the application with a short description of each component.The remaining agents generate detailed designs for each layer of the application.In the past, a comprehensive specification of artifacts was time-consuming. Therefore software development teams rarely prepared a normative definition of artifacts and often relied on agile methodologies to refine them throughout the development process.AI can generate a comprehensive definition of artifacts in minutes and validate them by cross-checking. Due to the enormous speed gain, iterations of agile methodologies take on a different dimension.How AI generates blueprint artifactsEach artifact is generated by one or more AI agents. AI agents produce a normative specification and are deterministic.A workflow orchestrates AI agents in the order shown in the diagram. The input to each AI agent depends on the output of one or more previous agents.The input to the workflow is a business requirement document.Let us examine a few agents — how they work.The first AI agent is the “Requirements Analysis” agent. It analyzes the requirements and identifies gaps. It iteratively interviews the user presenting gaps and their possible resolutions. It repeats the process until no more gaps exist.The second agent takes the refined requirements from the ‘Requirements Analysis’ step and proposes solution options. Each option is based on factors such as cloud service choices, hybrid on-premise and cloud deployment, or available out-of-the-box services. The user can guide AI in a particular direction or propose solutions based on different criteria. Finally, the user selects one of the options.The ‘Software Specification’ agent takes requirements and the user-selected solution approach as input. It generates a functional, non-functional, and technical specification from them.‘Software Specification’ leads to an architecture diagram and so on.The agents for access control rules, object model, UI, APIs of microservices, workflows, external interfaces, MCP tools, and AI agents generate detailed designs for artifacts. Each of these agents is designed to work with minimal context. Some agents perform validation and cross-validation.The process described above has the following characteristics:Gradually refine the output of each previous step to arrive at detailed specifications and design.The AI does the heavy lifting — generating output, validating, and proposing solutions for gaps.The user has control over the direction of artifacts at each step.Based on our experience of MRO, the above process produces a detailed blueprint of an application. It is highly accurate (>90% based on tracing to requirements). Based on user input, agents were able to produce accurate results in one to three iterations.Requirements Analysis and Software Specification are two important steps where all roles (domain experts, PMs, architects, etc.) can participate. A solution architect participates in all activities. At the design step, architects, senior software engineers, and UI/UX experts participate in the process.The output of artifacts was detailed and structured enough that we were able to orchestrate large-scale code generation using Claude Code. It is covered in more detail below.To summarize our findings, an accurate blueprint of a large application can be generated if a workflow follows these steps and rules.Starting from requirements, it should proceed in steps towards a detailed blueprint.Human-in-the-loop is critical for accuracy and governance. Human interaction should be simple and friendly.AI output should follow a structure so it can be guided using the best principles of software design.Workflow orchestration and agent design should ensure cohesive output. It will require cross-checking outputs of different artifacts.You can generate a detailed technical specification and architecture of an application from requirements in less than five minutes. Review, refine, and iterate over it a few times. This process is many times faster than doing it manually. The coverage and accuracy are higher than in manual processes.Holistic analysis of applicationA blueprint serves as a detailed knowledge base of the application. Starting from the requirements, AI expands it in a stepwise manner. The steps are logically ordered so they can evolve in a cohesive manner. A user can analyze the output of each step and update it using a conversational, chat-like interface.Once the knowledge base of the entire application is available, users can analyze it to gain insight into the application. Based on analysis, users can regenerate the blueprint or develop a future roadmap. They can also use it to generate user documentation, marketing materials, whitepapers, etc.Generating code stepwiseWe were able to generate a detailed blueprint that served as the foundation for generating large-scale application code (>100,000 lines). We used Claude Code through a carefully crafted orchestrator. You can think of our orchestrator as an outer loop of the Claude Code loop.The orchestrator mimics how developers work. Like a development team, it generates code in layers starting with the bottommost layer. For example, it generates object model code first, API code next, and so on. It executes validation and testing loops at every step. After the server code is generated, it tests it using curl and other triggers. The orchestrator follows similar steps to generate UI code. Finally, it does UI and server integration testing.If you examine the entire process, we generate structured blueprints using stepwise refinement. Using complementary steps and Opus 4.6 through Claude Code, we then generate application code.Role of Vibe-codingOnce code was generated, the server-side code worked well 98% of the time. But the UI had 10%–20% broken links or API calls. We used vibe-coding to fix such issues. It took us about a week.Once the structure of the code was in place, we were able to extend modules using vibe-coding.Here is an example. A developer encountered a duplicate key error, described it in a prompt, and Claude Code fixed it by analyzing the generated code structure.Issue: Duplicate React Key in Threshold Tuning FormError:Warning: Encountered two children with the same key, `2`. Keys should be unique so thatcomponents maintain their identity across updates. Non-unique keys may cause children tobe duplicated and/or omitted. at select () at ThresholdTuningForm (threshold-tuning-form.tsx:60:3)Vibe-Code Prompt:The following error is coming under Reliability Engineer -> Hypothesis Testing -> clicking on Threshold Tuning.Fix:The `modelOptions` array merges `predictiveModels` and `cvModels` using `String(m.id)` as the key. Both model types use auto-incrementing database IDs, so a PredictiveModel and a ComputerVisionModel can share the same numeric ID (e.g., both have `id: 2`), producing duplicate keys.Prefixed each ID with its model class to make keys unique:```tsx// Before — duplicate keys when both tables have id=2const modelOptions = [ ...predictiveModels.map((m) => ({ id: String(m.id), ... })), ...cvModels.map((m) => ({ id: String(m.id), ... })),];// After — unique keys with model class prefixconst modelOptions = [ ...predictiveModels.map((m) => ({ id: `pm-${m.id}`, ... })), ...cvModels.map((m) => ({ id: `cv-${m.id}`, ... })),];```Updated the mutation functions to strip the prefix before sending to the API:```tsxconst numericId = parseInt(data.modelId.replace(/^(pm|cv)-/, ''), 10);```**Files Changed:**- `src/components/containers/hypothesis-testing-container.tsx`Well-structured code makes vibe-coding more effective.ConclusionMRO is a real customer application. Once we generated an architectural blueprint in an hour, it created excitement. Someone said, “Beautiful — this is what we imagined a system based on AI agents should look like.” Within a week, we had a POC deployed on the cloud.The reason we mention this — the blueprint approach is not merely a research exercise. It works.The real breakthrough isn’t that AI writes code — it’s that AI can manufacture structure. That makes App Factories possible. Once structure exists, code generation becomes predictable, scalable, and governable.We believe that the future will see many such factories. Some of them will be tailored to a particular domain. Human-in-the-loop will be very important. Factories will provide interfaces that make it easy for humans to interact with AI and comprehend its output.It may make you anxious or excited.When the wheel was invented, the powerful men of the community, pulling rocks uphill, were concerned. Soon they were wheeling more rocks and building castles.We Built a 100K-Line Enterprise App Using AI — Here’s Why Vibe-Coding Couldn’t was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.