The dream of a software factory is closer than you think

Otto Hilska, Founder & CEO · Dec 3, 2026

Software factories come up in almost every conversation I have with engineering leaders right now. The term usually brings to mind fleets of agents shipping code that nobody reads, with a handful of engineers supervising the whole operation.

That future is closer than most teams think. At Swarmia, agents already fix the bugs we report in Slack, address review comments, keep our CI healthy, check every pull request against our team’s review guidelines, and approve pull requests, too.

Most engineering organizations see a different picture. Their engineers get a lot out of these tools, but the company ships at roughly the same pace as before. In Swarmia’s Q2 2026 data from a sample of 486 engineering organizations, autonomous agents created under 4% of merged pull requests, even in top-quartile organizations.

Faster coding doesn’t lead to faster delivery when every change still starts with an engineer and waits on one at each step after. The software factory is built to change that.

What is a software factory?

A software factory is a development process where agents do most of the work of getting a change into production, from writing the code to reviewing, merging and maintaining it. Engineers design and run the system that does that work.

In many ways, a software factory is platform engineering under a new name, with more tools. The job is still building the systems that get changes into production, except more of those changes now come from agents.

The current wave of interest started early this year. In January, Dan Shapiro described five levels of AI-assisted programming, modeled on the levels of driving automation. At the top is the dark factory, named after manufacturing plants that run with the lights off because no people work there. A few weeks later, StrongDM’s AI team described how they run theirs: specs and test scenarios drive agents that write and ship code, and the team’s rules say humans neither write nor review it.

You don’t need to run a dark factory to put agents to work beyond coding. A good place to start is the work that still waits for an engineer to kick it off.

Who starts the work?

The debate about software factories often comes down to whether humans still read the code. To map your own setup, it helps more to look at who starts each piece of work. At Swarmia, we think about five ways of working, shown as columns below, each giving agents more responsibility.

  1. Engineers work with agents. An engineer pairs with Claude Code or Codex on their laptop, directing the work and checking the result. I expect this to stay around half of all work for the time being. When you’re building a new feature, you often need to see it to iterate on it, and you may be making bigger design decisions that you can’t or don’t want to hand off to an agent.
  2. People delegate work through chat. Our agent, Aimo, lives in Slack. I haven’t filed a bug ticket in a long time. I write a message to Aimo in the team’s channel, and most of the time a working fix gets merged without changes.
  3. Agents pick up issues. When an issue in Linear or Jira has a clear enough spec, an agent takes it from there without anyone guiding the implementation. This is especially useful for preliminary analysis of a feature, so we know what might be easy to implement.
  4. Events trigger work. A review comment, a failing test or a new production error starts an agent without anyone asking it to.
  5. Agents own ongoing goals. An agent has a standing responsibility, such as keeping CI fast, and works on it on a schedule and within limits the team has set.

Different kinds of work suit different levels of agent autonomy, and there’s no reason to move everything to the fifth column at once. An engineer might pair with an agent on a complicated new feature while another agent maintains the test suite on its own. Moving one kind of work one column to the right is a contained change, and every move frees engineering time for the work that still needs people.

What changes as work moves right

We use all five ways of working at Swarmia. I’ll go through our full setup in a separate article, but here’s what changed for us as our work moved right:

  • Agents take goals, not tickets. Many teams still split a project into small tasks and keep the context in an engineer’s head. We hand agents whole goals instead, such as working through each week’s product feedback. The models handle problems that size now, especially when there’s a good test suite to verify the result. An agent with a standing goal keeps its plan in a Markdown file in the repository, and the record of what happened lives in pull requests and agent sessions.
  • Review becomes the constraint. Once agents produce most of the changes, reviewing every line by hand stops making sense. Our agents turned our engineers’ past review comments into written guidelines, they check every pull request against them, and some of our pull requests now merge without a person. Large changes need a different shape too: splitting a 20,000-line change into unrelated 100-line pull requests loses the overall picture, while stacked pull requests keep the order and dependencies visible.
  • Agents with standing goals need limits. Ours run with work-in-progress limits, so an agent reminds the team about an open pull request before opening another. When agents can query engineering data, for example through Swarmia’s MCP server, they can also check the team’s capacity and investment balance, and how long their own pull requests have waited for review.
  • One setup for the whole organization. Our teams use agents in different ways, but the shared parts, like which agents run across the codebase and how their work gets reviewed, work better when the whole organization agrees on them. In a company with 40 teams, letting each team build its own setup produces 40 homegrown versions that each work a bit differently, and nobody can tell which ones pay off. That’s why AI platform and enablement teams are becoming more common: they own a shared setup with agreed limits and one view of what agents cost and deliver.

What do engineers do in a software factory?

By default, your agents generate slop. Nothing guarantees an agent has picked up your team’s standards, especially if they were never written down and the team followed them unevenly enough that the codebase doesn’t make them obvious.

Earlier this year, in The New Way, I wrote that engineers would spend more time reviewing and managing work than writing code. That’s indeed how it’s turned out, and the work also looks more and more like an architect’s job. Much of the effort goes into setting standards, structuring the codebase and building systems that check agents’ output.

Deciding what to build gets harder as coding gets faster. One of our product teams shares ownership of direction between its product manager and engineers, and its designer prototypes directly in production code. I expect that kind of frequent prototyping and learning from users to beat fixed six-month roadmaps.

What needs to be in place for this to work

A software factory runs on the same foundations good engineering teams have always needed.

Context. Agents do far better work when the repository explains why a feature exists, how customers use it and how it’s built. We keep that information in the repository wherever we can, because agents can update it alongside the code. Connectors to tools like Notion help, but not every engineer has every connector configured.

Verification. Agents need somewhere to try their own changes before anyone else looks at them. We built an internal tool, devstack, that spins up a throwaway copy of our full stack in seconds, filled with production-like data. An agent can check a change in the browser until an engineer wants to take over, and because each copy is cut off from the outside world by default, we can run as many as we like without them interfering with each other. Automated tests catch regressions, and preview links on frontend pull requests let people try a change without setting up a development environment. Each test added after an incident lets you hand agents a bit more work.

Security. Production logs help diagnose issues but can contain sensitive data. Privacy filters and carefully scoped access let agents use diagnostic information without seeing what they shouldn’t. With those safeguards, agents can take on much more production maintenance.

Ownership of the work and its cost. Once agents open pull requests on their own, someone needs to own the queues: how much work is waiting, how often changes need rework and whether agents produce useful improvements. Visibility into agent sessions helps, and patterns across sessions tell you more than reading everyone’s raw prompts.

Tokens are also becoming a real line in the engineering budget. Choosing the right model for each job and keeping context lean reduce spending, and AI adoption and cost data across tools shows which projects the money goes to.

Where to start

Work out which column most of your team’s work is in right now, then pick one kind of work to move one column to the right.

  • Turn review habits into guidelines. Give an agent your team’s past review comments, have it write guidelines for the topics that come up most, and run a review agent against them on every pull request.
  • Let agents address review comments. When a reviewer asks for a rename or a missing test, a cloud agent can push the follow-up commit.
  • Hand one ongoing problem to an agent. Flaky tests and slow queries are good first candidates. Cap how many pull requests the agent can leave open.
  • Document the feature agents touch most. Put it in the repository, with a rule to keep it current.
  • Measure what happens to the work. Decide who owns the queue of agent-created pull requests and track how long they wait, how often they need rework and whether they get merged.

Large organizations can start here too. Many have years of postponed groundwork, like missing CI, thin test coverage and undocumented systems, and agents make that work faster and cheaper. An agent with read-only access can go through every repository and list which ones lack a working CI setup or linters, and that list becomes the factory’s first backlog. For many enterprises, the first version of a software factory looks like a modernization project that finally gets finished.

Measuring your software factory

A software factory is only useful if it helps your team deliver better software to customers. I’ve written before about measuring the productivity impact of AI coding tools, and the same thinking applies once agents take on work beyond coding.

To see whether it’s working, look at both what you deliver and how the work gets done. For example, if an agent addresses review comments, check whether pull requests merge sooner without creating more rework or problems after release. Then, compare those results with what the agent did and what it cost to run.

Connecting agent activity to those outcomes gets harder when teams use several tools, each reporting usage differently. That’s one of the problems we work on at Swarmia: connecting agent usage and spending to engineering metrics and the goals teams have set.

We’re also building products to help teams run their own software factories, starting where many organizations hit a bottleneck first: code review. More on that soon.

Measure what your software factory delivers
The Build framework covers AI leverage, effectiveness and return on engineering, with the metrics and questions to tell whether your agentic workflows are paying off.
Read the Build framework
Otto Hilska
Otto Hilska is the founder & CEO at Swarmia. In the past, he scaled the product development team to 100+ people as the Chief Product Officer at Smartly.io, and founded Flowdock.

Subscribe to our newsletter

Get the latest product updates and #goodreads delivered to your inbox once a month.

More content from Swarmia
Oskari Virtaoja · Feb 26, 2026

How we set product team goals and priorities at Swarmia

Every product team prioritizes work, but few can explain how they do it. Ask a team lead what their team is working on, and you’ll get a clear answer. Ask them how they decided that was more important than the five other things competing for attention, and it’s suddenly not so clear. It felt…
Read more→
Rebecca Murphey · Mar 15, 2024

Sensible benchmarks for evaluating the effectiveness of your engineering organization

If you’re digging into engineering metrics for the first time, it can be hard to know what “good” looks like. The urge is strong to find a way to compare yourself to other companies using benchmarks, to know exactly where your teams sit on the distribution of excellent to terrible. In reality, your…
Read more→