How I Run an Agentic AI Fix Factory

Vishal Habib · as of December 6, 2026 · GitHub

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.

MeasureValue
Merged pull requests140
Distinct bug fixes139
Distinct repos126
First merge from the fix-upstream skill (intellikit #202), time to merge41 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.

Agents do the work; a human approves everything that leaves the machine Human decides Agent does the work Run stops, no PR closed duplicate no repro changesrequested 1. Pick a company and repo Human · top US tech, no merged fix yet 2. Check the repo is open Agent · outside merges, open PRs, no ban 3. Find a bug Agent · mcp-doctor scan or reading the code 4. Check it isn’t already fixed Agent · duplicates and open PRs 5. Reproduce with a failing test Agent · the test fails before the fix 6. Patch one fix class Agent · test passes, full suite stays green 7. Approve the PR draft Human · signs any CLA, then posts the PR 8. Answer maintainer review Agent drafts each reply, human approves Merged upstream 140 PRs across 126 repos Skip the repo Stop, already fixed Drop the finding
Fix pipeline · 8 stages, 3 drop-outs, 1 review loop

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.

CheckpointWho decidesWhy
Which companies and repos to targetMeSets the strategy (top US tech companies first)
Whether a repo is open to outside PRsAgent checks, I confirm borderline casesWork on a closed repo earns nothing
Contributor license agreementsMe, alwaysA legal commitment; the agent never signs
Every PR, issue and reply before it postsMeThe agent drafts; it never posts on its own
A second PR to the same maintainerWaits for their reply to the firstRespect for maintainer time
How to answer maintainer reviewMe, from the agent's draftReviews 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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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 wrongExampleRule it produced
Repo was closed to outsidersOn November 23, 3 of 7 picks died on access: stripe-cli was collaborator-only, airbyte-platform banned community PRs3-part openness check before any work: ≥3 distinct outside merges in 60 days, open outside PRs now, no ban
Staff looked like outsidersstripe-cli's 67 "outside" merges were mostly employee loginsDrop company-named logins; count merged PRs from forks
Ban hidden outside CONTRIBUTINGsnyk/cli README: "closed to contributions"; an Apache repo's AGENTS.md bans agent PRsAlso read README and AGENTS.md
Agent fixed test fixtures61 of 64 files in one repo were benchmark fixture serversSkip fixture, benchmark and sample code
PR bundled unrelated changesjadx replay added 57 TODO doc stubs the maintainers never wroteOne fix class per PR (--fix-only)
Fix caused a regressionRhino #2607: maintainer review found typed-array enumeration brokeFix with regression tests that fail first, then pass; rerun the full suite
Someone else fixed it firstworkerd #8459 duplicated a fix merged upstreamCheck for duplicates and open PRs before starting
Bug was behavioral, not staticdbhub batch-order bug was invisible to static checksName it out of scope; the static agent never guesses

Lessons for AI PMs building software factories