Autobuild
Tickets in, Product out.
Autobuild runs coding agents through a fixed pipeline that plans, implements, reviews, and verifies every ticket before it merges. You groom tickets in and review pull requests out; agents do the work, and deterministic code keeps them honest.

Quickstart
You need Bun, git, and the local prerequisites for the
agent runtime you select: Claude Code, Codex CLI, or Pi. The GitHub forge also
needs an authenticated gh CLI or an exported
GITHUB_TOKEN/GH_TOKEN; the local-git forge needs no account or remote.
From the repository you want built, install Autobuild as a development dependency:
bun add -d --exact @defrex/[email protected]
Without a package.json, installation creates package.json and bun.lock,
which should be committed, with node_modules/ ignored.
Run the repository-installed CLI:
bun ab init
This vendors the editable ab-* skills, writes a stack-neutral config, and
hands repository-aware setup to a coding agent. The
configuration reference covers every field. Then
start the dispatcher and its live dashboard:
bun ab dispatch
Then groom your first ticket in your coding agent:
/ab-spec add a retry budget
The agent asks the questions needed to produce a buildable ticket and files it in your tracker. From then on, that skill is how work goes in.
How it works
Finite integration trees collect related work before merging it under your chosen policy.
Work tickets run the pipeline
spec → plan ⇄ plan-review → implement ⇄ code-review → verify:* → finalize
epilogue: (pr.conflicted → reconcile → verify:*)* → merged or closed
Each work ticket moves through deterministic phases inside its own build-runner. Every phase is a fresh agent session, with artifacts knitting them together.
- spec — the dispatcher claims a ready ticket, establishes the final spec, and cuts a branch. The spec is the contract for everything after.
- plan ⇄ plan-review — a planner writes an implementation plan; an independent reviewer approves it or sends it back with findings.
- implement ⇄ code-review — the same shape over commits: implement, review, revise. A finding that survives round after round escalates to you instead of looping forever.
- verify:* — your verification steps, in the order you declare them: shell commands judged by exit code, or agent verifiers that return a verdict and can attach evidence such as screenshots.
- finalize — the PR opens with an agent-written description and the attached evidence, then any post-PR steps you've configured (changelogs, release notes) run.
- epilogue — the dispatcher watches the open PR. Conflicts route back
through reconcile and re-verify; the build ends
mergedorclosed.
A dispatcher spawns builds
The dispatcher claims ready tickets and starts a build-runner for each. Runners are isolated, and all state is logged. Agents never decide what phase comes next, and outcomes are never inferred from what a model printed: every phase reports through a typed CLI into the event log, and tested code decides the transition. That log is the build. Kill the process at any point and the dispatcher resumes from durable state.
The pipeline grammar is fixed on purpose; verify:* and finalize:* are the
extension points, declared per repository in autobuild.toml. For the seams
and the reasoning behind them, see docs/architecture.md
and SPEC.md.
All local, all remote, or anywhere between
Every seam is an adapter you can customize for your project. The build pipeline stays the same.
| Seam | Decides | Adapters |
|---|---|---|
| tickets | where work comes from | local files, Linear, hosted, plugin |
| dispatcher | what starts builds | local process |
| workspace | where a build runs | git worktree, Vercel Sandbox, plugin |
| runtime | who does the thinking | Claude Code, Codex, Pi, plugin |
| forge | where code merges | local git, GitHub, plugin |
| store | where state lives | SQLite, remote HTTP store |
| operators | how you watch | terminal, stdio MCP, Operator API |
Plugins are trusted Bun modules declared in autobuild.toml against the
versioned @defrex/autobuild/plugin-sdk.
Built for throughput, not latency
One build may take longer than a chat with an agent. The trade is far more changes merging every day, with much greater reliability.
- File it and walk away. Nothing in the pipeline waits on you. You don't approve tool calls, paste errors back, or watch a terminal. A build escalates to you only when it is truly blocked.
- As many builds as you can groom. Builds run side by side, each in its own workspace, up to the limit you set. Your attention stops being the ceiling; how fast you can write good tickets becomes the limit.
Headless is safe because the pipeline is deterministic code, not model judgment. State lives in a typed, append-only event log, phase transitions are owned by tested code, and every build leaves a queryable paper trail. Your merge gates are never bypassed: a PR merges when your required checks and your consent say it merges.
Let the queue fill itself
Once tickets are the interface, anything that can write a ticket can put work in front of you.
Builds feed the queue themselves. An implementer that spots a latent bug, a
worthwhile refactor, or a missing follow-up outside its spec records an
observation (ab observe) and moves on: the insight is kept, and scope creep
stays out of the PR. Once enough pile up, the dispatcher distills them into
proposed tickets, deduplicated against work already filed, and by default
files them into triage. You groom them like any ticket you wrote yourself.
Agents propose; humans dispatch.
Support threads, meeting notes, and error telemetry can feed it the same way.
An agent with the ab CLI or the MCP server can file tickets and answer
routine escalations, leaving you only the real product calls.
Learn more
- autobuild.run — the project site.
docs/spec-standard.md— what makes a ticket buildable: the standard every dispatched spec must meet.docs/configuration.md— the complete strictautobuild.tomlschema and examples.autobuild.toml— this repository's own pipeline configuration, as a worked example of the config surface.docs/architecture.md— how the design maps to the codebase: kernel, ports, processes, and stores.docs/remote-store-protocol.md— the complete HTTP server contract and BuildStore conformance instructions.SPEC.md— the source of truth for the design and its terminology.