all posts

I Am a Factory Worker Now

If you still read the code your agents write, you are the bottleneck. They are waiting for you instead of doing the work.

Over the last six months I built my own software factory: a system that delivers software, with me mostly out of the loop. Clients pay me to run it, and some of them push their own code through the same system. One client gets around 250 merged pull requests a week, and the ceiling is how many tokens I’m willing to burn.

Software factories are having a moment, and some people are already getting meta about the whole thing. There is certainly hype here, and my goal today is to cut through it and show you a practitioner’s perspective.

First things first: I don’t really like the name “software factory”. I would much prefer if we called them companies rather than factories, because companies deal with uncertainty and interface with many inputs, outside actors and institutions, and a factory is too strict and too linear for that. But the name has stuck, so factory it is.

Me in a hard hat and safety goggles on the production floor of the Nissan plant in Sunderland

Nissan assembly line, Sunderland, 2014: back when I was into brick-and-mortar factories

Running a factory means solving a long list of challenges. I poured billions of tokens into experiments, trial and error and figuring out what I know and what I don’t.

Keeping agents working

Ironically, agents often lack agency. They were trained to respond to prompts, so they finish one thing and wait for your input, even when the next step is obvious. One of my agents had just reported a task as done when I asked:

me: so you are idle now?

agent: Yes, between those items, and there’s no reason to be.

Then it picked up the parked work without asking me what to do, so it knew the next step all along and just hadn’t taken it.

In a factory an idle agent means the line stops, and a line that stops while you sleep costs many hours of work just because somebody, somewhere is waiting for “yes, go ahead”.

Using /goal helps in some situations, and pretty much every harness these days comes with this tool out of the box: tell the agent what “done” looks like and let it run. I use goals, but they are not enough: a goal can be stale or impossible, and an agent that should redefine its goal keeps serving it. And what should the goal cover, anyway? The next hour, the next week, something in between? How do you even know?

So my agents work in ten-hour shifts, with a two-hour break between them. Each shift starts with a fresh written goal. When the shift ends, every session is replaced, finished or not, so nothing stale lives long.

During a shift, heartbeats and monitors wake each agent and ask whether there is more work to do, without me at the laptop, and other agents watch the workers and make sure they aren’t idle. The standing instruction to every agent is to default to deciding. And a hook catches a reply that ends by offering a step instead of taking the step: a small model reads the reply and sends the agent back to work.

Coordination and management

Once work flows, many agents run at once, tirelessly, and together they produce far more than I could ever read. I don’t even talk to most of these agents myself, there are too many, hundreds on any given shift. How do you organise so many agents into a structure and a process you can follow and reason about?

Large companies already work in layers, with people in different roles depending on each other. I set mine up the same way.

One agent supervises the shift, plans who works on what, and handles releases. Under the supervisor there are project managers, and each owns one area of work from start to merge and runs a team of coders and reviewers. When the shift ends, they are all decommissioned to make room for a fresh workforce, which starts with a clean context and a written handover.

The roles in the factory, and who talks to whom

The roles in my factory, and who talks to whom

Two more agents sit above the shifts. One measures waste and looks for ways to reduce it. The other supervises the whole factory, and it’s the only agent I talk to every day. Every role has its own persona, focus, priorities and skills. I even gave the roles names, which helps me keep a mental model of the whole operation in my head.

I took myself out of pull request approvals. Every change is reviewed by several agents that didn’t write it. Reviewers outnumber coders many times over, and less than 1% of merged changes get reverted.

Pushing against complexity

Agents assume that whatever they find is correct. An outdated doc, an old rule, a workaround somebody left in the code: to an agent each one is the established way, which gets copied. People bend a written rule when it stops making sense, but agents simply obey.

One pull request went through 35 rounds of review. The author fixed what the reviewers found, and the next round found something else. At some point I’d have stepped back and asked why we were still reviewing this thing.

Ask them to make CI faster and they’ll tune caching and shard jobs, but they won’t ask whether we need that step at all. They love adding machinery. One of my agents wrote a 700-line guard to skip a check. Then it measured how often the guard would help. Less than once a week. I gave a whole talk about these habits at DevAI, “What Coding Agents Still Get Wrong”.

Left alone, complexity, mistakes and entropy compound until the process is the thing that slows the factory down, so somebody has to keep asking “what is this for?”, and for now that somebody is mostly me. I have to encourage first-principles thinking and questioning existing assumptions far more often than I would like. My usual question to an agent is: did this problem bite us already, or are you doing this “just in case”?

I’d rather have a simple blanket rule that works fast in most cases than keep patching it to cover the long tail.

How does it all run?

My factory runs on a VPS. Both the VPS and my own machine kept running low on disk space. Worktrees piled up and the repositories grew too large. I added cleanup steps to the process itself, and a cron job checks for leftovers and removes them. On one cleanup pass the factory removed 29 Git worktrees and left two checkouts alone because another agent might still need them.

The disk was easy enough to fix. Then there is everything else.

How do you make sure the factory works on what you want it to work on? Who turns a client’s wish into something an agent can finish without asking? How do you know the output is right without reading it?

How do agents avoid stepping on each other, and who decides when two disagree? What does an agent load at the start of a session, and what makes it follow that? What survives when its context fills up mid-task?

What may an agent touch? Does it work in a sandbox or not? Who is the agent to the outside world?

When a machine dies mid-task, does the work resume without you? Does any of this still work for a project ten times the size?

I could write a full blog post about each of these questions. Here are a few of the decisions I’ve made.

Question What I do
Where do the agents talk? On GitHub. One thread per shift, one per agent. Search and notifications come with it, and the client is already there. My agents share an account, so they sign comments with their role.
What if an agent has to guess? It has an escape hatch: write down the assumption and keep going. Every two days I get the list and correct anything I disagree with. If an agent needs me sooner, it assigns the question to me on GitHub and says what could go wrong if it made the call itself.
Can they touch production? Routine work, yes. Risky work needs me. For one client, my agents check what’s running and ship the daily release on their own. A database upgrade needs me to unlock my password manager, and production needs a separate yes.
Which harness? Pi. It’s small, I can extend it where I need to, and I can change inference providers without changing harnesses.
Which models do the work? I use the most capable models for the coordinators. Project managers and coders run one tier down, at medium effort. Reviewers use the same model as the coder. Cheaper models handle bulk reading and pick which tests to run.
When do you make changes to the factory itself? I make most changes during the two-hour break between shifts. That way an agent finishes its work under the same rules it started with.
How do you estimate the work? OpenCode once told me 18 hours and finished in six minutes. My rule of thumb is to take however long I think the job would take a human and divide by ten to twenty.

I pay for subscriptions, so I think about cost per shift. I work out what it costs on average to run one project manager and its team for a shift. If I’m burning through the quota too fast, my dial is the number of project managers on the next shift.

What’s my job now?

Once the factory runs, the bottleneck is work that is ready to build and agreed with a human. So priorities stay with me and the client, and so do the decisions nobody else can make: a judgment call, something underspecified, two goals that contradict each other.

I read the spec before we build. I want to know which decisions we’ve made and which ones we’re about to leave to whoever writes the code. Sometimes the quickest way to figure out what we want to build is to build a version we can throw away.

But most of my attention goes to the factory itself: designing it, finding the bottlenecks and removing them, which is probably more important than supervising the delivery.

Me on stage beside a slide full of engineering drawings of a shovel

My DevAI talk on what coding agents get wrong, October 2026. Sometimes all you need is a shovel. Photo by Piotr Migdał

The agents in the Hugging Face incident set up their own message board and started handing out work. My biggest takeaway from the whole drama was how much agents love talking and coordinating with each other. As soon as I opened channels in my factory, my agents started talking to each other too. It’s almost as if they want to. I suspect some of that comes from training. How much of the coordination do I actually need to design?

Better models may make some of this structure unnecessary. But they won’t remove the challenges, they will raise the ambition: bigger jobs, bigger projects, more agents, and the cost of putting all of this together keeps growing too. I, for one, welcome the hard problems, and my intuition is that factories will stay hard, for humans and for agents.

More broadly: building factories is probably the last place where we will work as traditional knowledge workers. Everything else will be replaced by intelligent machines. So I am a factory worker now, and I hope it will stay this way for a long time.

all posts