Software Factory

Speed run 24 Oct – 22 Nov 2026 Ray Shih

Turn your engineering backlog into verified, review-ready pull requests — with controlled execution, visibility, and human approval.

This is a 30-day speed run. Ray has already built a version of this over the past few months. This experiment rebuilds it from scratch by gluing off-the-shelf tools, to see how far it gets. Weekly updates on progress, cost, and where it broke.

Coding agents can already write code. What teams lack is the factory around them: a queue, execution control, failure recovery, CI verification, human review, an audit trail and cost visibility. Software Factory is that control layer — built by integrating existing infrastructure, not by building another agent.

Day 1 — nothing works yet; building in public.

01 — Four pillars

You make the wish and sign off on the result. AI does the rest.

A human approves every merge. No auto-merge. Coding is in progress. The other three are planned. None of them work yet.

  1. In progress

    Coding

    You describe the problem, AI writes the code.

  2. Planned

    PR Nursing

    AI looks after the PR until it's ready: review feedback and tests.

  3. Planned

    AI Review

    Takes some of the code review load off you. An eval system to align agent review with human standards.

  4. Planned

    Self-improve

    It should get to know you better the more you use it.

02 — How it works

Issue in. Review-ready pull request out.

A labelled GitHub issue enters through a GitHub App. The control plane stores it. Trigger.dev queues it, with concurrency limits and retries. An Anthropic Managed Agent works in a sandbox. The run opens a branch and a pull request, GitHub Actions runs CI, and a person reviews the result.

GitHub Issue → GitHub App / webhook → control plane (Postgres) → Trigger.dev queue → Anthropic Managed Agents sandbox → branch + PR → GitHub Actions CI → human review

  1. 01

    GitHub Issue

    A labelled item from the backlog.

  2. 02

    GitHub App

    Webhook in. Tasks are persisted idempotently.

  3. 03

    Control plane Being built

    Postgres. Decides when a task runs, and records state, cost and failures.

  4. 04

    Trigger.dev

    Queue, global and per-repo concurrency, retry.

  5. 05

    Managed Agents

    Anthropic session and sandbox. Timeouts included.

  6. 06

    Branch + PR

    One pull request per task. Retries do not open a second one.

  7. 07

    GitHub Actions

    CI verification before anyone is asked to review.

  8. 08

    Human review Always

    Approve, request changes, or reject.

Requesting changes sends the task back through the queue. Rejecting it closes the task and records the failure. Approving it accepts the pull request. Nothing merges on its own. An idle agent session is not a completed task.

03 — The pilot

A short trial on real, low-risk work.

For CTOs and engineering leads at software startups of about 5–30 people who already use GitHub and AI coding tools, and whose maintenance backlog keeps growing: bug fixes, test gaps, dependency bumps, small changes.

I'm looking for a few design partners. The pilot is deliberately small. The system never runs on a repository that hasn't been explicitly authorised.

Length
1–2 weeks
Repository
1, and only if you authorise it
Work
Up to 5 low-risk issues
Review
A human on every pull request
Price
Free, or about £500

04 — Principles

What it will respect, and what it will not do.

Principles

  1. Integrate existing infrastructure; don't rebuild it.
  2. Decouple the agent runtime from the control plane.
  3. Idempotency on every external operation.
  4. Retries never create duplicate pull requests.
  5. An idle agent session is not a completed task.
  6. Every pull request is human-reviewed.
  7. Record cost, human interventions and failure causes.
  8. Never run on unauthorised repositories.

Not in this experiment

  • SaaS onboarding
  • Billing
  • RBAC / SSO
  • Multi-tenancy
  • A custom agent harness
  • A custom scheduler
  • Multi-model routing
  • Auto-merge
  • Deploy automation

05 — Build in public

Day 1 — nothing works yet; building in public.

There is no working pipeline. This page describes the experiment, not a product you can switch on. Ray Shih is rebuilding it alone, from 24 October to 22 November 2026. Weekly updates cover progress, cost, and where it broke. On 22 November the experiment ends with a Go, Pivot or Stop decision.

https://github.com/rayshih/software-factory