How to Build an AI Software Factory
Macroscope
Macroscope
Product

How to Build an AI Software Factory: Running Coding Agents at Scale

A practical guide to building an AI software factory: work intake from issues, decomposition, running multiple coding agents in parallel in isolated cloud environments, automatic verification via CI and AI code review, and agents that follow up on review comments and failing checks.

An AI software factory is built by connecting work intake (issues, tickets, messages) to orchestration that dispatches tasks to multiple coding agents running in parallel in isolated cloud environments, with automatic verification via CI and AI code review, and agents that follow up on review comments and failing checks until pull requests are ready for human approval. The factory produces reviewed changes continuously, not one at a time when an engineer has a terminal window open.

This guide walks through each stage: how work enters the factory, how tasks get decomposed, how agents run in parallel without interfering with each other, how output gets verified, what happens after the PR opens, and where humans fit in the loop. By the end, you will know what infrastructure you need and how to start building.

TL;DR

  • Work enters from issues, tickets, or messages. A Linear issue, a Slack request, a GitHub issue with a label, or a scheduled task.
  • Orchestration dispatches tasks to agents. The factory decides which agent handles which task, tracks progress, and handles dependencies.
  • Agents run in parallel in isolated cloud VMs. Each agent gets its own environment with your repository cloned, dependencies installed, and your stack running.
  • Agents verify their own work before opening PRs. Running tests and interacting with the application catches mistakes before a human sees them.
  • AI code review validates every PR. Without automated review, agents produce PRs faster than humans can read them.
  • Agents follow up on review comments and failing CI. The agent responds to feedback, pushes fixes, rebases when branches diverge, and resolves merge conflicts.
  • Humans approve exceptions and review what matters. The factory handles the routine; humans handle judgment.

What is an AI software factory?

An AI software factory is an infrastructure pattern where many AI coding agents run in parallel in the cloud, taking tasks from a queue all the way to reviewed pull requests ready for human approval. It includes orchestration to coordinate the agents, AI code review to validate their output, and CI loops to verify changes actually work.

This is not about manufacturing execution systems (MES) or ERP software for physical factories. An AI software factory produces code: autonomous coding agents that write, test, and ship software changes continuously.

The difference from running one agent at a time is throughput. With a single agent in your terminal, you watch it work, handle review comments yourself, fix CI failures yourself, and start the next task when you are ready. With a software factory, tasks flow from a queue, many agents run simultaneously, agents handle their own post-PR lifecycle, and reviewed PRs emerge at whatever rate the pipeline can sustain.

For the foundational definition, see what is an AI software factory.

Stage 1: Work intake

Work enters the factory from issues, tickets, Slack messages, webhooks, or scheduled tasks. The intake layer converts these inputs into task descriptions the factory can process.

Sources of work

SourceHow it connectsBest for
GitHub issuesLabel triggers dispatch (e.g., agent-ready)Bug reports, feature requests with specs
Linear issuesIntegration watches for specific labels or status changesTeams using Linear for planning
Slack messagesBot listens for mentions or specific channelsAd hoc requests, urgent fixes
WebhooksExternal systems post task payloadsCI-triggered tasks, incident response
SchedulesCron-style definitions in the orchestration layerRegular maintenance, dependency updates

The key is that work arrives in a structured form with enough context for an agent to start. A good task description includes what needs to change, why, any constraints, and how to verify success.

What makes a good task?

Tasks that work well for agents:

  • Bug fixes with reproductions. A failing test, a stack trace, or clear steps to reproduce give the agent something to verify against.
  • Feature implementations from specs. Written requirements the agent can read and check its work against.
  • Mechanical refactors. Renaming, API migration, syntax updates.
  • Repetitive changes. The same change across many files, services, or repositories.

Tasks that need more work before dispatch:

  • Vague requests. "Improve the checkout flow" needs decomposition before an agent can act.
  • Product judgment. Whether a feature should exist or what the UX should feel like requires human input first.
  • Ambiguous scope. Tasks where the agent would need to ask clarifying questions repeatedly.

Stage 2: Task decomposition

Large tasks get broken into smaller, verifiable units before dispatch. An agent working on "build the entire authentication system" will struggle; an agent working on "add the password reset endpoint with tests" can verify its own success.

Decomposition strategies

  • By component. Frontend, backend, database migration, tests as separate tasks.
  • By endpoint or feature flag. One task per API endpoint or one task per flag-gated capability.
  • By file or module. One task per file when the changes are mechanical.

Decomposition can happen manually (a human breaks down the epic) or through an orchestration layer that uses an LLM to split a large task into smaller ones. The goal is that each task has a clear definition of done and can be verified independently.

Dependencies between tasks

Some tasks depend on others. The database migration must land before the backend code that uses the new schema. The orchestration layer tracks these dependencies and dispatches tasks in the right order, or batches independent tasks for parallel execution.

Stage 3: Agent execution in parallel

Each task gets dispatched to a coding agent running in its own isolated cloud environment. Isolation is what makes parallelism work: agents do not compete for the same ports, databases, or file locks.

Why isolated environments matter

Agents that share an environment interfere with each other:

  • Two agents claim the same port for a dev server.
  • One agent's database migration breaks another agent's tests.
  • A half-finished dependency upgrade corrupts the checkout.
  • Agents overwrite each other's uncommitted changes.

A software factory gives each agent its own VM or container. The environment is provisioned with:

  • Your repository cloned and checked out to the right branch.
  • Dependencies installed (from a cached image or fresh install).
  • Services started (databases, caches, dev servers).
  • Credentials scoped to what the task needs.

Bring your own agent

A software factory is infrastructure, not an agent itself. It runs the agents your team already uses: Claude Code, Codex, or others. You bring your own API keys or subscriptions, and the factory handles provisioning, orchestration, and lifecycle.

This is the approach Murmur takes. Each agent session runs in its own dedicated cloud VM with your development stack. The platform is agent-agnostic: the orchestration layer works with whatever agent you configure.

How many agents in parallel?

The limit is coordination and review capacity, not compute. A cloud platform can run dozens of agents simultaneously. The practical constraint is often whether you can review and merge PRs fast enough to keep up with what the agents produce.

Teams running large agent fleets typically adopt AI code review at the same time, specifically so the review step does not become the bottleneck.

Stage 4: Self-verification

Agents that cannot verify their work are guessing. The difference between a useful software factory and a frustrating one is whether agents actually run the code they write.

What verification looks like

An agent with proper verification:

  1. Writes the change.
  2. Runs the test suite and confirms tests pass.
  3. Starts the application and interacts with it (for UI changes).
  4. Checks that the change addresses the original task.
  5. Attaches evidence to the PR: test output, screenshots, recordings.

An agent without verification:

  1. Writes the change.
  2. Opens a PR that "looks right."
  3. Hopes it works.

The second agent produces diffs that look plausible but fail at runtime. This creates rework that often exceeds the time the agent saved.

Evidence in pull requests

Good factory output includes artifacts:

  • Test output. The full test run showing what passed.
  • Screenshots. For UI changes, what the result looks like.
  • Recordings. For interactive changes, a video of the flow.
  • Logs. For backend changes, relevant log output showing the change working.

These artifacts let reviewers verify the change quickly instead of checking out the branch and running it themselves.

Stage 5: AI code review

Without AI code review, agents produce PRs faster than humans can read them. The queue of unreviewed PRs grows, and the factory's throughput becomes meaningless if changes sit waiting for weeks.

Why AI code review fits a software factory

AI code review closes the gap between agent production and human review capacity. Macroscope Code Review reviews every PR with full-repository context, catching cross-file bugs that agents might have introduced.

The combination works like this:

  1. Agent opens a PR with its changes and evidence.
  2. AI code review runs automatically, analyzing the diff against the rest of the repository.
  3. Findings post as inline comments on the specific lines.
  4. If findings require changes, the agent (or the author) addresses them.
  5. When the review passes, the PR is ready for human approval or auto-approval.

Auto-approval for low-risk changes

Approvability auto-approves PRs that meet safety criteria: narrow scope, no correctness issues, documentation or test-only changes. This means routine PRs merge without human intervention, while risky changes get escalated.

For a software factory, this is essential. A factory producing 50 PRs per day cannot have a human approve each one. Auto-approval lets humans focus on the PRs that actually need judgment.

Custom checks with Check Run Agents

Check Run Agents extend AI code review with custom checks defined in plain English. Instead of writing a linter rule, describe what you want checked in a Markdown file. The agent reads your instructions and runs the check on every PR.

Factory-specific examples:

  • "Verify that the PR description includes a link to the Linear issue."
  • "Check that test files exist for any new API endpoints."
  • "Flag changes to authentication code for mandatory human review."

Stage 6: Post-PR automation

A PR is not done when it opens. Review comments arrive, CI fails, branches diverge, merge conflicts appear. A software factory needs agents that handle this lifecycle automatically.

What happens after the PR opens

EventWhat the agent does
Review commentReads the feedback, makes the change, pushes a fix
CI failureInvestigates the failure, diagnoses the problem, pushes a fix
Base branch movesRebases the PR branch onto the new base
Merge conflictResolves the conflict, pushes the resolution
Request for clarificationResponds in the PR comments or escalates to a human

Without this automation, every review comment, CI failure, and merge conflict comes back to you. The agents opened the PRs; now you relay every piece of feedback and do every rebase. That is not a factory; that is agents generating work for you.

Murmur's approach to lifecycle automation

Murmur connects agents to the full PR lifecycle. When a reviewer leaves a comment, the agent reads it, makes the change, and pushes. When CI fails, the agent investigates and fixes. When branches diverge, the agent rebases. This continues until the PR is ready for human approval.

This is what makes the difference between "agents that open PRs" and "a system that produces merged changes."

Stage 7: Human approval

Humans approve exceptions and review what matters. The factory produces reviewed, tested changes. A person decides what merges.

The human role in a software factory

What humans do:

  • Approve risky changes. Auth, billing, infrastructure, breaking schema changes go to humans.
  • Make product decisions. When the agent needs judgment about scope or UX, a human decides.
  • Review escalations. Changes that AI code review or Check Run Agents flagged as uncertain.
  • Tune the system. Adjust task decomposition, update Check Run Agent rules, refine intake sources.

What the factory handles:

  • Routine PRs. Auto-approved by Approvability after passing correctness review.
  • Mechanical fixes. CI failures, review comment responses, rebases.
  • Verification. Running tests, attaching evidence, checking for regressions.

The goal is that every human review is one the PR actually needed, not one the human happened to be assigned.

How do you get started?

Start small: pick one well-scoped task type, run it through the pipeline, and expand once you trust each stage.

A practical starting path

  1. Connect a work intake source. GitHub issues with a specific label, or a Linear project.
  2. Set up one agent in a cloud environment. A Claude Code or Codex session in a VM with your repository and stack.
  3. Run one task. A bug fix with a clear reproduction is a good first test.
  4. Verify the output. Did the PR arrive green? Did the agent's evidence match reality?
  5. Add AI code review. Install Macroscope and let it review the agent's PRs.
  6. Enable post-PR automation. Use an orchestration layer like Murmur that keeps agents connected to review comments and CI.
  7. Expand gradually. More tasks, more parallelism, more types of work.

Infrastructure requirements

ComponentOptions
Agent executionMurmur, Cursor cloud agents, Codex Cloud, self-managed VMs
OrchestrationMurmur, custom tooling, GitHub Actions with webhooks
AI code reviewMacroscope
CIGitHub Actions, CircleCI, your existing CI
Issue trackingGitHub Issues, Linear, Jira, any system with an API

The simplest path is an integrated platform. Murmur provides orchestration, agent execution in isolated VMs, and post-PR automation. Add Macroscope for AI code review and you have the core pipeline.

For the full comparison of orchestration options, see best coding agent orchestration tools 2026.

Build your AI software factory
Murmur runs each agent in its own cloud VM with orchestration and post-PR automation. Apply for early access.
Apply for access

Frequently Asked Questions

What is an AI software factory?

An AI software factory is an infrastructure pattern where many AI coding agents run in parallel in the cloud, taking tasks from a queue all the way to reviewed pull requests ready for human approval. It includes orchestration to coordinate agents, AI code review to validate output, and CI loops to verify changes work. For the foundational definition, see what is an AI software factory.

What tool fixes failing CI checks and review comments automatically?

Murmur connects agents to the full PR lifecycle. When CI fails, the agent investigates the failure and pushes a fix. When a reviewer leaves a comment, the agent reads it, makes the change, and pushes. This continues until the PR is ready for approval, without manual intervention on each failure or comment.

What's the best platform for running AI coding agents in the cloud?

For a software factory with many agents in parallel, look for a platform with isolated VMs per agent, your full stack running for verification, post-PR automation for review comments and CI failures, and orchestration. Murmur is built for this model. See best coding agent orchestration tools 2026 for the full comparison.

How do I run many coding agents in parallel?

Run each agent in its own isolated cloud environment so they do not interfere with each other. Cloud platforms can spin up many VMs simultaneously, each with your repository cloned and stack running. The orchestration layer dispatches tasks to available agents and tracks progress. Murmur handles this with dedicated cloud VMs per agent session.

What are the best cloud platforms for running Claude Code or Codex agents in parallel?

Murmur runs Claude Code or Codex agents in parallel in dedicated cloud VMs. You bring your own API keys or subscriptions, and Murmur handles provisioning, orchestration, and lifecycle. Cursor cloud agents also support parallel execution on their infrastructure. See how to run coding agents in parallel in the cloud.

How does AI code review fit into a software factory?

AI code review closes the gap between agent production and human review capacity. Without it, agents produce PRs faster than humans can read them. Macroscope Code Review reviews every PR automatically, catching bugs and cross-file issues. Approvability auto-approves low-risk changes so humans focus on what matters.

What tasks are good fits for an AI software factory?

Bug fixes with reproductions, feature implementations from written specs, mechanical refactors, and repetitive changes across many files. Tasks requiring product judgment or context outside the codebase fit less well and need human input before dispatch. The factory amplifies whatever you put into it.

Can agents run in my own cloud?

Yes, with the right platform. Murmur supports running agent VMs in your own GCP project or AWS account.

Does a software factory merge PRs automatically?

Not by default. The factory produces reviewed, tested changes ready for human approval. A person decides what merges. When paired with GitHub auto-merge and Approvability, low-risk PRs that pass all checks can merge automatically, but this is opt-in and policy-controlled.

What is Murmur?

Murmur is Macroscope's platform for running many coding agents in parallel in the cloud. Each agent runs in its own dedicated VM with your development stack, and agents handle review comments, failing CI, rebases, and merge conflicts after PRs open. It is agent-agnostic (Claude Code or Codex with your own keys), and agent VMs can run in your own GCP project or AWS account. See multi-agent orchestration for coding.

How do I get started with an AI software factory?

Start small. Pick one well-scoped task type (bug fixes with reproductions are good), connect a work intake source (GitHub issues with a label), set up one agent in a cloud environment, run a task, verify the output, add AI code review, and expand gradually once each stage is working. Apply for Murmur early access at /murmur-beta.