What is a software factory? And how to build one with coding agents
A software factory is a repeatable pipeline that turns intent into shipped code through fixed stations, a shared work queue and checks with evidence. With Claude Code and Codex, agents work the stations and people own the gates. What it needs, what breaks without it in a scripted test, and how to build one.
A software factory is a repeatable pipeline that turns intent into shipped software through fixed stations (plan, prototype, build, verify, review), a shared queue of work, and checks with evidence, so the output depends less on who, or what, did the work that day. An agentic software factory is the same pipeline with coding agents such as Claude Code and Codex working the stations and people owning the approvals. It needs five things: a work queue agents can read and write, units of work sized for one agent, an isolated checkout per agent, stations written down as skills, and a record of every run. Skip the shared queue and the agents can collide: in a worst-case test from our scripted baseline harness (raw runs), two agents claiming work from one TODO.md lost a claim silently in 20 of 20 trials, and two branches appending to it conflicted in 10 of 10.
#How do I build a software factory with coding agents like Claude Code and Codex?
Put the work in a shared queue both agents can drive, write each station down as a skill both agents load, give each agent its own git worktree, make claims atomic, and record every run with checks the tooling ran. With Radial, that is the radial CLI and MCP server for the queue, the rd-* skills for the stations, and build records for the evidence. People approve the plan, react to the prototype and merge the pull request. The step-by-step version is below, after the five parts it needs.
#Where the term comes from
"Software factory" is an old idea with a new engine. Hitachi set up a software business unit it calls a software factory in 1969 (Hitachi's history, in Japanese), and Japanese companies used the name through the 1970s and 80s for organized, repeatable software production, as Michael Cusumano documents in Japan's Software Factories (Oxford University Press, 1991; publisher page) and in his 1987 working paper on Hitachi. Jack Greenfield and Keith Short revived the term at Microsoft in Software Factories (Wiley, 2004; the book) for model-driven development with reusable templates. The US Department of Defense uses it for in-house DevSecOps teams; the Air Force's Kessel Run, formed in 2017, is credited as the first of them (Air Force Materiel Command), though its leaders have since said it now delivers a weapon system rather than working as a software factory (Air & Space Forces). The constant is the same: make building software a process you can repeat and inspect, not a craft that lives in one person's head.
What changed is who works the stations. A team with three engineers and ten agent sessions a day has more labor than review capacity. The factory keeps that labor pointed at the right work and its output trustworthy.
#The five parts of an agentic software factory
#1. A work queue agents can read and write
The queue is the factory floor. Agents pull from it, update it and close work in it; people triage it and read the results. It has to be shared and live, because the agent on your laptop, the agent in CI and the teammate in a browser all need the same state at once.
The common shortcut is a markdown file in the repo. We scripted two agents using one on 2026-11-02:
The chart shows the claim race outcomes, n=20 per setup. In a shared checkout, both agents claimed the same task in 20 of 20 trials and one claim was silently lost in 20 of 20. In separate git clones, the second push was rejected in 20 of 20 and the losing agent then hit a rebase conflict in 20 of 20. The script always takes the first open task, so the 20 trials repeat one deterministic outcome; they show the failure mode, not how often it happens in the field.
In one shared checkout, both agents took the same task and one claim vanished with no error, 20 of 20 times (E-BASE-RACE-shared-lost). In separate clones, git rejected the second push 20 of 20 times (E-BASE-RACE-git-rejected), and the loser then hit a rebase conflict 20 of 20 times (E-BASE-RACE-git-conflict). Git catches the collision; the agent has to repair it.
A cloud tracker fixes the shared-state half: one backlog, live, for every agent and person. It does not fix the race by itself. A plain assign is last-write-wins, so two agents that set themselves as assignee at once both get a success, like the shared checkout above. Radial's claim is one conditional write instead: it assigns the issue only if nobody holds it, so of two agents claiming at once, one wins and the other gets a conflict naming the holder (and radial claim exits 3).
In Radial the agent uses the CLI or the MCP server, people use the web app, and both see one backlog:
radial list --assignee unassigned --status Todo --json # what is ready
radial claim RAD-383 -s "In Progress" # exits 3 if another agent has it
radial comment RAD-383 --stdin < notes.md#2. Units of work sized for one agent
An agent does well with a change it can hold in one context: one parent goal, split into two to four children, each with acceptance criteria and explicit blocked-by edges. Too big and it loses the thread; too small and review time goes to overhead. Writing the plan to a file before filing it lets you argue with the breakdown while it is cheap to change.
#3. An isolated checkout per agent
Two agents in one working tree overwrite each other. Give each its own git worktree and branch, and let the queue, not the filesystem, be where they coordinate. Shared files in the repo are where isolation leaks back in:
The chart shows merge conflicts when two branches edit the same TODO.md, n=10 per case: both append a new task, 10 of 10 conflicted; both close adjacent tasks, 10 of 10 conflicted; both close tasks 8 lines apart, 0 of 10 conflicted.
Two branches that each appended a task to TODO.md conflicted 10 of 10 times, and closing adjacent tasks 10 of 10. Only edits 8 lines apart merged clean, 0 of 10 conflicts (E-BASE-MERGE-*). A merge=union rule in .gitattributes removes the append conflict, at the cost of git no longer flagging two branches that changed the same line. Keeping task state out of the tree avoids both. More in running parallel agents.
#4. Stations written down as skills
A station is a step with a contract: what it reads, what it writes, and when it is done. Write each one down as an agent skill so every session runs it the same way. Radial ships open-source rd-* skills for Claude Code and Codex that cover the line. The skills run on your agent and your model, with your API keys; nothing in them runs a model on Radial's servers.
| Station | Skill | Output |
|---|---|---|
| Plan | rd-plan | One parent and two to four children, in a file, before anything is filed |
| Prototype | rd-prototype | One clickable HTML file attached to the parent as a Preview |
| File | rd-issues | The real issue tree with blocked-by edges, read back to prove it landed |
| Build | rd-build | Each child built in turn, with notes and checks on the issue |
| Verify | rd-verify | The repo's real gate, run once, summary line read rather than exit code trusted |
| Ship | rd-pr | One pull request for the whole tree, written so merging it does not close child issues nobody reviewed |
Install them with radial skills install. The stages and gates a run records come from a pipeline file. With none in the repo, the shipped default applies. Its stages, in order, are plan, prototype (optional), materialize, build and verify. Its gates, with the risk tiers each runs at, are:
| Gate | Runs at tiers |
|---|---|
validate | T0, T1, T2, T3 |
unit | T1, T2, T3 |
e2e | T2, T3 |
review | T1, T2, T3 |
browse | T1, T2, T3 |
The screenshot above is a terminal in a fresh repo, run offline. radial build pipeline show prints "source shipped" and the same stages and gates as the table above. A second command, radial help filtered with grep, shows the skills and build subcommands.
The screenshot above is the Radial docs page for the skills workflow, which walks one feature through every rd-* skill. The workflow walkthrough runs every station on one real feature.
#5. A record of every run
A factory without records is a rumor. For every piece of work you want to see which stations ran, how long each took, which checks passed, and on what evidence. "The agent said the tests pass" is not evidence. "The CLI ran pnpm test and read the exit code and the summary line" is:
radial build gate --gate unit --exec -- pnpm testIn Radial each issue keeps a build record: the stages with every attempt, the gates with their provenance (run by the CLI, imported from a file, or reported by the agent), and the agent's redacted session. That is also how you keep the logs: see how to save Claude Code and Codex session logs.
#Where the people go
People do not leave the factory. They move to the gates where judgment matters:
- Approving the plan before it becomes issues.
- Reacting to the prototype before the real component is written. Clicking a Preview and saying "no" takes minutes; saying it after the build means throwing away the build. See sharing agent HTML prototypes.
- Reviewing and merging the pull request, with the build record open next to the diff.
The factory's job is to make those three decisions quick to reach and well informed, not to remove them.
#Build it with Claude Code and Codex
Seven steps, each with the command that does it. They work the same for Claude Code and Codex, except where noted.
- Connect both agents to the queue. Install and sign in once:
npm i -g radial.build && radial auth. For Claude Code, add the hosted MCP server:claude mcp add --transport http radial https://mcp.radial.build, then run/mcpto authorize it. For Codex, add the local server to~/.codex/config.toml:
[mcp_servers.radial]
command = "radial"
args = ["mcp"]Both agents can also run the CLI directly, with --json on every command that returns data.
-
Install the stations.
radial skills installwrites therd-*skills to~/.claude/skillsfor Claude Code and~/.agents/skillsfor Codex (--projectputs them in the repo instead). Then runrd-setupin the repo. -
Write the line down.
radial build pipeline initwrites.radial/pipeline.jsonwith the stages and gates above; edit it to match your repo's real checks. -
Record every session.
radial build hook install --client claudeandradial build hook install --client codex, once per machine. Each turn is redacted and stored on the issue the agent is building. -
Give each agent its own checkout.
git worktree add ../wt-rad-383 -b rad-383per agent, so no two agents share a working tree. -
Run one feature through the line. Plan with
rd-plan, prototype withrd-prototype, file the tree withrd-issues, then let each agent pick up a child, build it withrd-build, run the gate withrd-verify, and open the pull request withrd-pr. In Claude Code the skills are slash commands (/rd-plan); in Codex, name the skill in your prompt. Under the skills, every pick-up is an atomic claim:
radial claim RAD-383 -s "In Progress" || echo "taken, pick another" # exit 3: another agent has it
radial build start RAD-383
radial build gate --gate unit --exec -- pnpm test # the CLI runs it and records it- Close the loop. After a few runs, read the records with
rd-retroand fix the station that keeps failing.
People stay at the three gates: approve the plan, react to the prototype, review and merge the pull request. Agents are not billed in Radial, so a tenth agent session adds $0 on the tracker side: $50 per user per year for the people, flat. See pricing.
#Methodology
Scripted runs on 2026-11-02 with git 2.47.3. Claim race: two scripted agents on one TODO.md, both picking the first open task, n=20 per setup (shared checkout; separate git clones). Merge cases: two branches merged into main, n=10 per case. These measure the tool floor, not model reasoning. Picking the first open task is the worst case, and because the script is deterministic, 20 of 20 is one outcome repeated rather than a field frequency; with a random pick among k open tasks, collisions fall toward 1/k. A mkdir lock in the shared checkout would also prevent the lost claim; we did not test one. No tracker arm was run. All of these results come from our scripted baseline harness. Evidence ids (E-BASE-RACE-, E-BASE-MERGE-) map to the raw output in summary.json through the public evidence.json. The harness scripts and raw runs are in BrainGridAI/radial/benchmarks, with reproduce.sh to rerun them. The results as CSV: what-is-a-software-factory-scripted-runs.csv.
#FAQ
#What is a software factory in software engineering today?
A repeatable pipeline that takes work from intent to shipped code through defined stations, a shared work queue and checks with evidence. With coding agents, the term is now used for a pipeline where agents do much of the implementation and people approve plans, designs and merges.
#What is an agentic software factory?
A software factory where coding agents such as Claude Code or Codex pull work from a queue, run each station, record their checks, and hand finished work to people at defined approval gates.
#How do I build a software factory with coding agents like Claude Code and Codex?
Give both agents a shared, cloud work queue they drive through a CLI or MCP (claude mcp add --transport http radial https://mcp.radial.build for Claude Code, a [mcp_servers.radial] entry in ~/.codex/config.toml for Codex), install the stations as skills with radial skills install, give each agent its own git worktree, claim work atomically with radial claim, and record every run with radial build hook install and radial build gate --exec. People approve plans and prototypes and merge pull requests. Radial provides the queue, the rd-* skills and the build records; your repo provides the tests and the gate.
#Can agents coordinate through a TODO.md file instead of a tracker?
Not reliably without extra locking. In our scripted worst-case runs, two agents claiming from one checkout lost a claim silently 20 of 20 times, and two branches appending tasks to the file conflicted 10 of 10 times. A shared tracker gives every agent one live state. A plain assign is still last-write-wins, so pick up work with an atomic claim: radial claim (MCP claim_issue) gives the issue to exactly one agent and tells the others who holds it.
#Do I need an issue tracker for a software factory?
You need a shared, live queue with state that every agent and every person sees at once, plus a place for each run's record. A cloud issue tracker is that queue. A markdown file in the repo is shared only when each worktree commits, pushes and pulls, so every agent sees a stale copy between syncs; and a chat thread is not a queue.
The team behind Radial, the fast, CLI-first issue tracker that lets your own agents work for free. We write about plain software, speed as respect, and bringing your own agent.
Keep reading
How to share an HTML prototype your coding agent built
Claude Code and Codex mock up ideas as single-file HTML. A safe way to get feedback is a link that renders the file in a sandbox next to the issue it belongs to. The options compared, the exact headers Radial sends, what they block and what they do not, and the one-command version.
Running agents in parallel? They need one shared record to coordinate around
Parallel agents split a job into concurrent subtasks. The hard part is not launching them, it is keeping them from stepping on each other. That is a shared-state problem, and the state your agents fight over most is the task list. Here is where it should live.
How to save Claude Code and Codex session logs before they disappear
Claude Code deletes local transcripts after 30 days by default, and Codex rollouts live in one folder on one laptop. How to keep each session on the issue it worked on with Radial, how to keep them locally without a tracker, and what a scripted no-tracker baseline re-reads to resume.