Today, while browsing the internet, I came across a discussion about the software factory metaphor. Several people were arguing against it, and a few of them referenced Rob West's article, “The Agentic Software Factory Is the Wrong Metaphor”.
The central argument is that software development with AI agents is not really like a factory. It's more like design engineering.
I think there is some truth to that argument. But I also think it misses a few important things. In fact, I would argue that the factory metaphor is more relevant than ever. We just need to rethink what kind of factory we're talking about.
I've explored this broader shift in The Industrial Revolution of Software Is Here.
Not all factories manufacture the same thing
When we think about factories, we typically imagine production lines manufacturing the same product over and over again. The whole point is consistency: repeat the same steps, produce identical products, minimise defects, and maximise throughput.
And if that's what we mean by a software factory, then I agree that the analogy has its limitations.
After all, we're not producing the same software feature over and over again. Every feature is different. Requirements change, architectures differ, and the problems we're trying to solve are rarely identical.
But there is another kind of manufacturing system worth considering: flexible manufacturing systems.
Think about a factory that manufactures products for different brands. One company might ask it to manufacture a particular toy, while another might commission an entirely different one. The products are different, but the factory can accommodate both without having to build an entirely new manufacturing facility for every product.
The factory is designed to be flexible. It has processes, equipment, infrastructure, and quality controls that can be adapted to different products.
And I think this is a much better analogy for what we're trying to achieve in software engineering with AI agents.
We don't want a factory that manufactures the same feature repeatedly. We want a factory capable of manufacturing different features, adapting to different requirements, while maintaining consistency, quality, and efficiency.
Discovery and implementation are distinct activities
Before going further, I think it's important to distinguish between two activities that have always existed in software development: discovery and implementation.
Discovery is about understanding the problem, exploring possible solutions, reducing uncertainty, and figuring out what we should build.
Implementation is about taking what we've learned and turning it into working software.
These two activities have always been important, but AI is changing the economics of both.
Calling them activities rather than phases matters. This isn't a proposal for a big discovery phase followed by a big implementation phase. We should keep the loop short: decide on the next small, valuable outcome, make the requirements and acceptance checks for that slice clear, build and release it, then use what we learn to shape the next one. I've written more about this shift in Scrum Is Finally Dead, and We Have to Thank Coding Agents for That.
In my experience, AI has accelerated discovery considerably, perhaps even more than implementation.
Consider vibe coding. I have nothing against it. Quite the opposite: I think it's an incredibly powerful tool, particularly during discovery.
When exploring a new idea, being able to describe something and have a working prototype minutes later is enormously valuable. We can experiment with different user experiences, test assumptions, show something tangible to users, collect feedback, and iterate.
We can explore ideas that would previously have been too expensive to prototype.
Vibe coding is especially powerful during discovery, but I don't think it should be confined to discovery. Whether it's sensible to ship vibe-coded software depends on the context: the team's runway, the company's reputation, the risks of failure, how much we know about our users, and how quickly we need to learn.
Imagine you're a student living with your parents, trying to start a company with little money and a lot of uncertainty. It may make sense to vibe-code a narrow MVP and get it in front of potential customers quickly, to find product-market fit and learn whether anyone will pay. Spending months building a polished production factory before knowing whether there's a business could be the wrong bet.
That doesn't mean ignoring risk. Before putting a prototype in front of real users, review its security and architecture. Tools such as Fable or Mythos can help with those reviews. The result may still be messy, but if it's cheap to build and teaches us something, the code doesn't have to be our long-term foundation.
Once there's traction and more resources, we can decide whether to harden the prototype or rebuild on a more deliberate architecture, using the MVP as a working reference for what users actually need. The lasting value of the prototype is the learning it captured. If implementation is cheap, throwing away code is no longer necessarily expensive.
But during discovery? It's incredibly powerful.
There is also an interesting consequence: the boundary between discovery and production becomes increasingly blurry.
For example, if you're working on an existing product, sometimes the only meaningful way to validate an idea is to deploy it to production and observe how users interact with it.
So, ideally, we should do as much discovery as possible with users before committing to implementation. We want to eliminate as many unknowns as we can.
But AI also gives us another opportunity within each cycle: we can explore the design for the next increment more extensively before committing to it.
AI makes design engineering much more powerful
Traditionally, before implementing a feature, we'd discuss the requirements, design an architecture, agree on interfaces, and produce an implementation plan.
This is where I think the design engineering argument really comes into play.
However, AI changes the economics of this activity too.
Previously, we might have designed one architecture and discussed whether it was good enough. Now, we can ask an agent to explore seven different architectural approaches, compare their trade-offs, identify potential problems, and discuss the pros and cons of each.
We can explore alternatives that we probably wouldn't have had the time or budget to investigate before.
We can combine ideas from different approaches, discard the ones that don't work, and gradually converge on a solution.
This is not just about asking an agent to produce an architecture document. It's about using AI as a thinking partner to explore the solution space much more extensively.
And this brings me to another manufacturing analogy.
The mould is the specification. Manufacturing the parts is cheap.
Think about manufacturing plastic components.
Before you can manufacture a plastic component at scale, you need to create a mould. Designing and producing that mould can be expensive. It requires careful engineering, precision, and validation.
But once the mould is ready, manufacturing individual parts becomes relatively cheap.
You invest heavily upfront in designing the mould, and then you can produce thousands of components with very little incremental effort.
I think this is a particularly useful analogy for AI-assisted software development. The mould is the specification and plan: the result of what we've learned during discovery and design, including what we're going to build, how it should work, and how we'll verify it.
But it isn't a blueprint for the entire product. It's the clear, complete specification for the next small, valuable increment. We explore the problem, evaluate possible approaches, define the necessary interfaces and constraints, and decide what we need to build and verify now—not everything we might ever build.
The factory uses that specification to build and verify the increment. Then we release it, observe how people use it, and feed what we learn into the next cycle of discovery and design. This isn't a waterfall handoff; the specification is a working agreement for the next step in a continuous loop.
Unlike a physical mould used to make identical parts, each software increment may need its own specification. The factory, however—the system for building, deploying, releasing, and learning from software—is reusable and should keep improving.
The point isn't to invest in a perfect design upfront. It's to make the next increment clear enough to build and verify, then get it in front of users so we can learn.
And this is precisely why I don't think the factory metaphor is obsolete.
Look at how physical products are designed
If you want to understand the distinction between designing a product and manufacturing it, look at the history of products such as the original iPod or Xbox 360.
There are fascinating images available online showing the different prototypes and iterations these products went through.
The early versions often look nothing like the final product. They're rudimentary, sometimes awkward, and occasionally completely different from what eventually ships.
But that's the point.
The designers explore different possibilities, experiment with form factors, test assumptions, and gradually converge on the final design.
Eventually, they arrive at a product specification that is ready for manufacturing.
And when the product enters the factory, the factory doesn't start experimenting with what the product should look like. That's already been decided.
The factory's job is to manufacture the product consistently and reliably.
Software is not fundamentally different.
We need extensive discovery and design before implementation. AI simply allows us to explore more alternatives, iterate faster, and make better decisions before committing to the production process.
We should learn from lean manufacturing and the Toyota Production System
This brings me to something I've written about previously.
In my article, Revisiting the Toyota Production System (TPS) in the Age of Coding Agents, I explored how principles from lean manufacturing and the Toyota Production System could be applied to software engineering in the age of AI coding agents.
I still believe this is a very useful analogy.
Once we've designed what we're going to build, we need to think carefully about the factory itself.
How do we organise the production process? How do we minimise waste? How do we detect defects early? How do we ensure consistency? How do we continuously improve the system?
These are not new questions. Manufacturing has been dealing with them for decades.
And I think software engineering has a lot to learn from that experience.
The interesting thing is that, with AI agents, the actual implementation work is increasingly being delegated to machines.
That doesn't mean engineers have nothing left to do. It means our responsibilities are shifting.
We are becoming responsible for designing the product, but also for designing the factory that produces it.
I've written more about this shift in Don't Trust the Agent, Trust the Factory.
And I think the second responsibility deserves much more attention than it currently receives.
By factory, I don't just mean CI/CD or a pipeline that turns code into a deployment. I mean the whole system we use to make software safe to build, release, and operate. That includes architecture designed for testability and observability; automated checks and load tests; feature flags, canary releases, and traffic shaping; and post-release monitoring, anomaly detection, and even chaos testing. These are quality controls and verification mechanisms, but together they also create feedback loops that help us detect problems and improve the product. The right mix depends on the system and the risks we're taking.
Designing for verification is a critical architectural principle
One of the biggest mistakes we could make when adopting AI agents is to focus exclusively on making implementation faster.
We also need to make verification cheaper, more reliable, and increasingly deterministic.
As I discuss in When Code Gets Cheap, Verification Becomes Expensive: How AI Changes the Economics of Software, cheaper implementation makes effective verification even more important.
Think about how physical products are manufactured.
When a car or an electronic device comes off a production line, manufacturers don't simply assume that it's working correctly.
They have dedicated testing equipment and diagnostic interfaces designed to verify that the product behaves as expected.
For example, when manufacturing a gaming console, you can connect it to specialised equipment that checks whether it boots, whether its components work, and whether the expected functionality is available.
The human might still be responsible for connecting the device to the testing equipment, but as much of the verification process as possible is automated.
That's exactly what we should be aiming for in software.
And this has an important architectural implication: we must design our systems for verification.
Traditionally, when designing software, we ask questions such as:
- How will the system work?
- How will users interact with it?
- What architecture should we use?
- How will the system evolve?
Now we need to add another fundamental question:
How are we going to verify that this system works correctly?
This question should influence our architectural decisions from the beginning.
For example, consider the difference between making things explicit and leaving them implicit:
- Static types instead of dynamic types.
- Strongly typed protocols such as gRPC instead of loosely specified interfaces.
- Explicit database schemas and constraints instead of relying on highly flexible, loosely structured data models.
- Explicit contracts and invariants instead of relying on conventions that are difficult to enforce.
These choices aren't universally better in every situation. There are legitimate reasons to choose more flexible alternatives.
But we should recognise that making things explicit often makes them easier to validate, test, reason about, and verify.
I've explored a related idea in From Rigidity to Explicitness: How AI Changes the Role of Constraints in Software.
My argument there is that constraints aren't necessarily obstacles to AI-assisted development. They can actually make agents more effective by reducing ambiguity and narrowing the space of possible mistakes.
This becomes particularly important when agents are doing most of the implementation work.
If we want to automate verification, we need systems that are designed to make their correctness observable and testable.
And this isn't something we should leave until the end. It needs to be part of the design process itself.
The factory is as important as the product
I don't disagree with the idea that design engineering is becoming a much bigger part of software engineering.
Quite the opposite. I think we'll spend significantly more time on discovery, exploration, architecture, and design than we used to.
AI makes these activities cheaper and faster, which means we can afford to invest more in them.
But I think we're overlooking something equally important.
Designing the factory, designing the production process, designing the verification mechanisms, and continuously improving the whole system are becoming just as important as designing the product itself.
We need to invest in the infrastructure, constraints, tools, processes, and feedback loops that allow agents to produce reliable software.
And we need to keep improving that factory.
The factory is not something we build once and forget about. It's an evolving system that needs continuous investment.
So, what happened to the 50/50 split?
For a long time, I've thought about software development as roughly a 50/50 split between discovery and building.
Discovery was about understanding what we needed to build. Building was about actually implementing it.
Sometimes, I've questioned whether that split was even accurate.
A lot of software is considerably simpler than we make it out to be. What makes it complex is often not the implementation itself, but the unknowns surrounding it.
If you already know exactly what needs to be built, how it should work, and how the different components fit together, the implementation is often surprisingly straightforward.
That's why I've sometimes wondered whether discovery should account for 60% or even 70% of the effort, with implementation taking the remaining 30% or 40%.
But AI changes this equation considerably.
The cost of implementation is collapsing. Agents can now do much of the actual building.
So perhaps the old 50/50 split is no longer particularly useful.
We still have discovery, and we still need to design the product. But now we also have another major responsibility: designing and continuously improving the factory that builds the product.
And here's where I'm still forming my opinion.
I could argue that our priorities should now be something like 40% discovery and product design, 60% factory design and improvement, and almost zero time spent on manually implementing features.
I'm not entirely convinced those numbers are right. They're deliberately provocative.
But I think they capture an important shift.
Our job is no longer primarily to build software. It's to design the software, design the factory that produces it, and make sure that factory can consistently produce reliable software.
The software factory is worth defending—but not as an assembly line for identical features. It is a flexible, evolving system that turns different designs into reliable software.
As AI takes on more of the implementation, designing and improving that factory may become one of our most important jobs.
