The Dark Factory
The Race Is to Build the Factory
Every software company will build a factory that writes, tests and ships its code. Ours is running. The race now is to build it faster than everyone else.
Tom Tunguz published a short piece this weekend called What Kind of Factory Will You Build? His opening line stopped me:
"Before AI, we wrote software line by line. After AI, the best engineering teams stopped writing code & started building software factories : systems that write, test, & ship the code for them."
I read it and smiled, because that is exactly what our team at Vendasta has been doing for months.
Four parts
Tom describes a software factory in four parts:
- A shared context: the specs, docs and history an agent reads before it starts.
- An agent that runs the skills and specs to do the work.
- An execution trace that flags what shipped, what broke and what it cost.
- A curator loop that reads the trace and rewrites the skills and specs for the next run.
He says the last two compound. A prompt with a document attached is a one-off. The trace turns the work into data, and the curator turns the data into a better system.
I agree. A factory that learns from every run gets better every week. A workflow that doesn't stays flat.
Everyone is building one
Tom points out that Notion and LangChain published the same loop for company knowledge on the same day, and that Satya Nadella described the same shift at Microsoft Ignite. The architecture is spreading fast.
He also says why factories are still rare:
"Factories are still rare because a factory is an operations project, not a model purchase."
That line matters. Every company can rent the same models. Very few will do the hard operating work of owning the context, writing the specs, reading the traces and running the curator on a schedule.
So every serious software company will build a factory. The race is to build it first and to get the loop turning faster than everyone else.
What ours does today
I've written before about the Dark Factory: routine bugs and features handled completely by AI, written up as a ticket, built, reviewed, deployed and checked in production, with no hand-written code.
Here is where we are.
It is working on bugs now. A person asks a question or files a ticket in the place they already work. That event starts the factory. An agent finds the cause, writes the fix and opens the pull request. A separate agent reviews it. A person reviews the result.
We are extending it to features and to more teams. The next step is the factory checking its own fix in production and closing the bug itself.
When I watch it run, the job of the people around it is clear. They decide what good looks like before the build starts. They review the combined output of the factory instead of every single change. And they tune the machine.
The gaps are the backlog
The way our team thinks about the trace is the part I like most.
Every time a person has to reach in and push the work along, something is missing. Maybe an event didn't fire. Maybe the agent lacked a tool or a permission. Maybe the ticket needed better context.
Each of those moments is a small, concrete gap. Put them on a list, and that list is the backlog for the factory itself. Close the gaps one at a time and more of the work flows through on its own.
That is Tom's curator loop, applied to the factory itself.
Why speed matters
Building is cheap now. Speed without direction ships the wrong thing faster. So the effort moves to the front: defining the customer, the problem and what done looks like before an agent writes a line.
That is also why I wrote that the coding station got faster and the factory did not. Making the agent faster helps a little. Rebuilding the whole line around it is where the speed comes from.
It changes the manager's job too, which I wrote about in Managing Builders.
Why I'm excited
What excites me most is who is doing the building. Engineers across our teams are building their own agents, sharing them, and setting up the same pipeline for their own products. Nobody is waiting to be told.
That is what a culture that moves fast looks like from the inside.
Tom ends his piece with a question: what kind of factory will you build?
We know ours. Now we have to build it faster than everyone else.
Continue the conversation
Have a perspective to share?