Software factory
Our AI agents fix bugs in our code automatically. Guess how they do it safely
Since July 2026, a team of AI agents has been finding problems in one of our apps, fixing them, testing them and releasing them. Nobody has to step in. This is how it works, and why every software team will soon be able to work this way.
Swipe sideways to see the whole scene.
- 86
- fixes released by agents since July
- 0
- people needed to approve a routine fix
- 4
- kinds of agent: scanner, manager, coder, tester
- 24
- automatic checks before anything is released
A software fix used to need a person at every step: someone to notice the bug, someone to write the change, someone to test it and someone to release it. Since July 2026, AI agents have done all four steps for one of our apps. People set the rules and are told only when something unusual happens.
This post explains what a software factory is, why it has only now become possible, and how ours works, part by part. Every scene below is a picture of what really happens, drawn with the same characters we use on our website.
The idea
What is a software factory?
A software factory is a setup where software is made by a repeatable process. Today the term usually means one thing: AI agents do the steps of finding problems, writing code, testing it and releasing it, and people decide what should be built and handle the cases the agents cannot.
The idea is older than AI. Engineers have used the phrase since at least the 1970s for teams that ran software work like manufacturing, and in 2004 Jack Greenfield and Keith Short published a book called Software Factories about building programs from shared, reusable parts.
In January 2026, Dan Shapiro described five levels of AI coding, modelled on the levels used for self-driving cars. At the top is what he called the dark software factory, named after robot-run factories that can work with the lights off because no person needs to see. In his words it is "a black box that turns specs into software". Our factory is not fully dark: people still set the rules and handle exceptions. For routine fixes, though, nobody needs to step in.
Why now
AI agents can now work for hours at a time
The research group METR measures how long a task an AI agent can finish on its own. It times skilled people doing a set of real tasks, then finds the task length at which an agent succeeds half the time. That length is called the agent's time horizon.
In early 2025 the best models could finish tasks that take a person about an hour. By August 2025, GPT-5 reached 2 hours and 17 minutes. In November 2026, METR estimated the best public models at up to 27 hours on its newer, harder tasks that can be checked automatically. From 2019 to 2025 the time horizon doubled about every seven months. METR now puts the doubling at about every 3.6 months.
These numbers have wide margins of error, and METR says its estimates above 16 hours are not yet reliable. The direction is clear, though. A bug fix that takes a developer an afternoon is now well within what an agent can do.
Longer tasks are only half of what a factory needs. The other half is a way to check the work without a person. Most of this post is about that second half.
How it fits together
A software factory is a set of loops.
Each loop has one job: find work, plan it, do it, test it, release it. When one loop finishes, it hands its result to the next. When users run into new problems, the last loop feeds back into the first. These are the characters in ours.
- A personSets the rules, asks for work by message, and is told when something unusual happens.
- The project manager agentOwns the task board. Decides what happens next and hands out the work. Never writes code.
- Scanner agentsLook for problems on a schedule, in crash reports and in the code, and write them up as cards.
- Coding agentsCreated for one card each. Write the fix, test it, then disappear.
- The tester agentTries each visible change on a virtual phone and keeps proof of what it saw.
- A skillWritten instructions for one job, kept in a file called SKILL.md. Agents carry the skills they need.
- A cardOne piece of work on the task board: a crash, a bug or a request.
- The release checkA short script, not an agent. Releases a change only when all 24 checks pass.
The scene at the top of this page shows the loops running together: new work keeps arriving while earlier work is still being coded, tested and released.
The shared tools
The tools every agent uses
Before the agents, there are the tools they share. The most important is the task board: a list of all the work, split into columns such as To do, Doing, Testing and Done. Each piece of work is a card. Teams usually keep their board in a tool such as Jira, Linear, Trello or GitHub Projects. We use our own, but any of these would work. The agents read the board, add cards to it and move cards across it as work moves on.
Swipe sideways to see the whole scene.
People talk to the agents through a chat app. Ours is Telegram; Slack, WhatsApp or Discord work the same way. The code lives on a code host such as GitHub or GitLab. Crash reports come from a crash reporting service such as Firebase Crashlytics, Sentry or Datadog. And each agent carries skills: short written instructions for one job, which it reads before it starts.
Part 1
Where the work comes from
Work reaches the board in three ways. Two scanner agents look for problems on a schedule, and any person on the team can ask for something.
The crash scanner
When an app crashes on a user's phone, it sends a report to a crash reporting service. Our crash scanner is an agent that reads those reports twice a day. It turns a report into a card only when the crash is serious and happens in the version people are using now. Old crashes, empty reports and minor warnings are set aside. The scanner can read the reports, but it cannot change them.
Swipe sideways to see the whole scene.
The code scanner
The code scanner is an agent with a code review skill. Each night it takes one feature of one app, reads its code, and looks for bugs and situations the code does not handle. Each problem it finds becomes a card. It looks at one feature at a time so that each review stays small enough to check.
Sometimes a scan fails or its report cannot be read. When that happens, the result is recorded as unknown. It is never treated as "no bugs found", and the scanner does not retry it the same day.
Swipe sideways to see the whole scene.
Neither scanner may change any code. They only write cards.
A person asks
Anyone on the team can message the project manager agent, for example "the results screen needs a share button". The project manager turns the message into a card and replies to confirm what it will do.
Swipe sideways to see the whole scene.
Part 2
The project manager agent
The project manager is an agent that owns the board. It never writes code. Its job is to decide what happens next: which card is most urgent, which coding agent should take it, and whether finished work is ready to release.
The project manager's work schedule
The project manager works in shifts, like a person on a rota. A new shift starts every five hours, day and night. Each shift follows the same order. It reads its memory from earlier shifts, looks at the board, finishes anything waiting for release, deals with stuck cards, and only then hands out new work. Urgent cards go first, and no more than two coding agents work at the same time. At the end of the shift it writes down what it did and rests until the next one.
Swipe sideways to see the whole scene.
An agent remembers nothing between shifts unless it writes it down. So the project manager keeps a daily memory file: what it started, what is waiting and what went wrong. The next shift reads that file first.
Part 3
The coding agents
Coding agents live for one card. The project manager creates one, gives it the card and its own private copy of the code, so two agents never change the same files at once.
The coding agent writes the fix, runs the tests for the part it changed, and then reviews its own change. When the tests pass and its review finds nothing left to fix, it opens a pull request, which is a proposed change waiting to be accepted. It reports back to the project manager with what changed and which tests ran, and then it is gone.
Each review costs money, because it is an AI model reading the whole change. So a coding agent gets at most four reviews for one pull request. If problems are still left after the fourth, it stops, writes them in the pull request, and the project manager moves the card to blocked for a person to look at. That way one difficult fix cannot use up the budget the other agents share.
Swipe sideways to see the whole scene.
Part 4
The testing and release pipeline
When a change affects something users can see, the project manager sends it to the tester agent. The tester installs that exact version on a virtual Android phone, uses the app the way a person would, and saves screenshots and a written result as proof. Changes users cannot see, such as a fix to an internal check, skip this step, and the reason is written down.
Swipe sideways to see the whole scene.
The release check
The last step is not an agent. It is a short script we call the release check. It runs 24 checks, and a change is released only if every one passes. The checks fall into four groups.
- The card
- It is in the review column, belongs to the right project and is owned by the project manager.
- The coding agent's report
- Tests passed, its own review passed, it reviewed this exact version, and nothing is blocking it.
- The code host
- The pull request is open, unchanged since it was tested, and can be merged without conflicts.
- The tester's proof
- The result is a pass for this exact version, or there is a written reason why no test was needed.
If any check fails, nothing is released and the card goes back to the project manager. If all pass, the script merges the change and moves the card to Done.
Why checking matters most
An agent can only work alone on goals that a machine can check.
Writing the fix is only part of the work. What lets this loop run without a person is that every step ends in something a machine can verify: a test result, a screenshot, a version number that must match. Where a goal cannot be checked that way, such as whether a new screen looks good, a person stays involved.
People
Where people come in
People are still part of the loop. They do three things. They set the rules that every agent follows. They ask for work by message. And they handle exceptions: the project manager messages a person only when something repeats or is unclear, for example a card that fails in two shifts in a row. Routine fixes need no approval.
Swipe sideways to see the whole scene.
Since 21 July 2026, this loop has released 86 fixes. Most came from the code scanner, a few from crash reports, and the rest from people who asked.
Build your own
Tools for each part of the loop
We built ours on OpenClaw, which runs the agents, their shifts and their chat connections, with OpenAI's Codex writing most of the code and Claude Code helping. You do not need the same tools. Each row lists tools that do that job; the ones marked are what we use.
Runs the agents
Task board
Chat with the agents
Crash reports
Code and automation
Testing on devices
Code scanning
Product names and logos belong to their owners, not to SMJ Dynamics. Showing them here does not mean their owners endorse us.
Questions
Common questions
What is a software factory?
A software factory is a setup where AI agents do the repeatable steps of making software, such as finding bugs, writing code, testing and releasing it, while people set the direction and handle exceptions.
Can AI agents fix bugs without a person?
Yes, for bugs whose fix can be checked automatically. Since July 2026 our agents have found, fixed, tested and released 86 fixes this way. A person is told only when a card fails twice or is unclear.
What is the METR time horizon?
It is the length of task, measured in how long a skilled person takes, that an AI agent finishes half the time. METR estimates it doubles about every 3.6 months.
Why does verification matter so much?
An agent can only work alone on goals a machine can check. Tests, screenshots and version numbers that must match are what let our release check approve a change without a person.
Do I need the same tools to build one?
No. You need a task board, a chat app, a code host, a way to test, and an agent platform. The tools list above shows several choices for each.
Sources
Further reading
- METR: Measuring AI ability to complete long tasks (March 2025)
- METR: Task-completion time horizons of frontier AI models
- METR: AI R&D-relevant capabilities are improving rapidly (November 2026)
- Dan Shapiro: The five levels (January 2026)
- Jack Greenfield and Keith Short, Software Factories, Wiley, 2004