Notes on Software Factories
I recently set a swarm of agents loose on a new project. The agents turned out
to be the easy part. The first things to break were the human parts of the
system: a couple of central files every agent kept touching, and a merge policy
that wanted a human to prove they were present every time main moved.
I'm seeing the same pattern everywhere, in my own work and in what others are publishing. Writing code is no longer the bottleneck. The system around it is: documentation, validation, source control, review, CI. All of it was built for humans, and all of it needs rethinking.
We want to build software factories, setups where autonomous agents can run continuously and produce correct code with minimal supervision.
OpenAI published the Harness engineering article on the topic a long time ago (February 2026!). The highlights:
- The lack of hands-on human coding introduced a different kind of engineering work, focused on systems, scaffolding, and leverage.
- [The] human engineers’ goal was making it possible for an agent to reason about the full business domain directly from the repository itself.
- As Codex’s throughput increased, many conventional engineering norms became counterproductive.
The principles and challenges hold. Software engineers now focus on the system, setting up the right quality gates and guardrails for agentic work. Information needs to be available and easily discoverable by agents. Human-centric engineering systems no longer work.
The Redesigning source control at Anthropic article explains how git no longer scaled with Anthropic's agent throughput. With agents merging thousands of changes per day, the infrastructure built around human-typed code and long review cycles started to crack.
Agentic coding is also the reason GitHub went through a period of outages everyone complained about. GitHub is engineering systems at global scale. They ran into the same orders-of-magnitude increase in input.
Software factories like this have been successfully employed in other major projects. Here are a couple from Microsoft: Lessons from building Copilot Cowork and Migrating the GitHub Copilot runtime to Rust.
The first one, Cowork, shows how 9 engineers reached thousands of PRs/day. The
setup is very different from a regular
pre-AI repo and so are the techniques
employed: optimize for parallelism, many small tasks, focus on verification.
The second one, GitHub Copilot runtime, shows how the runtime was ported
in-place, piece by piece, while keeping main always working and not
interfering with the work of other people that were not involved in the port.
By now there is enough evidence that this works. Agents can undertake large scale projects and produce solid results. The engineering challenge moves from writing the code to building the system within which these agents operate.
Here is how I set up a new project/repo now:
- Documentation. Architecture, project details etc. This is AI-generated with two important caveats: I am reviewing this carefully and I do prompt the agent to make it easy to read/discover by other agents. E.g. rather than one very long doc, prefer multiple smaller ones the agents load in their context as needed.
- Skills. Since agents will be building something, I want to capture the operational constraints in skills so they are easily repeatable.
- Validation. The next step is to figure out exactly what to validate and how, and have this mechanism ready before letting the agents loose.
Some other best practices: I like using a more powerful model to generate a plan and create the backlog. If work is properly chunked into smaller tasks, these can be executed by cheaper agents.
Subagents can also review code. The first implementation might have issues but running one or two independent code reviews using other agents helps flush out some of these issues.
I also like to spot check some of the PRs. In most cases the agents do a good job after a cycle of code - test - review - address review - re-test. I did catch some unsound proposals though. This was a good opportunity to not only steer that particular agent in the right direction, but also to update the skills to avoid future issues like this.
As the codebase evolves, and by codebase
I mean the skills and verification, I
expect agents will self-correct better.
Back to what broke:
- Lay the project out for parallelization: As I scaled out the agents working concurrently on the project, they ended up stepping on each other's toes with merge conflicts. Turned out I had a couple of centralized files that all of them were touching. The fix was easy: redesign this such that each agent authors its own files and compose the centralized files automatically.
- Human-centric eng sys becomes the bottleneck: My project inherited
policies that quickly became the main source of slowdown, such as mandatory
human sign-off and proof-of-presence (PoP) on the final iteration of every PR.
Any change to the PR, even just merging
main, resets PoP and requires it again. With dozens of agents merging concurrently,mainmoves constantly, so every PR effectively waits on a human to re-confirm it.
For now, my swarm of agents has been happily chipping away at the project, with me checking in from time to time to get them unstuck when an odd issue pops up.
But the bigger work is ahead: the whole stack, from source control, to how code branches and merges, to reviews and policies, to CI, needs to be rethought for agents.