Writing
Software doesn't belong in a factory
Agencies call themselves software factories, and AI vendors now promise factories where agents write, review and ship code with nobody watching. Why I think the metaphor is wrong, what it says to the people paying for the software, what I'd measure instead of velocity, and where automation actually belongs.
- Published
- Reading time
- 16 min read

"We are a software factory."
You've probably seen it on an agency's landing page, in a consultancy's pitch deck, or in a LinkedIn bio. For years it was mostly a branding choice for outsourcing shops that wanted to sound industrial and reliable. Give us your requirements, we'll put them on the line, and working software comes out the other end.
Lately the phrase has come back with a new coat of paint. Now the factory is made of AI agents. One agent writes the specification, another writes the code, another writes the tests, another reviews the pull request, and a pipeline merges and deploys the result. Some people push it all the way to the "dark factory", a term borrowed from manufacturing plants that run with the lights off because no human works inside them. The pitch is that humans describe what they want, and the factory does the rest, around the clock.
I'm against the whole idea, in both its old and its new form. I've never worked that way and I never will, because it goes against everything I believe software is for. This post is my attempt at explaining why.
#What a factory is actually for
A factory exists to solve one problem: making a large number of identical things, as cheaply and as consistently as possible.
Everything about a factory serves that goal. The product is designed once, upfront, by people who are not on the line. The line is then optimized to repeat that design thousands or millions of times. Variation is a defect. Workers are interchangeable by design, because the process carries the knowledge, not the person. Success is measured in units per hour, cost per unit and defect rate. If a car factory produces more cars this month with fewer defects, it had a good month, and nobody on the line needs to ask whether the car was a good idea.
That model is brilliant for cars, screws and phone chargers. It's one of the greatest achievements of the industrial era. The question is whether any of it maps onto software.
#Where the metaphor breaks
The first thing that breaks is the product itself. Software is the one thing in the world you never need to manufacture twice. Once it exists, copying it costs nothing. There is no assembly line for the thousandth copy of an application. So when a company calls itself a software factory, the "units" it's producing can't be copies. They have to be something else: features, screens, projects, tickets, lines of code.
And that's exactly where the problem starts. A factory that produces features is a factory that treats every feature as a unit, every project as a batch, and every client as another order to fulfill. The thinking that a real factory does once, upfront, before the line starts, is the thinking that software needs all the time. Deciding what to build, for whom, and why, is the job. Typing the code is the easy part, and it has only gotten easier.
The second thing that breaks is the client. A factory works because every customer gets the same thing. Nobody walks into a car factory and asks for a car designed around the way their family lives. But that's precisely what a business is asking for when it commissions software. If it wanted the same thing as everyone else, it would have bought it off the shelf. Every business that comes to you has its own rules, its own history, its own people and its own problems, and most of the value you can add sits in those differences.
The third thing that breaks is the direction of growth. Factories are built to produce more and more, for more and more people. When you apply that mindset to software, you get one of two results. Either you get generic, all-in-one wannabe products that try to cover every possible customer and end up serving none of them well, or you get a pile of interchangeable applications that technically work and have no soul. Nothing in them was designed by someone who cared. I wrote about the first problem in The Beauty of Specialized Software: the more a product tries to be everything for everyone, the less it's good at the one thing you needed it for. The factory mindset pushes in exactly that direction, because more output for more people is the only thing a factory knows how to want.
#What the label tells your customers
Think about what "software factory" says to someone who's about to trust you with their business.
It says you don't see their business or its problems as unique. They're the next order in the queue, and you already know what they need before they've finished explaining it.
It says you value automation, velocity and output above everything else. The selling point is how much you can produce and how fast, not how well you understood the problem.
It says you don't value human creativity and attention to detail. In a factory, a worker who improvises is a liability. If that's the model you chose to describe yourself, you're telling the client that nobody on your side will be thinking about their users in ways they didn't explicitly ask for.
And it says you believe software is a commodity, that one size fits all, and that the difference between a good application and a bad one is mostly volume.
I can understand why the label is attractive from the inside. It sounds efficient, scalable and predictable, which are all things you'd like to say to a buyer. But a client who reads it carefully should hear the other half of the message too. If that's not what you mean, don't call yourself a factory. If that is what you mean, the clients who are paying attention will eventually figure it out.
#AI is what brought the pitch back
The old outsourcing version of the software factory had a natural limit: people. You could only produce as much as your developers could write, so even the most industrial shop still depended, somewhere, on someone thinking.
AI agents remove that limit, or at least appear to. Code becomes cheap to generate, in practically unlimited quantities, at any hour. And once output is cheap, it becomes very tempting to measure everything by output. How many pull requests did the agents open this week? How many features shipped? How many lines changed? The dark factory is the logical end of that line of thinking: if output is the goal and humans are the bottleneck, remove the humans.
The flaw is that generating code was never the bottleneck. The bottleneck has always been understanding: understanding the business, the users, the constraints, the trade-offs, and what the software is supposed to promise to the people who use it. An agent pipeline can turn a specification into code very quickly. It can't tell you that the specification is wrong, that the users will hate the flow, or that the feature solves a problem nobody actually has. When nobody in the loop is responsible for those questions, the factory just produces the wrong thing faster, and with more confidence.
I'm not 100% against using AI to write code. But there's a difference between a tool in the hands of someone who is thinking, and a pipeline built specifically so that nobody has to. I've already written about what happens when teams rebuild working products simply because AI makes it look cheap, in Stop replacing stable UIs with AI slop that barely works. The software factory is the same instinct, scaled up and turned into a business model.
#Velocity is the wrong number
Factories measure throughput, so software factories measure velocity: story points per sprint, tickets closed, features shipped per week, lines of code, and now, agent-generated pull requests merged per day.
I think measuring software this way is absurd. None of these numbers tells you whether the software got better. A team can close a hundred tickets in a month and leave the product further from what its users need than it was at the start. A team can ship one carefully designed change and make every user's day easier. By velocity, the first team wins. By anything that matters, the second one does.
What I care about is alignment. Every product has a promise, a reason it exists, a philosophy of what it should do for the people using it. The real question is how close the software is to delivering on that promise, and whether the work being done is bringing it closer.
That doesn't mean building every piece of feedback that comes in. Users ask for contradictory things, and some requests would pull the product somewhere it shouldn't go. Part of the job is saying no, or proposing something better than what was asked for. But the overall direction should always be toward benefiting the people who use it. Each release should leave the software a bit closer to doing exactly what it's intended to do.
And that applies to everyone, not just the people writing features. The DevOps engineer setting up deployments, the person designing the database, the one deciding how errors are reported, all of them are either moving the product toward its promise or away from it. A deployment pipeline that lets the team fix a user-facing problem in ten minutes instead of a week is serving the product. A perfectly automated pipeline that ships a hundred changes nobody needed is not.
So if you need a metric, measure how far you are from the software you promised, and how much each team is closing that gap. It's harder to put on a dashboard than tickets closed. It's also the only one that matters.
#Automate the repetitive, keep the judgment
None of this means I'm against automation. I automate a lot, and I think every serious team should.
Builds, tests, formatting, linting, deployments, dependency updates, scaffolding a new module from a known structure, generating boilerplate from a schema: these are all repetitive, well-defined and verifiable. A machine does them better than a person, faster and without getting bored. Every minute a developer spends on them by hand is a minute not spent on the parts that need a human.
The line I draw is around judgment. Modeling a domain, deciding what a feature should actually do, choosing between two trade-offs that both have a cost, pushing back on a requirement that will hurt the users, noticing that an edge case in a business rule will bite someone in six months, designing an interaction so that it feels obvious: none of that is repetitive, and none of it is verifiable by a test suite. It depends on understanding people and their problems, and that's exactly the part a factory is designed to remove.
The goal of automation should be to free people to spend more of their time on judgment, not to remove judgment from the process altogether. A team that automates its CI and spends the saved hours with its users is doing it right. A team that automates the thinking so it can produce more output is building a factory.
#What clients actually need
When a business pays someone to build software for it, it isn't paying for code. Code is a means. It's paying for its problem to be understood and solved, by people who care whether it's solved well.
That's why we create software in the first place: to benefit the people who use it. A good partner keeps that at the center of every decision. The test I use is simple: am I building this as if I were the customer, and as if I were going to use it myself every day? If the answer is no, something is wrong, no matter how fast it's shipping.
A lot of what makes software good lives in details that a client can't picture in advance. Most people, reasonably, can't imagine what an interaction could be until they see it. They'll describe their problem in terms of what they already know, usually a spreadsheet, a paper form or the tool they're trying to replace. It's our job to be creative enough to propose something better: the form that remembers what you typed last time, the list that's already filtered to what you're most likely looking for, the error message that tells you how to fix the problem instead of just telling you there is one, the flow that removes three steps nobody realized were unnecessary.
None of these come from a specification. They come from someone paying attention and caring about the person on the other side of the screen. And they're very often not the most convenient thing to develop. A factory chooses what's convenient to produce, because that's what keeps the line moving. A craftsman chooses what makes the user's life better, and accepts that it takes more effort.
#"But clients want cheap and fast"
This is the first argument I hear in favor of software factories, and it's the one I have the least patience for.
Some clients do want cheap and fast above everything else. In my experience, they're mostly clients who don't know what they want and don't value software. They see it as a cost to minimize rather than something that shapes how their business works every day. A factory is a perfect match for them, and I think that's fine. I don't believe every client deserves a custom software engagement, and I don't believe every client wants one.
What I don't accept is letting those clients, or the managers who think like them, dictate the direction our whole industry takes. Money, market trends and corporate pressure will always push toward more output for less cost. That pressure doesn't get to decide what good software is. I wrote about how that kind of pressure damages the work itself in Operating without corporate pressure results in the best software.
If a business genuinely sees software as a commodity, it should buy a commodity. There's almost certainly a SaaS product that already does what it needs, built and maintained by a team that specializes in exactly that problem. That's a much better outcome than commissioning a factory to produce yet another generic application.
Because those factory-made applications don't just disappoint the client who paid for them. They pollute the industry. Every rushed, soulless, half-working product becomes another example in the world of what software is supposed to look like. Users learn to expect less. Businesses learn that software is something you order by the pound. And over time, the world's mental image of software drifts toward the factory version, which makes it harder for everyone who's trying to build something good. I've seen the same drift up close in When you make software look easy, they stop respecting it: once people believe software is easy and interchangeable, everything you deliver afterward is judged against that belief.
#"But standardization reduces bugs"
This is a better argument, and it deserves a real answer.
The claim is that a factory, by producing everything the same way, eliminates the variation that causes bugs. Custom work, on the other hand, means every project is a snowflake, and snowflakes are hard to maintain.
That's true if the alternative is messy. If "specialization" means every project is built however the developer felt that week, with no shared conventions, no structure and no tests, then yes, a factory will produce fewer surprises.
But that's a comparison between a factory and chaos, and craftsmanship isn't chaos. A well-built custom application has a clear architecture, consistent conventions, separated concerns, automated tests and a deployment process anyone on the team can run. It can be adapted to one business and still be structured, predictable and maintainable. When specialization is done properly, bugs stay manageable, because the structure is there to catch them and the people working on it actually understand the system.
And I'd add that factories have their own very specific failure mode. When nobody really understands the code because nobody really wrote it, every bug is a mystery. Standardized output is only predictable as long as nothing unusual happens, and in real businesses, something unusual always happens.
#Protect the craft
Software engineering is a young discipline, and we're still deciding what it is. Are we engineers designing solutions to specific problems, or operators running a production line? A lot of forces push toward the second answer, because it's easier to sell, easier to measure and easier to scale.
I think we should resist it. Not because automation is bad, or because AI is bad, but because the moment we accept that software is manufactured, we accept that the people building it are interchangeable, that the users are a market segment, and that quality is whatever comes out of the line. I don't want to work in that industry, and I don't think most of the people who got into software because they loved building things want to either.
Quality over quantity isn't a slogan for me. It's the only reason I can think of to do this work at all.
#Conclusion: build it as if it were yours
Software isn't a product that rolls off a line. It's a set of decisions made on behalf of the people who will use it, and those decisions are only as good as the attention behind them. Calling yourself a factory is admitting that the attention isn't the point anymore.
So, depending on which side of the table you sit on:
If you're a client, look for a partner who asks uncomfortable questions about your business before talking about timelines. Be suspicious of anyone whose main selling point is how much they can produce. And if you honestly just need something generic, buy a SaaS product instead of paying a factory to make a worse one.
If you're an engineer, protect your judgment. Automate everything that's repetitive, use AI where it helps, and spend the time you saved understanding the people you're building for. Measure your work by how much closer it brings the product to its promise, not by how many tickets you closed.
If you run an agency or a consultancy, stop calling yourself a factory. Your clients don't want a production line. They want people who care about their problem as much as they do. If that's what you offer, say so. If it isn't, that's the thing to fix, and no amount of automation will fix it for you.
Build software as if you were the customer, and as if you were going to use it yourself. A factory can't do that, no matter how many agents it runs.
- Thoughts
- AI
- Software Craftsmanship