Insights

The Question Isn’t Whether to Use AI. It’s How.

Author
Janusz Hain
Published
November 23, 2026
Last update
November 23, 2026

Table of Contents

Key Takeaways

  1. Every way of coding with AI is a trade between speed and safety. The useful question is not whether to use AI, but how much of the work it decides and how much a person checks.
  2. Vibe coding is the fastest way to see an idea working. Nobody understands the code it leaves behind, so it belongs in prototypes and small internal tools, not in products.
  3. Using AI as an iterative assistant is the everyday default. The developer drives in small steps and reads everything, which fits most day-to-day work, greenfield apps and easy to medium products.
  4. Specification-driven development moves the human check to the plan, where mistakes are cheapest. It produces higher-quality code with fewer gaps and lowers the risk for the product and its maintenance.
  5. An AI factory lets the AI ship low-stakes changes without code review, while developers own the high-stakes work. It is the fastest model that still has rules, and it is likely to ship more bugs in the parts no developer reviews.
  6. A well-run factory is a "light" one: the AI stops and hands the work back to a person when a change has a high blast radius or when it is not confident in the context it was given.
  7. The workflow should follow a risk assessment, and the client should always know which approach is used and what its side effects are. In healthcare, anything that can reach a patient stays with specification and full review.

Is Your HealthTech Product Built for Success in Digital Health?

Download the Playbook
Playbook ebook illustration

Every Way of Coding With AI Trades Speed for Safety

The debate about AI in software development is usually framed as a yes-or-no question. Teams either "use AI" or they do not. In practice almost every team already uses it somewhere, and the real differences sit elsewhere: how much of the work the AI decides on its own, and how much of its output a person reads before it ships.

We see four distinct ways of working, and they sit on one line. At one end, the AI writes everything and nobody checks. At the other, a developer writes and reviews every line, with AI as a helper at most. Between them are two models that most professional teams actually use, and a newer one that removes code review for part of the work.

The four ways of coding with AI, from human control to AI autonomy

None of these is the right answer on its own. Each buys speed with a different kind of risk: unread code, missed requirements, bugs that reach users before anyone notices them. Choosing between them is an engineering decision, and it should be made the way other engineering decisions are made, by looking at what a mistake would cost.

The rest of this article walks through the four models one by one. The first three are short. Most of the space goes to the AI factory, because it is the least understood and the easiest to adopt for the wrong reasons.

Vibe Coding Is a Prototype Tool, Not a Delivery Model

Vibe coding means describing what you want in plain language and accepting whatever the AI produces. You run it, see if it looks right, and ask for changes when it does not. Nobody reads the code. The term was coined half as a joke, and it describes the working style honestly: you follow the vibe of the result, not the logic underneath it.

Its strength is speed to a first version. Someone with an idea can see it working in an afternoon, without waiting for a developer or writing a specification. For exploring an idea, that is hard to beat.

The weakness is everything that happens after the first version. Nobody on the team understands the code, so nobody can say what it does in the cases nobody tried. Security problems, data handling mistakes and fragile structure stay invisible until something breaks. Each new prompt tends to patch the symptom rather than the cause, and the codebase gets harder to change with every round.

Vibe codingProsFastest path to something working; no technical skill needed to start; cheap way to test an ideaConsNobody understands the code; hidden bugs and security issues; maintenance gets harder with every changeWhere it fitsPrototypes, clickable demos, personal tools, small internal tools with a handful of users, testing an idea before investing in itWhere it doesn'tCustomer-facing products, sensitive or regulated data, anything meant to grow into a product

We use it, and we recommend it, for two jobs: finding out quickly whether an idea is worth building properly, and small internal tools where a bug costs a colleague a few minutes, not a customer's trust. When the answer is yes, the prototype is a reference for what to build, not the start of the codebase.

The Iterative Assistant Is the Everyday Default

In the iterative model the developer stays in the driver's seat. They break the work into small steps, ask the AI to draft one piece at a time, read what comes back, adjust it and move on. The AI writes a large share of the code, but every line passes through a person who understands where it fits.

This is how most teams start with AI, and for good reason. It is easy to adopt, it needs no new process, and quality stays with the developer. Boilerplate, tests, refactoring and unfamiliar APIs get noticeably faster, while design decisions remain human.

The limits are about scale and memory. The speed-up is real but modest, because the developer still reads and steers every step. The direction lives in prompts typed on the spot, so two developers, or the same developer on two days, can get different results for the same task. Context is lost between sessions unless someone writes it down.

AI as an iterative assistantProsEasy to adopt; quality stays with the developer; steady speed-up on routine work; no change to the team's processConsSmallest speed-up of the AI-heavy models; results depend on ad-hoc prompts; context is lost between sessions; hard to repeatWhere it fitsMost day-to-day work; greenfield apps; easy to medium products; teams new to working with AIWhere it doesn'tLarge features where gaps in the requirements, not typing, are the real bottleneck

For the majority of tickets in a typical product, this is the right model. It becomes limiting when a feature is big enough that the hard part is deciding what to build, not writing it. That is the problem the next model is designed for.

Specification-Driven Development Moves the Check to the Plan

Specification-driven development writes down what to build before any code exists, in enough detail to generate the code from it and check the result against it. The work runs as a chain: the requirements are gathered and their gaps turned into questions, a plan names what will change, which files are touched, how it will be tested and what is deliberately left out. A person approves that plan. Only then does the AI implement it, and the result goes through a full code review like any other change.

Specification-driven development pipeline

The plan is the important artifact. Most mistakes in software are not typos but misunderstandings: a missing business rule, a state nobody decided on, data the backend does not provide. Reviewing a plan catches those when they cost a paragraph to fix, not a rewrite. Because the specification and the plan are written down, the work is repeatable, and the next session or the next developer starts from the same context.

The cost is time up front, and a dependency on good written conventions. A project whose rules live only in people's heads will produce plans that are confidently wrong. Review does not disappear either. It is added: a person reviews the plan before any code exists, and the generated code still goes through a full code review.

Specification-driven developmentProsHigh code quality; fewer gaps reach implementation; lower risk for the product and for long-term maintenance; repeatable results; mistakes caught where they are cheapestConsSlower start; needs written project conventions to work well; still needs human review of the plan and the codeWhere it fitsComplex features; regulated and high-stakes domains; long-lived codebases; teams where several people touch the same codeWhere it doesn'tThrowaway work and small, obvious changes, where writing the plan costs more than the change

We have written separately about what this changed in our own delivery data over ten months, including where it did not help. Read: What Ten Months of Git History Says About AI Coding Agent Productivity.

The AI Factory Trades Code Review for Speed, on Purpose

An AI factory is a delivery model in which the AI writes and ships part of the code without anyone reviewing it. That sounds like vibe coding with better branding, and it is not. Vibe coding has no rules. A factory is a system: roles are split, every piece of work is routed by agreed conditions, and quality comes from automated checks and a fast feedback loop instead of a person reading each line.

The idea borrows its name from manufacturing. A fully automated "dark factory" runs with the lights off and no people on the floor. The model we describe here is deliberately a light one: people stay on the floor, own every decision with a large blast radius, and can stop the line. The gain is speed. The price, stated plainly, is a higher risk of bugs and regressions in the parts no developer reviews.

Roles Are Split by What Is at Stake

The developer owns high-stakes work: architecture, code standards, security, and the harness, meaning the environment, tooling and written conventions the AI works inside. The developer also steers, deciding what gets built and in what order, and keeps improving the observability and test tools the AI relies on. None of this has to change style. The developer's own part can run in a specification-driven or an iterative workflow, exactly as it would on any other project.

The AI owns low-stakes work: small features, routine changes and fixes with limited reach. It either opens a pull request for someone to accept or merges directly. Nobody reviews that code line by line. Its quality comes from the AI testing its own change and from deterministic tools that do not get tired: tests, linters, type checks, static analysis and CI gates.

Between the client and the factory sits a triage step that decides whether a ticket is picked up at all, and by whom. When a person does it, we recommend a QA engineer, because the skills match: regression testing, reproducing bugs and describing them precisely enough that an AI can act without follow-up questions. A developer or a project manager can do it too. Triage can also be automated: an AI agent judges which tickets are complex or risky enough to need a developer, sends the rest on, and escalates to a person when unsure. What matters is that feedback from the client or users never flows straight into the AI that builds; it passes through triage first.

AI factory roles

Every Ticket Is Routed Before Anyone Writes Code

The split is enforced by routing. Each ticket or bug report passes four questions, and only a ticket that clears all four goes to the AI:

  1. Does it touch architecture, security, code standards or the shared core of the system? If yes, it goes to a developer.
  2. Would a bug here be expensive, in money, data or users? If yes, it goes to a developer.
  3. Can tests and deterministic tools verify the result? If not, it goes to a developer.
  4. Is the ticket clear, with no discovery or product decision needed? If not, it goes back to the triage person or a project manager first.

Routing can be automated from these conditions, but the triage person can always overrule it and send a ticket straight to a developer.

A Light Factory Knows When to Stop

Routing decides where work starts. It cannot foresee everything that happens once the AI is inside the code, so a light factory also has stop rules that apply mid-task.

The first is blast radius. If the AI finds that a change it was given would require touching the architecture, a shared component, the data model, a security boundary or a dependency, or making any other decision with a wide reach, it stops. It does not make the change "carefully". It explains what it found and hands the ticket back to a developer.

The second is confidence in context. If the ticket is ambiguous, the documentation contradicts the code, or information the change depends on is missing, the AI does not fill the gap with a plausible guess. It routes the ticket back to the developer or the triage person with a specific question. A guess that compiles and passes the tests is exactly the kind of bug a factory without review is worst at catching.

These two rules are what separate a light factory from a dark one. They keep the AI's work small and well-defined, which is the only kind of work that automated checks can reliably verify.

AI factory routing and stop rules

What Replaces Code Review

Removing review does not remove the need for quality control; it moves it. A factory depends on four things working together:

  • Deterministic checks. Tests, linters, type checks and CI gates that block a change no matter who wrote it.
  • AI self-testing. The AI writes and runs tests for its own change, and where possible runs the app and checks the behaviour itself.
  • Observability. Crash reporting, logs and analytics good enough to notice a bug that slipped through, ideally before a user reports it.
  • A fast feedback loop. Regular regression passes over the whole product, plus client and user feedback, turned into clear tickets and fed back into routing.

If any of the four is weak, bugs accumulate faster than they are found. This is the most common way a factory fails: not with one dramatic incident, but with a slow rise in problems nobody had the instruments to see.

AI factory work loop

What You Gain and What You Pay

AI factoryProsMuch faster delivery; developers spend their time on the hardest and most important work; one developer can steer more than one factory; the product converges on what the client wants through fast iterationsConsHigher risk of bugs in unreviewed code, growing with the codebase; more regressions and lower overall code quality; needs strong observability; needs the most capable models to keep the bug rate down; higher AI usage cost; long-running projects need regular developer check-ups

Cost deserves its own line. The most capable models, an AI that tests and fixes its own work, and a constant stream of bug fixes use far more tokens than a developer using AI as an assistant. On simple projects the time saved outweighs that easily. On complex ones the total can exceed the cost of ordinary development, when the AI goes in circles on a tangled codebase or the project needs a restart. We track AI cost per project against the time saved, so that drift shows up early.

Where an AI Factory Fits, and Where It Doesn't

Five questions decide most cases, for a new project and for moving an existing one into a factory:

QuestionFitsDoesn't fitHow complex is the codebase?Small, modular features that rarely overlapLarge system with tightly coupled featuresHow big and forgiving is the user base?Many users who tolerate an occasional glitchFew users, who leave or lose trust after the first bugsHow good is observability?Many tests, good monitoring, users who report problemsFew tests, users who stay silentWhat does a bug cost?A visual glitch, nothing criticalMoney, personal data, clinical or legal consequencesHow settled is the specification?Built to a spec known up frontProduct shaped while it is built, needing constant decisions

The cost of a bug usually decides on its own. A content app with a large consumer audience, read-only data and no payments is a reasonable candidate: the worst typical bug is a layout problem, users report it quickly, and a fix ships the same day. A billing system, a financial reporting tool or anything in a clinical workflow is not, however simple its code looks. There, a wrong number leads to a wrong decision, and the people affected rarely file a bug report before the damage is done.

The answer does not have to cover a whole organisation or even a whole product. Good first candidates are often internal and back-office tools, prototypes on their way to production, new modules with a clear specification and limited reach, and test or developer tooling.

Introduce It in Stages, With a Way Back

A factory is not switched on; it is earned step by step:

  1. Qualify. Answer the five questions honestly, ideally with data from the project: how often the AI needs correcting today, and how many fixes each feature needs. Pick a pilot area where bugs are cheap.
  2. Build the harness first. Before the AI ships anything alone, the developer sets up the architecture, written conventions, CI gates, tests and observability. Without them, the extra bugs will be invisible.
  3. Set up triage. Agree who decides whether a ticket is picked up, and a ticket format the AI can act on without follow-up questions: steps, expected and actual behaviour, and a reference to the specification.
  4. Start in pull-request mode. The AI opens pull requests and a developer spot-checks them, learning where it goes wrong and tightening the stop rules.
  5. Move low-risk routes to direct merge. Only the routes that have proven reliable lose their human check.

Throughout, track AI cost, bug rate and regressions, and keep regular developer check-ups on the calendar. Agree an exit rule in advance: if the AI needs constant correction, or bugs turn out more expensive than assumed, the project steps back to specification-driven development with full review.

The Four Models Side by Side

Compared on the same dimensions, the four models spend speed and safety very differently.

Vibe codingIterative assistantSpecification-drivenAI factoryWho checks the codeNobodyThe developer, every stepA person approves the plan, then reviews the codeAutomated checks; people review only high-stakes workSpeedFastest to a first versionModerate gainHigh, after an up-front planning costHighest for routine workRisk of bugs reaching usersVery highLowLowestHigher in unreviewed partsMaintenance outlookPoorGoodBestDepends on the harness and regular check-upsAI costLowLowMediumHighestBest forPrototypes, experiments and small internal toolsMost day-to-day work, greenfield and easy to medium appsComplex features, regulated domains, long-lived productsSimple, modular products with cheap bugs and plenty of feedback

The models also mix. A team can run a factory for low-stakes changes while its developers build the core in a specification-driven workflow, and vibe-code a prototype of next quarter's feature on the side.

The Question Is How, and the Answer Starts With Risk

Whether to use AI in software development is no longer a live question. The tools are good enough, and teams that ignore them will be slower than teams that do not. The question that matters is how to use them on a given project, and the answer depends less on the tools than on what a mistake would cost.

Every model in this article is a point on the same trade-off between speed and safety. Vibe coding buys a first version in an afternoon and leaves code nobody understands. An AI factory ships routine changes faster than any team could review them, and accepts a higher risk of bugs in return. Specification-driven development gives up some speed at the start to catch mistakes where they are cheapest. None of these is wrong. Each is wrong for some projects.

That makes the choice of workflow an engineering decision, and it should be made like one. We think developers should propose the approach for each project, or each part of a project, based on an explicit risk assessment: how complex the code is, who the users are, how quickly problems would be noticed, and what a bug would cost them. Fashion, and the wish to look fast, are not inputs.

The client should always be part of that decision. Whatever model a team proposes, the client should know which approach is used, why it was chosen, and what side effects to expect. If an AI factory means more bugs between iterations in exchange for faster delivery, that is a reasonable deal only if the client has agreed to it knowingly. A faster workflow that the client discovers through production incidents is not a trade-off; it is a surprise.

In healthcare, the risk assessment usually answers itself. Where a defect can reach a patient, affect clinical data or put regulatory compliance at risk, specification-driven development with full human review stays the standard, and AI changes how the code gets drafted, not what it must satisfy before it ships. The faster models still have a place there, in prototypes, internal tools and non-clinical parts of a product, but only where the people affected by a bug would agree that the speed was worth it.

Frequently Asked Questions

What is vibe coding?
Vibe coding means describing what you want in plain language and accepting whatever the AI produces, without anyone reading the code. It is the fastest way to see an idea working, so it fits prototypes, clickable demos and small internal tools, not customer-facing products.
What is specification-driven development?
Specification-driven development writes down what to build before any code exists, in enough detail to generate the code from it and check the result against it. A person approves the plan, the AI implements it, and the result still goes through a full code review.
What is an AI factory in software development?
An AI factory is a delivery model in which the AI writes and ships low-stakes changes without code review, while developers own architecture, security and other high-stakes work. Every ticket is routed by agreed conditions, and quality comes from automated checks, AI self-testing, observability and a fast feedback loop.
What is the difference between a light and a dark AI factory?
A dark factory runs fully automated, with no people involved. A light factory keeps people in charge of every decision with a large blast radius and has stop rules: the AI hands the work back to a person when a change has a wide reach or when it is not confident in the context it was given.
Does an AI factory ship more bugs than code review?
It is likely to. Without line-by-line review, the parts no developer reviews carry a higher risk of bugs and regressions, and that risk grows with the codebase. It works best for simple, modular products where bugs are cheap, users report problems quickly and observability is strong.
How do you choose an AI coding workflow for a project?
Start from a risk assessment: how complex the code is, who the users are, how quickly problems would be noticed and what a bug would cost them. Different parts of one product can use different workflows, and the client should know which approach is used and what side effects to expect.
Can AI coding be used in healthcare software?
Yes, with limits. Where a defect can reach a patient, affect clinical data or put regulatory compliance at risk, specification-driven development with full human review stays the standard. The faster models fit prototypes, internal tools and non-clinical parts of a product.

Written by Janusz Hain

Android Developer
Janusz specializes in developing advanced and optimized Android applications, with expertise in designing robust architectures. Currently focusing on Kotlin Multiplatform and expanding his skills with AI-driven workflows for both coding and non-coding tasks, ensuring efficiency without compromising quality.

See related articles

Green background with decorative circles

Choosing an AI Workflow for Your Product?

Let's Create the Future of Health Together

We help health product teams decide how to build with AI for each part of a product, based on what a mistake would cost, and set up the specifications, checks and reviews that go with it.

Looking for a partner who not only understands your challenges but anticipates your future needs? Get in touch, and let’s build something extraordinary in the world of digital health.

Newsletter

Janusz Hain