How I Run an Agentic AI Fix Factory
Summary
I run a narrow software factory: agents find real bugs in open-source repos, reproduce them, fix them and draft the pull request, and I approve every step that leaves my machine. Since September 2026 it has landed 140 merged pull requests across 126 repos, at companies including Mozilla, Oracle, Docker, Workday, GoDaddy, eBay, IBM and Meta.
It is not a general idea-to-product factory. It does one job end to end, with gates that kill a run before it wastes a maintainer's time. It runs on a Claude subscription with no per-call API spend.
Results
Counts are merged pull requests by outside maintainers, as of December 3, 2026. My own repos aren't counted. See all of them on GitHub.
| Measure | Value |
|---|---|
| Merged pull requests | 140 |
| Distinct bug fixes | 139 |
| Distinct repos | 126 |
| First merge from the fix-upstream skill (intellikit #202), time to merge | 41 minutes |
| Per-call API spend | $0 (runs on a Claude subscription) |
Named companies with merged fixes include Mozilla (Rhino), Oracle, Docker, Workday, GoDaddy, eBay, IBM, Meta, OpenAI, Microsoft, AWS, NVIDIA, Intel, Cisco, Vercel, Temporal and Alibaba Cloud.
The pipeline
A run moves through eight stages, and most runs stop before a PR exists. Three checks end a run early, and maintainer review loops back to the patch step.
Human decisions sit at the start and at every step where something leaves my machine. Everything in between is agent work that a failing check can stop.
Human checkpoints
Agents do the reading, reproducing, patching and testing. I make the decisions that carry reputation or legal weight.
| Checkpoint | Who decides | Why |
|---|---|---|
| Which companies and repos to target | Me | Sets the strategy (top US tech companies first) |
| Whether a repo is open to outside PRs | Agent checks, I confirm borderline cases | Work on a closed repo earns nothing |
| Contributor license agreements | Me, always | A legal commitment; the agent never signs |
| Every PR, issue and reply before it posts | Me | The agent drafts; it never posts on its own |
| A second PR to the same maintainer | Waits for their reply to the first | Respect for maintainer time |
| How to answer maintainer review | Me, from the agent's draft | Reviews often change scope |
How the agent earned trust
The automated fix-upstream skill shipped only after it passed a gate with a kill rule I set beforehand. It had to match at least ~60% of fixes that maintainers had already merged, and produce zero false PRs. Otherwise I would publish an eval write-up instead of a product.
- Replay on merged fixes (October 14, 2026). I ran the agent on the code as it was before 15 merged null-default fixes. It edited the same parameters as the maintainers in all 15, with 14 identical parameter sets and 0 wrong edits.
- An honest caveat. My own tool had originally found those 15 bugs, so the replay proved the patches were right. It did not prove the agent could find new bugs.
- Forward test on unseen repos. Run raw on 19 unseen repos, the agent produced 1 false PR (benchmark fixture servers, not real code) and 1 PR that would have broken CI (a stale snapshot file). That failed the kill rule.
- Three rules, then a rerun. After adding rules to skip fixtures, regenerate snapshots and route oversized fixes to issues, the agent went 19 for 19.
- Release. The skill shipped in mcp-doctor v1.19.0. Its first real PRs went out on October 14, and intellikit #202 merged 41 minutes after it was opened (write-up).
Failure modes and the rules they produced
Each rule below came from a run that failed without it.
| What went wrong | Example | Rule it produced |
|---|---|---|
| Repo was closed to outsiders | On November 23, 3 of 7 picks died on access: stripe-cli was collaborator-only, airbyte-platform banned community PRs | 3-part openness check before any work: ≥3 distinct outside merges in 60 days, open outside PRs now, no ban |
| Staff looked like outsiders | stripe-cli's 67 "outside" merges were mostly employee logins | Drop company-named logins; count merged PRs from forks |
| Ban hidden outside CONTRIBUTING | snyk/cli README: "closed to contributions"; an Apache repo's AGENTS.md bans agent PRs | Also read README and AGENTS.md |
| Agent fixed test fixtures | 61 of 64 files in one repo were benchmark fixture servers | Skip fixture, benchmark and sample code |
| PR bundled unrelated changes | jadx replay added 57 TODO doc stubs the maintainers never wrote | One fix class per PR (--fix-only) |
| Fix caused a regression | Rhino #2607: maintainer review found typed-array enumeration broke | Fix with regression tests that fail first, then pass; rerun the full suite |
| Someone else fixed it first | workerd #8459 duplicated a fix merged upstream | Check for duplicates and open PRs before starting |
| Bug was behavioral, not static | dbhub batch-order bug was invisible to static checks | Name it out of scope; the static agent never guesses |
Lessons for AI PMs building software factories
- Pick one job and finish it end to end. A narrow factory that merges code beats a broad one that drafts it. The real measure here is merged by a stranger, not generated.
- Most of the effort goes into filtering, not generating. Picking the repo, proving the bug and checking for duplicates decide success more than the patch does.
- Set the kill rule before the eval. Writing the 60% and zero-false-PR bar in advance kept me from talking myself into a pass.
- Admit when an eval is circular. The replay looked perfect because my tool had found those bugs. Only the forward test on unseen repos counted.
- Keep a human on anything that leaves the building. Posting, signing and replying stay with a person. The agent's speed comes from everything before that.
- Turn every failure into a written rule. The table above is the factory's real moat: the agent gets better because its rules do.