Part 1 of 5: The Agentic Software Factory
Most teams adopted coding agents the same way. Somebody installed one, it wrote a function faster than they could, and within a month everybody had one. A year later the team has a dozen agents, a pile of half-reviewed pull requests, three slightly different ways of writing a repository class, and a nagging feeling that they are typing a lot less but shipping about the same.
Congratulations, you’ve automated the part of the job that was never the bottleneck.
That is not a tooling failure. It is a structure failure. An agent is a very fast worker with no memory of yesterday, no sense of the team’s taste, and no idea which parts of the system are load bearing. Handing every developer one of those without changing how work flows is like handing a woodshop a CNC machine and parking it in the corner next to the hand saws. You get some nicely cut parts. You do not get a different shop.
This series is about building the different shop. I call it an agentic software factory, and over the next week I want to lay out what it is, how I set one up, why it needs a harness, how to get it to start itself, and how the whole thing fits together so development gets dramatically faster without the codebase turning into soup.
What I mean by “factory”
The word makes some developers flinch. Factories conjure images of identical widgets, a punch clock, and people reduced to button pushers. Fair. That is not the part I am borrowing.
What I am borrowing is this: quality is a property of the line, not of heroic individuals. A good factory does not rely on the best machinist catching every defect by eye at 4:55pm on a Friday. It has stations with clear inputs and outputs, jigs that make the right cut the easy cut, inspection built into the flow, and a feedback loop that fixes the line when a defect shows up instead of just fixing the part.
Software teams have always wanted that. We just could not afford most of it. The extra test harness, the contract tests, the architecture decision record, the second review, the migration rehearsal: all of that cost human hours that were already spoken for. So we skipped it, and relied on the senior folks to catch problems in review. (How’s that been going? Yeah. Same.)
Agents change the cost of that work. The tedious, well-specified, verifiable parts of software development are exactly what they are good at. That means the “extra” stations that made a line high quality are suddenly cheap. The factory is what you get when you take advantage of that on purpose instead of by accident.
The core premise in one paragraph
Humans own intent and design. Agents own throughput. The factory is the set of stations, rules, and automated checks that connects the two, so every change an agent produces is shaped by the team’s design decisions on the way in and verified against them on the way out. Speed comes from running many small, well-scoped tasks in parallel with very little waiting. Quality comes from the line refusing to pass work that does not meet the bar, regardless of who or what wrote it.
Everything else in this series is detail on that paragraph. If you only read one thing in this series, make it that one.
It is also, not coincidentally, the same shift I was poking at in the principal engineer in the agentic era and how architects are evolving with AI. The senior work moves toward deciding and shaping. The factory is what makes that move structural instead of aspirational.
The stations
A factory is easier to reason about when you name the stations. Mine look roughly like this:
- Intake. Work arrives as an issue, a bug report, a spec, or a product request that is one sentence long and somehow also urgent. Intake turns it into something with a clear goal, acceptance criteria, and scope. Humans write or approve this. An agent can draft it.
- Design. For anything beyond a trivial change, the work gets a short plan: which modules change, which contracts move, which decisions apply. This is where the team’s architecture decision records, conventions, and domain language get pulled in. A human approves the plan for anything that touches a contract, a schema, or a security boundary.
- Build. An implementer agent takes one approved, scoped slice and makes it real in an isolated environment. It writes the tests first or alongside, and it stops at the edge of its scope.
- Verify. Automated gates run: build, lint, types, unit and integration tests, contract tests, security scanning, whatever your stack can check by machine. Then a separate reviewer agent reads the diff against the plan and the conventions and reports problems with evidence.
- Integrate. A human looks at the verified change, with the plan, the gate results, and the reviewer’s report in front of them. They merge or send it back. Release mechanics take it from there.
- Learn. When something gets through that should not have, the fix goes into the line: a new check, a sharper convention, a better station definition. Not just a patch on the one bad change and a stern Slack message.
None of those stations are new. Every team that ships well has some version of them. What is new is that most of the labor inside stations 1 through 4 can be done by agents, in parallel, all day, while humans spend their attention on the decisions at the edges of each station.
Where the speed actually comes from
I want to be careful here, because “agents make you 10x faster” claims are everywhere, and most of them are measuring lines of code, which is a bit like measuring a restaurant by how many plates it breaks.
The speed in a factory does not come from an agent typing faster than you. Typing was never the bottleneck. The speed comes from three places:
- Parallelism with containment. When work is cut into small, well-owned slices with isolated environments, you can run several at once without them stepping on each other. I have written about worktrees for parallel agents and why worktrees alone are not enough. The factory is the structure that makes the parallelism safe instead of merely exciting.
- Removing waits. A lot of delivery time is waiting: for someone to write the test, for someone to review, for someone to remember how to boot the service again. In a factory the boring waits get filled by agents and the line starts itself. Humans wait less because there is always a verified change ready for a decision.
- Fewer round trips. When the plan and the conventions are pulled in up front and the gates catch the mechanical problems before a human looks, review stops being a game of “you forgot the null check” for the fortieth time. Reviews get shorter and more about design.
Notice that none of these are about the model being smarter. A smarter model helps. A better line helps more.
Where the quality comes from
The usual worry is that more agent output means more defects reaching production. That worry is entirely reasonable. I wrote about the operational side of it last month, and about how security was already a mess before generative AI showed up to make it messier, faster. The factory answer is not “review harder.” It is to make the line enforce the things you care about:
- Consistency comes from the design station loading the same conventions, examples, and decision records for every task, and from the reviewer station checking against them. The tenth agent writing a repository class sees the same reference implementation as the first.
- Correctness comes from tests that are written as part of the slice, from gates that cannot be skipped, and from a reviewer that is not the writer.
- Design integrity comes from humans owning plan approval for anything structural. Agents are very good at local optimization and very, very willing to invent a new pattern when an existing one is slightly inconvenient. A human gate on contracts, schemas, and boundaries keeps the architecture deliberate.
The rule I keep coming back to: an agent’s confidence is not evidence. Every station produces something a human or a machine can check. If it does not, it is not a station yet. It is a vibe.
What this is not
It is not “lights out” software development. There are humans in this factory, and they are doing the highest leverage work in it: deciding what to build, shaping the design, approving the plans, and making the merge call. What disappears is a lot of the low leverage work that used to eat their week.
It is not a single product you buy, no matter what the booth at the next conference tells you. Some of it is tooling you will adopt: a coding agent, a harness, a CI system. A lot of it is files in your repository: conventions, station definitions, decision records, scripts. The factory is mostly made of plain text and automation that already exists.
It is not something you build in a weekend either. You can get the first useful version up in a few days, then it improves every time a defect teaches you something. Which, if you’re like every team I’ve ever worked with, will be often.
The rest of the series
Here is where we are headed, one post per business day:
- Part 2 (Thursday): Building the floor. The concrete setup steps, in order, from repository context to quality gates to station definitions.
- Part 3 (Friday): Why it needs a harness. What an agentic harness is, how you could build or adopt one, and why it is the piece that turns a pile of agents into a line.
- Part 4 (Monday): Starting it up without you. Automating the factory’s startup so environments, agents, and queues come up the same way every time.
- Part 5 (Tuesday): How it all fits together. Following one change through the whole line, and where the speed, quality, consistency, and design practice actually come from.
If you are running more than a couple of agents today and the main feeling is busy, that is the signal. The agents are fine. They need a factory around them.
