“I want agents to turn tickets into merged code while I'm away”

A software factory turns events, such as a new ticket, a pull request, a failed check or a clock, into coding-agent runs, and turns their output into merged code. Inside each run a harness drives a model through tool calls, the context window fills as it works, and its permissions are set in advance because nobody is watching. Each run works on a disposable runner and remembers nothing; the ticket tracker, the git host and the orchestrator hold the state between runs. The factory succeeds by giving agents a space where they can do the work and prove it: an agent-ready codebase with a short map, one verify command and a tool that drives the app, plus verification against scenarios the author never saw. Practitioners start with one throttled trigger and human review on every pull request, turn what review catches into checks, and let evidence earn trust. At level 4, low-risk work merges on checks and evidence, and people spend their review on specs, one-way doors and high-risk changes.

Product

Software factory

You might say: agent factory, autopilot, software kitchen, Michelin kitchen

A system that turns tickets, pull requests, failed checks and timers into coding-agent runs, and turns the runs' output into merged code. It works when agents have a space where they can do the work and prove it, so that human review leaves the critical path for low-risk changes.

Ask
What starts the work, what evidence proves it, and who may merge it?

What to look for

  1. Tickets move to Done without a person starting each run
  2. Bot-authored pull requests carry check results and the run's own evidence
  3. Low-risk pull requests merge with no human approval
  4. A run page records each ticket from trigger to finish

Parts

Catalogue: Setup

Pattern

Kitchen brigade

Sources

  1. Simon Willison, How StrongDM’s AI team build serious software without even looking at the codeWe built a Software Factory: non-interactive development where specs + scenarios drive agents that write code, run harnesses, and converge without human review.
  2. Factory, Software Factory documentation, Custom AutomationsEach automation starts a Droid session when its trigger fires: on a schedule, when a message lands in a Slack channel, on a GitHub event, or when another service sends a webhook.
  3. Factory, Software Factory documentation, Events feedRuns Each run's outcome and duration, with a link to its session.
  4. Factory, Software Factory documentation, Custom AutomationsAutomations turn Droid into a teammate for work that keeps coming back.
  5. Matt Pocock, Software Factories for Real Engineers, Classic Concepts + Coding AgentsAssign your coding agent to chew through tickets, and come back to clean code and informative PRs for your review
  6. Matt Pocock, software-factory skill (pull request #1316), Software factoryA software factory is a system of agents that turns tickets, PRs and schedules into merged code, deployed on remote infrastructure the user chooses.
  7. Matt Pocock, AI Coding Dictionary, Software factoryA factory takes the human out of starting sessions, and not necessarily out of anything else.
  8. Kent C. Dodds, kcd-skills, autopilot skillAudit any repository and set it up so coding agents ship changes safely with little human review.
  9. Lauren Tan, pstack, pstackthroughput without quality is not a goal i aspire to.

Use it on your project

teardown-audit: audit my project against the "Software factory" teardown at https://teardownatlas.com/software-factory/

Paste it into a coding agent that has the teardown skills.

Every part

Flatpack

  1. Pick the problem and the level
  2. Fill the ticket tracker slot
  3. Fill the git host slot
  4. Draw the security boundary
  5. Set up a disposable runner inside the boundary
  6. Install the brakes
  7. Configure the coding agent
  8. Write the first task
  9. Wire the orchestrator
  10. Measure the factory
  11. Watch the runs
  12. Make the codebase agent-ready
  13. Build verification
  14. Merge by risk
  15. Open the throttle and run in parallel

An AI agent wrote this map with the teardown skill. It can contain errors: check the sources before you rely on a part. About and legal