A software factory for coding agents

The assembly line for AI software delivery.

Point runfactorial at any repository, new or old. Agents build on your line, people approve at the gates, and leadership sees the cost, agent runtime and tokens per project.

Runfactorial: one line, end to endFrom issue to cost report
your-org/your-repo src/ tests/ .github/ + .factorial/ #412 plan spec review build #398 test code review #377 to CI/CD payments-api $1,284 cost 3h 40m agent runtime 21.6M tokens #361 01 · ONBOARD Your repo, new or existing, plus the GitHub App 02 · DELIVER Agents work each step. People approve at the gates. CI ships it. 03 · UNDERSTAND & OPTIMIZE Cost, time and tokens per project and per ticket
The factory in one picture. A repository joins with one pull request, tickets move along the line through agent stations and human gates, and the board at the end reports what each project and ticket cost.

Your lines, your rules

Build the factory lines that suit your team.

A repository can carry any number of lines, and each ticket runs on exactly one. Different work needs different steps: an epic needs no build step, and a bug or a dependency bump needs no spec. Define a line per kind of work, then label the issue with the one you want, or leave the label off to run the project's default line.

#412 · issue Login fails on Safari bug labeled by you or the project default Epic no code, turns one idea into tickets refine split into tickets product sign-off done Feature the full line: spec first, two gates plan spec review build test code review merge Bug reproduce first, no spec reproduce fix test code review merge Dependency update bump, test, review, merge bump test code review merge

A line for each kind of work

An epic runs a line that writes no code: an agent refines it, splits it into tickets, and a product owner signs off. A bug starts by reproducing. A dependency update bumps, tests and ships. Add a security review, a design gate or a release step wherever your process needs one.

Label it, or take the default

Put a factorial:process:<name> label on the issue and it takes that line. Leave it off, and the ticket runs the line the project names as its default. Two process labels, or a label for a line the repository does not offer, admit nothing. Either way, the ticket runs on exactly one line, and the record says which.

Change a line without stopping the factory

Add a stop, swap the agent on a step, or tighten a gate by editing the YAML. The change applies from the next ticket on. Tickets already running keep the version they started with, so nothing in flight breaks.

Agents on laptops don't scale

Coding agents can do the work. The process around them is not there yet.

Most teams have seen a coding agent finish a real task. Fewer have turned that into something they can run every day, for every ticket, with the same confidence they have in CI.

P1

Every developer runs agents differently

One person uses Claude Code, another Codex, each with their own prompts, on their own laptop, with their own credentials. No two setups are the same, so nobody can compare the results.

P2

Agents run with the developer's credentials

Agents run as the developer, with the developer's tokens, next to the developer's other work. A mistake or a prompt injection has the same reach as the person.

P3

Nobody can say what the agent did, or why it merged

Chat history is not an audit trail. When a change ships, you need who asked for it, what the agent produced, who approved it and what evidence backed the approval.

P4

The bill arrives as one total for the whole organization

Token spend shows up as one line on an invoice. Leadership cannot say what a project cost this month, what a ticket cost or whether a prompt change made things cheaper.

P5

Agents check their own work

Without independent checks, the team either trusts the agent's own report or repeats the verification by hand.

P6

Senior engineers spend their day supervising agents

The people you hired for design and judgment re-run prompts, copy branches and shepherd pull requests.

Works with what you already have

Nothing to migrate. Runfactorial works with the tools you already have.

Your issues, pull requests and CI stay as they are. Your agents are the same Claude Code and Codex your developers use today. Runfactorial sits on top of your issue tracker, your source repository and your CI/CD, and adds the process, the gates and the record.

RUNFACTORIAL THE AGENTS YOU ALREADY USE Orchestrator Reconciliation loop Process config from .factorial/ Append-only event log Dashboard and API Coding agents Claude Code and Codex In isolated workspaces spawns a step results and logs THE TOOLS YOU ALREADY HAVE Issue tracker GitHub Issues labels and comments CI/CD GitHub Actions your pipelines Source repo pull requests branch protection polls, writes labels waits for green merges at gates push a branch, open a PR
Where runfactorial sits. Your issue tracker, source repository and CI/CD stay the source of truth for work, code and review. The agents stay the ones your team already runs. The orchestrator on top adds the process and keeps the record.

Your GitHub setup stays the same

Runfactorial installs as a GitHub App with a narrow permission set. It reads and writes issues, pull requests and branches, and is never granted permission to change your CI workflows.

Your agents, your vendor accounts

Runtimes wrap the Claude Code and Codex command-line tools your developers already have. The vendor key is yours, stored encrypted, and one process can mix both.

Existing repositories welcome

Onboarding adds one folder. Nothing is rewritten. A legacy monolith with its own CI and branch rules joins the same way a fresh repository does, in one pull request.

One ticket on the line

GitHub issuenew ticket
agentplan
human gatespec_review_gate
agentbuild
agenttest
human gatecode_review_gate
checksecurity_scan
CI/CDdeploy
no labels yet A product owner opens issue #142, "Rate-limit the login endpoint", and describes what they need. 1 of 15
Every step is gated on evidence that the orchestrator checks itself: a branch exists, a pull request is open, CI is green, a reviewer approved.

How it works

Onboard a repository, deliver tickets and see what each one cost.

Runfactorial is an orchestrator that runs an observe, evaluate, act loop for every active ticket. GitHub stays the system your team already uses.

01 · ONBOARD

Make any repository ready for agents

Onboarding is one pull request to your own repository. A .factorial/ folder holds the line, the agent manifests and the prompts, all versioned with the code. Existing projects keep their CI, their branch protection and their history.

your-repo/
├─ .github/workflows/ci.yml     unchanged
├─ src/                         unchanged
├─ tests/                       unchanged
└─ .factorial/                  one pull request adds this
   ├─ processes/process-fix.yaml   the line: steps, gates, retries
   ├─ agents/build-agent/          manifest + prompt per agent
   └─ mcp/                         tools the agents may ask for
  • Install the runfactorial GitHub App with a narrow permission set. It can never write workflows.
  • Start from a reference line (plan, spec review, build, test, code review) or write your own in YAML.
  • Choose the runtime for each step: Claude Code, Codex, or both across the fleet. Model IDs, turn limits and time limits are explicit.
  • Declare which MCP tools agents may use. The repository asks for a tool and the operator allows it, so a change in the repository cannot give itself new access.
  • Pin the config. Every ticket snapshots the process it was admitted under, so editing config never disturbs work in flight.

02 · DELIVER

Ship features through a repeatable line

A ticket enters with a label. From then on the orchestrator drives: it spawns the agent for the current step, watches GitHub for the result, checks the postconditions, and promotes or retries.

  • Agents work in isolated environments with a one-hour token for one repository, minted for that run alone.
  • Each agent step ends in a pull request on its own branch. Agents never merge, never approve and never push to main.
  • Human gates park the ticket, assign the reviewers and wait. Approve, request changes or send it back a step.
  • Stop a run from the dashboard, leave a comment, and resume. The agent continues its own session with your comment as its next instruction.
  • The process file sets the retries, timeouts and escalation.

03 · UNDERSTAND & OPTIMIZE

From the executive view down to one step

Every action is an event in an append-only log. The dashboard, the audit trail and the cost reports are all views over that one record, so they never disagree. Leadership sees each project's total cost, agent runtime and token consumption. Engineers drill down to the ticket and the step.

  • Project-level totals: cost, agent runtime, tokens and retries, on one board.
  • One square per ticket, one band per project, one column per state. Shade it by cost, runtime, tokens or retries.
  • Every ticket carries cost, tokens, retries and wall time for each step, attributed to the issue.
  • Compare runtimes and models on real work. Move a step from one agent to another and measure the difference.
  • Find where tickets wait. The board shows which tickets sit at a gate.
  • Export the event log. It is complete, and nothing in it is ever rewritten.
payments-api 34 tickets $1,284 total cost 3h 40m agent runtime 21.6M tokens Tickets by state, shaded by cost new plan spec review build test code review done Example figures. In the dashboard, a square opens its ticket's record.
The executive view of one project: totals at the top, every ticket below, each square one click from its full record.
#412 · Add rate limiting to the export endpoint factorial:done
StepRuntimeTokensCostRetries
planClaude Code61,300$0.740
buildClaude Code348,900$4.121
testCodex129,400$1.360
Ticket total539,600$6.221

Example figures. Issue to merge: 1h 48m, of which 1h 10m waiting at human gates.

In the dashboard

One ticket, with the cost of every step.

This is a real ticket on the factory-demo project. The line it ran on is drawn at the top, the activity log below records every event, and each step reports its own tokens, cost and time. The header rolls them up for the ticket.

factorial / projects / factory-demo / #31
The runfactorial ticket page for issue 31. The process graph shows entry, plan, spec gate, build, test, code gate and done. The activity header reads 2.3M tokens in, 23.8K out, cost $0.51, time 7 minutes 6 seconds. Below it, the test and build steps each list their events, tokens, cost and a transcript link.
Issue #31 on the factory-demo project, from admission to done: six steps, two human gates, one branch, and a full record of what each step cost.

Features

Built for the part of the job the agent can't do.

Runfactorial does not replace your coding agent. It gives the agent a workspace, a process, a reviewer and a record.

Isolated workspaces

An isolated workspace for every run

Each agent run gets a fresh workspace of its own, a cloud sandbox or a dedicated git worktree, and never an operator's working copy. Every run gets a token that expires in an hour and reaches one repository. The orchestrator never runs or interpolates what the agent writes. It only compares and checks it.

Standardized delivery

The same line for every feature

A process is a graph of steps in YAML. Every ticket follows it the same way, with the same gates, the same checks and the same output shape. Rework is a step in the process.

Auditability

A full record of every run

The log records who opened the ticket, which process version it ran under, what each agent produced, what evidence advanced it and who approved. Nothing in the log is changed or deleted.

Cost at every level

From the project total to one step

Executives see total cost, agent runtime and tokens per project. Engineers see the same figures per ticket and per step run, per runtime and per model. Both views read the same record.

Adapts to your SDLC

Your line, your gates

Add a security review step. Require two approvers on the spec. Route the test step to a different agent. Keep a human at merge. Each repository can carry more than one line, and an issue names the one it enters.

Works on your stack

GitHub, Claude Code and Codex, as they are

You keep your issue tracker, your CI and your agents. Runtimes sit behind one contract, so you use the vendors you already pay for, mix them across steps and compare them on the same tickets.

Verified evidence

Postconditions gate every step

A step advances only when the orchestrator can verify it: pr_open, ci_green, pr_approved, and a closed library of checks like them. An agent saying "done" moves nothing.

Security model

The important boundaries on agents do not depend on a prompt.

A rule that works only when the agent obeys it does not protect you. These boundaries hold even when an agent is confused, compromised or wrong.

A person approves every merge to main

Your branch protection requires an approval, and the App authors its own pull requests, so it can never approve them. A gate merges only the commit a person approved.

The App can never write CI workflows

CI runs agent-authored code with repository secrets before a person sees it. The App is never granted workflows: write, so an agent cannot edit your CI workflows.

One-hour, one-repo tokens

Every run gets its own GitHub App token, scoped to the one repository and expiring in an hour. The orchestrator asserts that what was granted equals what was requested, at mint time.

Isolated workspaces, proven host-side

Agents never touch an operator's working copy. The workspace is checked for isolation before any agent process exists, and any path that escapes it is refused.

Tools are permitted by the operator

A repository can declare an MCP server. Only an operator allowlist lets an agent use it, and the entry must match the name, transport and command exactly. Versions are pinned. @latest is refused at parse time.

Runfactorial holds the state, and labels only show it

The state machine is in runfactorial's own database, hosted by Lean Innovation Labs or in your own infrastructure. GitHub labels are a projection for people to read. Edits that people make to an issue are observed input, never commands that bypass the process.

Benefits

What changes when delivery runs on a line.

From days to minutes

Delivery in minutes

A well-specified ticket goes from label to reviewable pull request without waiting for a person to pick it up. The remaining time is review, which is where you want people to spend it.

From one invoice to cost per project and per ticket

The true cost of delivery

Runfactorial records cost, time and tokens for each project and each ticket. Decide which work is worth an agent, which model to run a step on, and whether last week's change paid for itself.

From supervising agents to judgment

People on the work that needs them

Engineers write specs, review designs and approve at gates. The repetitive middle of the ticket runs on the line. The team's time goes where its judgment matters.

Who it is for

Teams that want to run agents as a system.

Executives and engineering leaders

You are being asked how much of the backlog agents can take, and what it costs. Runfactorial gives you the line to try it and project-level totals for cost, time and tokens to answer.

Platform and DevEx teams

You own the standard way your teams ship. Runfactorial adds agent delivery to it, with one config format, one GitHub App and one dashboard for every repository, old and new.

Delivery and consulting teams

You ship for many clients, each with their own repositories and rules. Per-project lines and per-ticket cost make agent work something you can scope, run and bill.

FAQ

Questions teams ask first.

Does runfactorial merge code to main on its own?

No. Agents open pull requests. The orchestrator verifies postconditions and can merge only what a person approved at a gate, against your branch protection. The App cannot approve its own pull requests.

We have a ten-year-old monolith. Can we onboard it?

Yes. Onboarding adds a folder to the repository in one pull request and installs a GitHub App. Your CI, branch protection and history are untouched. A short bug-fix line on an existing codebase is a good first step before adding a full feature line.

Which coding agents does it run?

Claude Code and Codex today, through runtime adapters behind one contract. A line can use different runtimes for different steps, and adding a new runtime does not change the orchestrator.

Do we have to change how we use GitHub?

No. Your issues, pull requests and CI work as before. Runfactorial adds a folder to the repository, a GitHub App and labels that show where each ticket is.

What does leadership see?

For every project: total cost, agent runtime, tokens and retries, on one board, with each ticket shaded by the figure you choose. Every figure is one click from the tickets and steps behind it, because all of it is read from the same event log.

What does runfactorial store about our code?

The state of each ticket, the process it runs under, the events of each run and the issue title. Specs and discussion stay on GitHub and are read live. Each run's workspace, a checkout of your repository, is kept until its ticket finishes, then removed. Vendor keys are stored encrypted in runfactorial's own database.

How does a ticket choose its line?

Put a factorial:process:<name> label on the issue and it takes that line. Leave the label off and it takes the project's default line. A repository can carry as many lines as it needs: epics, features, bugs, dependency updates or anything else your team defines.

Can we change the line after tickets are in flight?

Yes. Editing the process creates a new version. Tickets already admitted keep the version they started with until they finish, so a config change can never break work in progress.

What happens when an agent gets it wrong?

A failed postcondition retries or escalates according to the process. A reviewer can request changes at a gate and send the ticket back a step with their comments as the agent's next input. Nothing lands without a person saying so.

Onboard your first repository this week.

Bring one repository, new or old, and one backlog. Lean Innovation Labs designs the line with you, runs the first tickets through it and shows you what each one cost.

Your details go to Lean Innovation Labs, who answer your request. Read the privacy policy.