factory


The factory that builds software — and itself.
A runtime for self-improving agentic loops. Code is the first product line.
You already have a coding agent that can write a patch. What you probably do
not have is the process around it: something that decides which work is ready,
hands one agent one ticket in one worktree, re-runs the verification command
itself, and holds the merge until CI and a reviewer agree. That is this.
factory drives the coding agents you already use — Claude Code, Codex, Gemini
/ Antigravity, Cursor, Pi, and Hermes Agent via ACP. The tracker is the control
plane, GitHub is the source of truth, and CI is the reward signal. Nothing
merges because an agent said it was done; it merges because the tests passed
and a reviewer (agent or human) approved.

The Graph view of a live instance — every event type, every agent it
routes to, and the recommendation edges between them. This is the whole
control loop as the runtime actually has it registered, not a diagram someone
drew. More screenshots.
Status: the first commit landed on 2026-08-03. The badge above counts the
pull requests the factory has since merged through its own loop. Young
software, used in earnest every day — expect sharp edges, and please
file them.
Try it
Bun 1.3+, Git 2.40+ and the GitHub CLI, on macOS 13+ or Linux (x64 / arm64),
plus a coding agent you already use.
Point it at a repository you already have. Connecting one needs answers only
that repo has — which branch is the integration branch, what the verification
command really is, which files an honest first ticket should own — so the fast
path is a prompt handed to your own coding agent rather than an installer:
git clone https://github.com/watt-mind/factory.git
cd factory
bun install
bin/factory onboard --repo ~/Develop/yourapp | pbcopy
Paste it into Claude Code, Codex, Gemini, Cursor, or Pi with your repository
open. Hermes Agent can run the same work through the event runtime's ACP
adapter. It surveys the repo, wires up the control plane, files the first
agent-ready ticket, and stops at a gate it cannot talk its way past:
factory doctor and factory queue green.
The prompt is docs/onboarding/connect-repo.md
— a runbook, not an incantation, so following it by hand is a supported path.
It stops rather than guessing: if your test command is already red, or the
Projects board has to be created under an owner it cannot infer, it says so and
hands the question back.
bin/factory demo is a separate, narrower thing — it runs the whole loop
offline against a bundled repository, with no accounts, tokens, or model, to
prove a fresh clone works. It says nothing about your code.
docs/quickstart.md has both paths in full, and
SETUP.md covers operator installation, harness links, and the
event-runtime daemon.
Why
Coding agents are good at producing a diff and weak at everything around it:
knowing which ticket is actually ready, staying out of the files another agent
is editing, telling "the tests pass" apart from "I said the tests pass", and
stopping to ask instead of guessing. Those are process problems, so the
factory answers them with process.
- One ticket, one worktree, one agent process. Two tickets run at the same
time only when their
Owned Paths globs are disjoint.
- Every ticket carries a verification command, re-run by the factory after
the agent reports done. An agent's own report is evidence, never the
decision.
- The gate is CI plus a review, by an agent or a human, on a real pull
request.
- The factory holds no product state. Tickets live in the tracker, truth
lives in git, and a restart loses nothing. Agents are ephemeral workers; the
loop is the standing process.