What Is a Software Factory? How AI Agents Build and Who Checks
What is a software factory? Its stations in plain words, how AI agents fill them, where end-to-end tests sit, and how to start with one gate.
A software factory is a repeatable line that turns requests into released software. In an AI software factory, agents take tasks from a queue and build them, and each change passes automatic checks and a review before release.
Your team may already have part of one. Agents open more pull requests in a morning than anyone can read in a day. The code looks fine and its own tests pass, and still nobody knows whether a customer can book, pay or sign in.
What does software factory mean?
Definition
A software factory is a standard, repeatable process that takes work in at one end and delivers tested software at the other.
- It has a queue of work, builders, checks, a gate that approves each change, and a release.
- In an AI software factory, also called an agentic software factory, the builders are AI agents.
Addy Osmani gives the modern version in one sentence, in Software Factories, Light and Dark:
A software factory is many harnessed loops running at once, fed by a queue of work and drained through a review gate into production, with humans owning the whole thing from above.
The last words matter most. However good the agents are, a person still answers for what the factory releases.
From 1968 to the agentic software factory
The idea is older than AI.The same article traces the term to a paper Bob Bemer gave in 1968, The economics of program production.The hope was to make software through a repeatable process, instead of relying only on the craft of each person.
For decades the answer was standard tools, shared pipelines and reusable parts, often for a family of similar products. People did the building. AI agents change who does it.
| Question | The classic software factory | The agentic software factory |
|---|---|---|
| Who writes the code? | Developers, with shared tools and parts. | AI agents, many at the same time. |
| What is standard? | The components, the tools and the process. | How a task is described, what an agent may do, and which checks it must pass. |
| What is slow? | Writing the code. | Knowing whether the code is right. |
| What do people do most? | Build and assemble. | Define the work, design the checks, and decide. |
Software factory vs harness vs loop
These three words are often mixed up. They are three sizes of the same thing, one inside the other.
The factory
One queue in front, one review gate at the end.
A harness
A loop
Fix a bug
Its tools, limits and checks
A harness
A loop
Add a field
Its tools, limits and checks
A harness
A loop
Update a library
Its tools, limits and checks
| Word | What it is | Example |
|---|---|---|
| Loop | One agent on one job: it acts, checks the result, and tries again until it is done. | Fix the date bug, run the tests, try again. |
| Harness | What surrounds the loop: its tools, its permissions, its memory, and the checks that decide when it is done. | The agent may change the code, but not the release settings. |
| Factory | Many loops in their harnesses, with one queue, one set of checks and one review gate. | Ten tasks in progress, and one way to production. |
AI software factory architecture, station by station
The tools differ from one team to the next, but the pattern stays close to these seven stations.
1
Intent
What people want, and what must be true when it is done.
2
Queue
One list of small, clear tasks.
3
Agents build
Each agent takes one task and works on its own branch.
4Automated checks
A failed check sends the change back to its agent, with the reason.
5
Review gate
Approve the change, or send it back.
6
Deploy
The approved change is released.
7
Monitor
Errors and user requests are collected.
What monitoring finds becomes new work in the queue.
The same cycle, followed from the point of view of one agent and one feature, is the subject of development with AI agents (ADLC).
Software factory vs CI/CD vs DevOps
A software factory does not replace the other two. It puts more work through them, so any weak point in your pipeline shows sooner.
| Question | DevOps | CI/CD | AI software factory |
|---|---|---|---|
| What is it? | A way of working | An automated pipeline | A production line for changes |
| What does it solve? | Builders and operators working apart | Slow, manual builds and releases | Many changes to build and check at once |
| Where does it start? | With the team's habits | With a code change | With a request in the queue |
| Who writes the code? | Any team | Any team | Mostly AI agents |
| What does it depend on? | Shared responsibility | Automated tests | Checks the team can rely on |
Why checking sets the pace of a software factory
Adding an agent is easy.Knowing that its work is right is hard.Osmani puts it plainly: "Verification, not generation, is the real constraint on a factory."
When checking is slow, a team has three choices. Changes wait in line for a reviewer. Or the review becomes a quick look. Or the team improves the checks, so that people spend their time on real decisions. Only the third choice lets you add another agent.
Where end-to-end testing sits in a software factory
End-to-end testing belongs to the checks station, after the change is built and before anyone is asked to approve it.It is the check that uses the whole application from the outside, as a customer does.Each check answers its own question.
| Check | The question it answers | What it does not show |
|---|---|---|
| Unit tests | Does this piece of code do what its author expected? | The assembled application, or a request the author misread. |
| Code analysis and security scans | Does the code contain a known kind of mistake? | Whether the feature does what a user needs. |
| Code review | Is the change sound, clear and easy to live with? | How the application behaves, unless the reviewer opens it. |
| End-to-end tests | Can a user still finish this workflow, with the right result? | The quality of the code, or a workflow nobody wrote a test for. |
The task says that a guest can move a booking to another date. The agent writes the change, and its unit tests pass. The code analysis finds nothing.
The end-to-end test opens a booking for May 12, moves it to May 14, and checks the new date and the total on the screen. Both are right. Its last step is a Call API that asks the server for the same booking, and the server still says May 12.
The page showed the new date, but nothing was saved. Every check of the code passed, and the guest would have arrived on a day with no room booked.
The step that asks the server needs no code: see API testing in the guides.Checking both the screen and the server in one test is the subject of API testing vs UI testing.
Two ways in: a human in the loop, and a layer for AI agents
GUI Test Studio is a testing solution where QA teams and AI agents build, execute, and manage tests visually, without code scripts. It does not write your application's code. In a factory it can take part in two ways, and both use the same test.
A human in the loop
- Decides what must be true
- Reads the test on the timeline
- Decides what a failure means
A layer AI agents use
- Creates a test from a request
- Runs it and reads why it failed
- Proposes a change to a saved test
One visual testChangeBooking.GTS
Exit code 0: the change goes on to review.
Exit code 1: the change goes back, with the reason.
Nadia, the QA lead, records the date change once, in the test version of the app. She reads every step on the timeline, with no test script to open, and adds the Call API step that asks the server.
When the run fails, the Confidence Report shows her what the test expected, what it found and the video of the run. She decides that it is a bug and files it as a Jira issue. If the application had changed on purpose, she would update the test. For a new look, that is one click on Accept.
The agent that wrote the feature uses GUI Test Studio's MCP server, a standard way to give an assistant tools. It runs Nadia's test and reads that the server still holds May 12 when the test expected May 14. It corrects its own code and runs the test again.
If the agent proposes a change to the saved test, the preview comes first, and the agent is instructed to ask a person before it applies the change.
Neither way asks someone to watch every run. People decide what the test must prove, and GUI Test Studio's engine verifies the application at every run.
Which decisions belong to a person is the subject of human-in-the-loop testing.To connect an assistant, read MCP server for testing.
A software factory with Claude Code: where to add the gate
Claude Code, or another coding agent, can fill the third station on its own: it takes a task, changes the code on a branch and opens a pull request. GUI Test Studio adds a check in two places.
In the conversation. Connect Claude Code once, as Create a test from a prompt shows, and ask for a real run before the agent says it is done:
- With GUI Test Studio, run the Change booking test. Tell me which check failed, what it expected and what it found.
- With GUI Test Studio, create a test on https://staging.example.com: move the booking from May 12 to May 14, then check the new date and the total of 240.00.
In the pipeline. The agent's own run helps it work.The gate is a separate run, started by the pipeline with gtr-cli:
gtr-cli run tests --countdown 0 --junit results\junit.xml --json results\results.json --artifacts results\artifacts| Exit code | What it means | What the factory should do |
|---|---|---|
| 0 | Every test passed. | Send the change on to the review gate. |
| 1 | At least one test failed. | Send it back to the agent, with the results. |
| Any other code | A test could not run, or the run was stopped. | Hold the change, fix the cause and run again. |
A run that did not happen proves nothing, so only 0 should open the gate.Everything the pipeline gets back is in Run tests in your pipeline.
Light vs dark software factory
In a dark factory, "code ships that no human has read, verified only by other machines", as the same article says.A lit factory is the same line "with the lights left on where judgment lives".The choice is made for each kind of change, not once for the whole company.
Which changes can go through in the dark, and how to keep the checks independent of the agents, is the subject of dark factory software development.
How to start: one workflow, one gate
You do not need ten agents or a new platform. You need one place in your pipeline where a real result decides what happens next.
- 1
Choose one workflow that must never break
Choose the one your users would call you about: sign in and pay, book a room, send an invoice. One is enough to learn how the gate behaves.
- 2
Write down what must be true at the end
Someone who knows the product writes the expected result in plain words, such as the new date, the right price and the booking saved on the server.
- 3
Create the test and review it
Record the workflow, or describe it to an AI assistant. Then read the test on the timeline, and add any check from your list that is missing.
- 4
Run it on every change
Add one gtr-cli command to the pipeline. Let a change go on only when the exit code is 0.
- 5
Break the application on purpose
On a test branch, put a wrong price on the page and run the pipeline. If the gate stays green, fix the test before you rely on it.
- 6
Decide what each failure means
When the application is wrong, send the result back to the agent or file a bug report. When the change was intended, a person accepts the new result.
When several teams need the same gate, testing becomes a line of its own: see what is a testing factory.Six habits for the first gate are in how to test AI-generated code.
What to know before you start
| Limit | What it means |
|---|---|
| A test checks what it was told to check | A workflow without a test has no gate, and a vague test proves little. |
| It is one gate among several | GUI Test Studio does not review source code, security or architecture. Keep your unit tests, code analysis and review. |
| A desktop test needs a screen | It uses the build machine's real screen, one test at a time, so plan machine time before you add agents. A web test can run without a browser window, and its browsers and devices can run side by side. |
| AI is optional in a run | With AI Smart Verification off, running and verifying a saved test makes no call to an AI model. With it on, AI is asked only about a check that failed. |
Key takeaways
- 1A software factory is a repeatable line: a queue, builders, checks, a review gate, a release, and signals that feed the queue again.
- 2In an AI software factory, agents build. A loop is one agent's job, a harness is what surrounds it, and the factory runs many of them.
- 3Checking sets the pace. Improve the checks before you add another agent.
- 4End-to-end tests run the finished application, after the change is built and before it is approved.
- 5GUI Test Studio takes part in two ways: people define and review visual tests, and AI agents create and run them, with one command as the gate in the pipeline.
Questions
What is a software factory in simple terms?
A software factory is a repeatable line that turns requests into released software. Today the words usually mean a line where AI agents write the code. Each change goes through automatic checks and a review before it is released.
What is an agentic software factory?
It is a software factory whose building work is done by AI agents. Several agents each take one task, write the change, run the checks and try again until the checks pass. People choose the tasks, design the checks and own what is released.
What is the difference between a software factory and DevOps?
DevOps is a way of working in which the people who build software and the people who run it share the work. A software factory is a production line for changes. It uses the delivery pipeline that DevOps teams already have, and adds a work queue, agents that build and a review gate.
What is the difference between a software factory and a harness?
A harness surrounds one agent's work: its tools, its permissions, its memory and the checks that decide when it is done. A software factory runs many of those harnessed agents at once, with one queue before them and one review gate after them.
What is the difference between a light and a dark software factory?
In a light factory, people still use their judgment at the points where a mistake would be costly. In a dark factory, code is released that no person has read, and only machines have checked it. Many teams need both: some kinds of change in the dark, others in the light.
Can I build a software factory with Claude Code?
Yes, you can start a small one. Let Claude Code take one kind of task, work on a branch and open a pull request. Then make your pipeline run checks that the agent does not control, such as an end-to-end test of your most important workflow.
Where does testing fit in a software factory?
Testing sits between the agents that build and the gate that approves. Unit tests and code analysis check the code, and end-to-end tests check that a user can still finish a workflow in the running application. A failed test sends the change back to the agent.
Do people still have a role in an AI software factory?
Yes. People decide what to build, what must be true when it is done, which checks count and which changes need a person's approval. They also decide what a failure means: a bug to fix, or a change made on purpose.
Claude, ChatGPT, Codex and Jira are trademarks of their respective owners.


