
A common way to use AI coding tools looks like this: a developer opens a chat, describes a change, reviews the output and commits. A software factory changes who starts the work. Instead of a person prompting an assistant, a ticket, a pull request or a schedule triggers agents that run without waiting for anyone.
This guide explains the idea, the vocabulary and the safety model behind it. It is written for engineering leads, CTOs and Drupal and PHP developers who already use AI coding agents and want to know what a "factory" adds. Our focus is the design problem: which parts you buy, which parts you build and where humans stay in the loop.
One honest note up front. We did not test any of the tools or models mentioned here hands-on. Everything below comes from public documentation and articles we read on 2 December 2026, and the sources are listed at the end. Where we offer an opinion or a recommendation, we label it.
A second note on attribution. The clearest written definition we found is in a skill by Matt Pocock called software-factory. We found no article by him on the topic, so we refer to it as Pocock's skill throughout.
Key Takeaways
A software factory is a system of agents that turns tickets, pull requests and schedules into merged code, running on remote infrastructure you choose.
Pocock's skill is a shared vocabulary for designing one, not a runnable pipeline. Its rule is to buy the services and build the tasks.
Three brakes reduce the risk: automated checks, automated review and human review. Add one trigger at a time and cap every retry loop.
One lab reports that early checkpoints of its model fabricated results in some cases, so verify with deterministic gates rather than an agent's own report.
On a Drupal project, the gates are coding standards, static analysis, tests and a config check. We recommend humans keep config, permissions and security-sensitive code.
What Is a Software Factory?
A software factory is a system of agents that starts work from events, not from a person typing a prompt. Pocock's skill defines it this way: "A software factory is a system of agents that turns tickets, PRs and schedules into merged code, deployed on remote infrastructure the user chooses." The next line adds that "This skill is the language for designing one." (per Pocock's SKILL.md).
Two details in that definition matter. The triggers are tickets, PRs and schedules, so work begins without a human opening a session. The output is merged code, so the system is judged by what lands in the repository, not by how good a single answer looks.
How a factory differs from a coding assistant
A coding assistant waits for you. You prompt it, watch it work, correct it and decide when it is done. A factory runs unattended on a trigger, on infrastructure that is not your laptop, and hands you a pull request to review.
The table below sums up the practical differences.
Aspect | Coding assistant | Software factory |
|---|---|---|
Who starts the work | A developer, in a session | A ticket, PR or schedule |
Where it runs | Often the developer's machine | Remote infrastructure you choose |
Who watches | The developer, live | No one needs to wait for the run |
What you get back | A working tree to review | A pull request that has passed checks |
Main risk (our view) | Wasted time on a poor answer | Many poor pull requests, fast |
This is not a replacement for assistants. Developers still use them to explore, design and debug. A factory covers the repeatable part of the work, where the task is well described and the checks are strong.
Where the idea comes from
The skill lives in the skills/in-progress/software-factory/ folder of Pocock's skills repository, which is MIT licensed. The folder name suggests it is still evolving, and a HackerNoon piece dated 13 November 2026 notes that some of his skills sit there, so "expect them to change". The "in progress" label is our inference from the folder name, not a statement by Pocock.
The skill is a vocabulary skill. It gives agents and humans shared terms for designing a factory, and its description reads "Shared language for designing a software factory: the tasks it runs and the services it plugs into." It does not install a pipeline for you.
The Vocabulary of a Software Factory
The skill names a small set of terms and tells agents to use these terms, and only these. Shared words help because a design discussion about "jobs", "workflows" and "actions" quickly turns into three people meaning three things. Its "Avoid" list tells agents not to call a task a "job, workflow, action". Only the quoted wording in the table below comes from the skill. The rest is our plain-English reading.
Term | Plain-English reading (ours) |
|---|---|
Task | A unit of work the factory runs. Examples: review, explore, implement, ratchet |
Trigger | The event that starts a task |
Run | One execution of a task. "A run never waits for a human" |
Runner | The machine a run executes on. "Nothing on it survives the run" |
Ticket tracker | Where tickets live |
Ticket source | Where tickets come from |
Git host | Where the code and pull requests live |
Orchestrator | The component that connects triggers to runs |
Observability platform | Optional. For watching what the factory does |
Here is our reading of two of the quoted phrases. First, "a run never waits for a human" means a task must be designed to finish or fail on its own, so any human decision happens between runs. Second, "nothing on it survives the run" means the runner is disposable, so anything worth keeping must be pushed to the git host or the tracker.
How a Ticket Becomes Merged Code
The skill's companion file, EXAMPLE-TASKS.md, shows how tasks chain together. These are examples, not a required design. Here is how a single ticket moves through the chain, in order:
- Explore. Runs when a ticket is created or labelled. It checks the claims in the ticket. "It never pushes."
- Implement. Runs when the ticket gets a "ready" label. It builds until the checks pass, then opens a draft PR.
- Automated review. Runs when the PR opens. A pass means "the PR waits for human review before a human merges it."
- Rework. Runs when the review fails. It is capped: "After a set number of fails" the ticket is labelled for a human.
The chain ends with a person: after a pass, the PR waits for human review before a human merges it.
Three more tasks sit around that main line. Decompose takes a spec ticket that has been labelled and splits it into dependent tickets. Ratchet runs on a daily clock and removes one file from an exception list per PR, so quality improves in small, reviewable steps. Retro is throttled to one merged PR in ten and proposes changes to the factory's own instructions.
Where the human gate sits
The human gate comes after automated review and before merge. Even a passing automated review does not merge anything, and the explore task never pushes at all. In our view, that placement is the core safety decision in the example chain.
A second design choice is the cap. Rework does not loop forever: after a set number of failures the ticket goes to a person. Without a cap, a stuck task burns compute and produces noise.
The Three Brakes
The skill is blunt about the risk. In its "Start slow" section it says: "Every trigger is an accelerator. Accelerators without brakes make a slop cannon. There are three brakes:"
Brake | What the skill says |
|---|---|
Automated checks | "deterministic gates (types, lint, tests) that every run must pass." |
Automated review | "a separate run that reads the diff cold against the codebase's standards and the ticket, when there is one." |
Human review | "a human reads the PR before it merges; what it catches becomes new automated checks and sharper automated review." |
Each brake catches a different kind of failure. Checks are cheap and exact, so they catch what a machine can state as a rule. Automated review catches problems a rule cannot express, and it works better as a separate run that reads the diff "cold", without the implementer's assumptions.
Human review is the brake with a feedback loop. Whatever a person catches should become a new check or a sharper review instruction, so the same mistake is caught earlier next time. A factory whose human reviewers only approve and never feed back is not improving.
Why checks must be deterministic
Some agents may fabricate results. Thinking Machines Lab, which published the open-weights model Inkling 2, describes this in its own post about Inkling 2 Small (company post). It says early checkpoints, when tasks were hard, were in some cases "fabricating results, ignoring instructions, and concealing what they had done." That is one lab describing early versions of one model, not a claim about every agent. Applying it to test results is our reading: a gate you run yourself removes the need to believe a summary.
The practical lesson is ours: verify, do not trust. A gate should be a command that exits with a pass or a fail, run by the factory and not reported by the agent. The addyosmani/factory repository takes a similar line. It uses a gates.sh script with a verdict line, plus an independent verifier that reverts the fix to confirm the test fails (per the repository README).
Start Slow: One Trigger at a Time
The skill's advice on rollout is specific. It says to "Add one automated trigger at a time, throttled at first... with human review on every PR." It adds: "cap every loop of runs at a few tries before a human."
That gives you a simple adoption path. Steps 1 to 4 follow the skill's advice, and steps 5 and 6 are our reading of how to extend it. Each step should be stable before you start the next.
- Begin with one trigger, for example a "ready" label that starts the implement task.
- Throttle it, so only a small number of runs can start in a given period.
- Keep human review on every PR.
- Cap every retry loop at a few attempts, then hand the ticket to a person.
- Turn what reviewers catch into new checks.
- Only then add a second trigger.
Why throttling matters
A throttle limits the damage of a bad configuration. As an illustration, if your instructions produce poor changes, you want ten poor pull requests waiting for review, not two hundred. The retro task in the example chain applies the same idea to the factory itself: it runs once per ten merged PRs, so the instructions change slowly.
Buy the Services, Build the Tasks
Two design rules in the skill shape the whole architecture. The first: "Buy the services and build the tasks." The second: "Favour an off-the-shelf ticket tracker." The idea is that your differentiation lies in the tasks and their instructions, not in a home-grown queue or tracker.
The skill names three service slots: ticket tracker, orchestrator and runner. It does not require one stack. Its design table gives three example setups.
Setup | Ticket tracker | Orchestrator | Runner |
|---|---|---|---|
All on GitHub (GitHub is also the git host) | GitHub Issues | GitHub Actions | Actions runner |
Linear tickets | Linear | Own server and database | Actions, E2B, Daytona or a VPS |
Own tracker | Own app | Not stated in the skill's table | Own app, or sandboxes |
We would expect the all-GitHub setup to have the fewest moving parts for most teams, because nothing new needs hosting. The Linear setup suits teams that already live in Linear, at the price of running an orchestrator. The own-tracker setup is likely the heaviest, and the skill's own advice to favour an off-the-shelf tracker points away from it.
We did not read the skill's supporting files on ticket trackers, git hosts, runners and observability platforms, so we cannot describe their guidance.
Open-source tools that cover parts of the pipeline
We also read the pages of several open-source projects that cover parts of this ground. These are descriptions from their own repositories, not test results. Star and commit counts are snapshots from 2 December 2026.
Tool | What its page says | Caveat from the page |
|---|---|---|
Installs a factory operating model into an existing GitHub repo. "GitHub Issues become a work queue." "Merge is never automated, on any tier." | Claude-first. Routines have no native new-issue trigger, so it polls hourly by default. Only 17 commits | |
Multi-agent orchestration with a merge queue: "polecats never push directly to main." | Heavy prerequisites, including tmux, Dolt, Beads and Go | |
A self-hosted control center for coding agents, with Docker isolation per conversation | The default local install has no sandbox, and no merge queue is documented | |
Manages multiple terminal agents with tmux and git worktrees | Session manager only, with no planner, queue or automated review. AGPL-3.0 license |
In our view, addyosmani/factory and Gas Town document the most complete ticket-to-merge flows of the tools we read. They make different trade-offs: the first is GitHub-native with nothing to host, while the second is a full runtime that is heavier to operate. One more point from the pages: git worktrees isolate files, not processes or networks, so none of the worktree-based tools is an OS sandbox. The agentic-software-factory repository says so itself: "Task worktrees are Git isolation, not OS sandboxing."
Pocock's Workflow Skills and Where They Fit
In our view, a factory is only as good as the tickets it receives. Pocock's README lists workflow skills for planning and implementing changes. The README does not mention software factories, so the idea that these skills prepare work for a factory is our synthesis. The README pipeline order is grill, spec, tickets, implement, review (per the README).
Step | Skill | What the README says |
|---|---|---|
Grill |
| "Get relentlessly interviewed about a plan or design until every branch of the design tree is resolved." |
Grill |
| Grilling plus updating GLOSSARY.md and ADRs inline |
Spec |
| "Turn the current conversation into a spec and publish it to the issue tracker. No interview, just synthesizes what you've already discussed." |
Tickets |
| "Break any plan, spec, or conversation into a set of tracer-bullet tickets, each declaring its blocking edges..." |
Implement |
| "Build the work described by a spec or set of tickets, driving /tdd at pre-agreed seams and closing out with /code-review before committing." |
Review |
| "Two-axis review... Standards... and Spec..., run as parallel sub-agents." |
The README also lists /tdd, /implement-spec, /pr, /wayfinder and /triage. The /pr skill produces a PR body that includes "a merge-danger call (one-way or two-way door, plus blast radius)", which is a useful input for a human reviewer deciding how closely to read.
His rule for the grill skills is direct: "Use them every time you want to make a change." Our reasoning: a vague ticket produces a vague pull request, so the interview step moves ambiguity out of the factory and into a conversation.
Installing the skills
The README gives one install route for Claude Code and one for other agents, then asks you to run /setup-matt-pocock-skills once per repository to choose your issue tracker. It warns: "Pick one per agent, because installing both gives you every skill twice." Check the README for the current commands, and read the skills before you install them. We cover the reason in the risks section below.
Our reading: something must prove the change works
The Pragmatic Engineer episode dated 17 September 2026 reports that Pocock "has mixed feelings on Test-Driven Development (TDD) with agents". It adds that agents "have longer context windows, so Matt has started to ask agents to produce proof that their code works" with or without TDD. That episode does not discuss the term "software factory", so we cite it only for his view on proof of working code. Our reading for factory design is that something must demonstrate the change works, and that something should be a gate you control.
What This Looks Like on a Drupal Project
This section is our recommendation. It is not a claim about built-in Drupal support in Pocock's skill or in any tool above. We simply map the three brakes onto tooling that Drupal teams already use.
Gates a run should pass
A factory run on a Drupal project can be required to pass the following before it opens a PR:
- PHP_CodeSniffer with the Drupal and DrupalPractice coding standards.
- PHPStan, with phpstan-drupal.
- PHPUnit and Drupal's test types.
drush config:statusor a config export diff, to catch configuration that was changed but not exported.- Composer validation.
- Twig and JavaScript linting, where the project uses them.
The config check deserves special mention. In Drupal, an agent can change behaviour through configuration as easily as through code. A gate that fails when exported config does not match the active config catches a class of mistakes that a PHP linter never sees.
Policy to encode in agent instructions
Instructions are the place to write down your engineering preferences. We would encode these four:
- Follow Drupal coding standards.
- Prefer core and well-maintained contrib over custom code.
- Never hardcode secrets.
- Never disable security controls.
An illustrative example: one Drupal ticket
The walk-through below is a hypothetical, not a run we performed. It shows how the pieces connect on a small, bounded ticket.
- Trigger. A ticket labelled "ready for agent" asks for the replacement of one deprecated API call in a custom module.
- Implement. The worker agent opens a branch, makes the change and writes or updates a test.
- Automated checks. The runner executes PHP_CodeSniffer, PHPStan and PHPUnit, then
drush config:status. If any gate fails, the agent gets a capped number of retries, and then the ticket is handed back to a person. - Cold review. A second agent reads the diff, the project standards and the ticket, without the worker's reasoning, and comments on anything it cannot justify from the code.
- Human merge. A developer reviews the pull request, checks that the gate results are real, and merges or rejects it.
Even in this small case, the person decides whether the change ships. In our view, that is the point of the design: the agents handle the repeatable steps, and the human keeps the decision.
Where humans stay in the loop
Keep human review on every PR at first, as the skill advises. In our view, three areas should stay under human review even after the factory matures: configuration changes, permissions and security-sensitive code. These are the places where a small diff can have a large blast radius.
Starting points matter too. Well-described, bounded work suits a factory best. Routine maintenance in a Drupal 10 to 11 upgrade is a plausible candidate, because the checklist is known and the gates are clear. A decision such as migrating or rebuilding a Drupal 7 site is not, because it is an architectural judgment that needs people. The same goes for architecture questions like when a headless CMS makes sense.
Choosing a model for the worker and the reviewer
If you plan to use an open-weights model for the worker or the cold reviewer, treat that as a hypothesis to test. We have not run Inkling 2 Small from Thinking Machines Lab, and its benchmark results are mostly company-reported, run on public harnesses. The company's model card is the place to check its stated limitations, which include "hallucination" and "occasional failures to follow instructions precisely".
Public benchmark results do not predict performance on your codebase. The way to find out is to run candidate models against a sample of your own tickets and repository, with your gates in place, and compare the pull requests.
Risks and Limits
In our view, a software factory moves the bottleneck. Writing code gets cheaper, so reading and trusting code becomes the expensive part. These are the risks we would plan for.
The slop cannon
The skill's own phrase for the first risk is a "slop cannon": triggers without brakes produce a stream of low-quality pull requests. The remedies are the ones in the skill: deterministic gates, a separate cold review, human review on every PR, throttles and capped loops.
False claims of success
As covered earlier, an agent may fabricate results, and in our reading that includes reporting that checks passed. Run the gates in the factory, not in the agent's own summary, and make the gate's exit code the source of truth. A written claim in a PR description is not evidence.
Isolation is not the same as sandboxing
Several tools we read use git worktrees to separate parallel work. The agentic-software-factory page says plainly that worktrees are "Git isolation, not OS sandboxing" and that its network policy is advisory. OpenHands warns that its default local install gives the agent "full access to your filesystem!" Choose a runner that fits the trust level of the code and the agent. The skill's own runner note says nothing on it survives the run, which suggests disposable machines.
Skill supply chain
A skill is text that tells an agent what to do, and an agent may have access to your repository and shell. Review any skill before you install it. The listing for the software-factory skill on skills.sh shows a Snyk "Warn", while skills.pub says "No known risk patterns found" but only reads SKILL.md. We did not investigate what triggered the warning, so we cannot say whether it is serious. The sensible response is to read the skill yourself and pin what you install.
Fast-moving projects
Several sources here are young or changing. The software-factory skill sits in an in-progress folder, and addyosmani/factory had 17 commits when we read it. Vibe Kanban's README banner says "Vibe Kanban is sunsetting." Treat any tool as something you may need to replace, and keep your tasks, gates and instructions in your own repository so they travel with you.
FAQ
Is a software factory the same as CI/CD?
No, though they connect. CI runs checks on code that a person or an agent has already written. A factory decides that work should start, runs agents to produce the change and uses CI-style gates to verify it. In the all-GitHub example from the skill, GitHub Actions plays the orchestrator role, so the tools overlap even though the concepts differ.
Do we need to build a custom platform?
Probably not. The skill's rule is "Buy the services and build the tasks", and it favours an off-the-shelf ticket tracker. We expect the lightest setup to run on GitHub Issues and GitHub Actions. Our recommendation is to start there and add infrastructure only when a real constraint forces it.
Can a factory merge code without a human?
The skill's guidance is to keep human review on every PR when you start. The example chain ends with a human merge, and addyosmani/factory says "Merge is never automated, on any tier." Beyond that starting point, how long to keep the human gate is a policy choice for your team. Our recommendation is to keep the human gate until your checks have a long record of catching what reviewers catch.
Which AI coding agents work in a factory?
The README says Pocock's skills "work with any model". Among the tools we read, OpenHands lists support for Claude Code, Codex, Gemini, Pi, OpenCode and any ACP agent, and Cline documents a headless mode for scripting and automation. We did not test any of them. Pick an agent that can run without interaction on your runner and be judged by your gates.
Conclusion
A software factory is a way of organising AI coding-agent workflows around tickets, checks and review, so that merged code becomes the unit of output. Pocock's skill gives it a clear vocabulary, and its safety model comes down to three brakes, one trigger at a time and capped loops. Whatever stack you choose, the parts that decide quality are yours: the tickets, the gates and the instructions.
Your next step is small. Pick one repeatable kind of ticket, write down the gates a pull request must pass, and run a single throttled trigger with human review on every PR. If you would like help designing that for a Drupal or PHP codebase, you can talk to us.
Sources
All sources were retrieved 2 December 2026. Star, commit and fork counts are snapshots from that date. We did not test any tool or model.
- Matt Pocock,
software-factorySKILL.md: https://raw.githubusercontent.com/mattpocock/skills/main/skills/in-progress/software-factory/SKILL.md (retrieved 2 December 2026) - Matt Pocock,
software-factoryEXAMPLE-TASKS.md: https://raw.githubusercontent.com/mattpocock/skills/main/skills/in-progress/software-factory/EXAMPLE-TASKS.md (retrieved 2 December 2026) - Matt Pocock, skills repository: https://github.com/mattpocock/skills (retrieved 2 December 2026)
- Matt Pocock, skills README: https://raw.githubusercontent.com/mattpocock/skills/main/README.md (retrieved 2 December 2026)
- Gergely Orosz, "AI Skills with Matt Pocock", The Pragmatic Engineer, 17 September 2026: https://newsletter.pragmaticengineer.com/p/ai-skills-with-matt-pocock (retrieved 2 December 2026)
- HackerNoon (secondary), Matt Pocock's 39 Agent Skills Make Your AI Grill You Before It Writes Code, 13 November 2026 (retrieved 2 December 2026)
- skills.sh and skills.pub listings for the software-factory skill (secondary, third-party audits): skills.sh, skills.pub (retrieved 2 December 2026)
- addyosmani/factory: https://github.com/addyosmani/factory (retrieved 2 December 2026)
- Gas Town: https://github.com/gastownhall/gastown (retrieved 2 December 2026)
- OpenHands: https://github.com/OpenHands/OpenHands (retrieved 2 December 2026)
- agentic-software-factory: https://github.com/OmegaMc1331/agentic-software-factory (retrieved 2 December 2026)
- Claude Squad: https://github.com/smtg-ai/claude-squad (retrieved 2 December 2026)
- Vibe Kanban: https://github.com/BloopAI/vibe-kanban (retrieved 2 December 2026)
- Cline: https://github.com/cline/cline (retrieved 2 December 2026)
- Thinking Machines Lab, Inkling 2 Small announcement: https://thinkingmachines.ai/news/inkling-2-small/ (retrieved 2 December 2026)
- Thinking Machines Lab, Inkling 2 Small model card: https://thinkingmachines.ai/model-card/inkling-2-small/ (retrieved 2 December 2026)




