“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
- Tickets move to Done without a person starting each run
- Bot-authored pull requests carry check results and the run's own evidence
- Low-risk pull requests merge with no human approval
- A run page records each ticket from trigger to finish
Parts
- Ticket tracker: A service that records work items and their state.
- Git host: A service that stores Git repositories and hosts their review objects, such as pull requests, checks and merge controls.
- Orchestrator: The service that receives trigger events, starts workflow runs, and records their lifecycle.
- Runner: The disposable machine or container that executes one run.
- Coding agent: A model harnessed with tools, a system prompt, and a context window, configured to carry one coding task through a run.
- Agent-ready codebase: The repository set up so an agent can find its way, make a change and prove the change works with no person watching.
- Task: A repeatable work definition that names its trigger, action, and next handoff.
- Verification: The evidence that a change does what its spec asked.
- Brakes: The gates that slow or stop a run before its change moves forward.
- Observability platform: The optional place where a factory records run status, logs, traces, token use and cost, and shows the factory's metrics.
- Factory design: The deliberate work of choosing a problem, adding triggers and services in small steps, and deciding where people stay in the loop.
Catalogue: Setup
- All on one git platform: The ticket board, pull requests, checks and workflow engine live in one hosted git platform. The shared platform joins the work item, the source change and its checks in one place.
- Dedicated tracker and own orchestrator: A separate tracker sends issue context to a team-owned service when an event fires. The tracker and dispatcher meet at an explicit event boundary.
- Own app for tickets and runs: A purpose-built application holds project context, work orders, agent connections, and feedback. The application is the durable interface for work context, work orders, and feedback.
- Vendor hosted agent platform: A vendor hosts the agent's ephemeral development environment while repository instructions shape its work. The platform supplies the run environment while repository instructions shape the task.
Pattern
Sources
- Simon Willison, How StrongDM’s AI team build serious software without even looking at the code
We built a Software Factory: non-interactive development where specs + scenarios drive agents that write code, run harnesses, and converge without human review.
- Factory, Software Factory documentation, Custom Automations
Each 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.
- Factory, Software Factory documentation, Events feed
Runs Each run's outcome and duration, with a link to its session.
- Factory, Software Factory documentation, Custom Automations
Automations turn Droid into a teammate for work that keeps coming back.
- Matt Pocock, Software Factories for Real Engineers, Classic Concepts + Coding Agents
Assign your coding agent to chew through tickets, and come back to clean code and informative PRs for your review
- Matt Pocock, software-factory skill (pull request #1316), Software factory
A software factory is a system of agents that turns tickets, PRs and schedules into merged code, deployed on remote infrastructure the user chooses.
- Matt Pocock, AI Coding Dictionary, Software factory
A factory takes the human out of starting sessions, and not necessarily out of anything else.
- Kent C. Dodds, kcd-skills, autopilot skill
Audit any repository and set it up so coding agents ship changes safely with little human review.
- Lauren Tan, pstack, pstack
throughput 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
- Software factory
- Accelerator with a brake
- Defense in depth
- Holdout set
- Kitchen brigade
- Ratchet
- Stateless worker with external memory
- Stop the line
- Two-way door
Flatpack
- Pick the problem and the level
- Fill the ticket tracker slot
- Fill the git host slot
- Draw the security boundary
- Set up a disposable runner inside the boundary
- Install the brakes
- Configure the coding agent
- Write the first task
- Wire the orchestrator
- Measure the factory
- Watch the runs
- Make the codebase agent-ready
- Build verification
- Merge by risk
- 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