SciML Factory: AI Merges Open Source Pull Requests

The SciML open source community has built an automated system that lets AI review, fix and merge pull requests, with humans stepping in only for the riskiest changes. Christopher Rackauckas, who maintains SciML’s Julia packages, calls it the SciML Factory. His reasoning is blunt: AI has multiplied the volume of contributions, and no maintainer can keep up by hand.

Rackauckas says he once hit inbox zero daily. Now he carries around 200 unread notifications, with the oldest dating to March 31, 2026. His pace has reached close to 10,000 GitHub interactions a year, up from 6,000 in 2025.

Four goals behind the factory

The project sets four goals. First, use AI’s progress rather than ban it, since a vibe-coded copy of any library will otherwise surpass it. Second, keep a shared community around common codebases instead of scattering throwaway AI repositories that nobody maintains. Third, keep code quality up: design decisions matter because even frontier models get stuck in the local minimum of a bad design. Fourth, keep the decision record in the repository, so a new maintainer can pick up where others stopped.

Security is part of the third goal. In the previous week, the team saw several attempts to alter tests so they would leak cloud login credentials, and to run crypto-mining on CI resources.

How the review cycle works

The core idea is simple: if AI writes the code, AI must also be allowed to merge it. The factory starts when a pull request opens. An AI first assesses risk, flagging hacking attempts and security problems and grading the change on several factors. The full rating definition is withheld on purpose, so adversarial AIs can’t be built to game it.

Risk decides how much automation a change gets:

  • Low: docs, strengthened tests, CI configuration, formatting, small internal refactors and bug fixes with a test that fails before and passes after. One rating from a fresh session at reviewer level 3 or above lets it merge without a human.
  • Medium-low: visible only as a fix or addition and fully verified, such as measured speedups or new public API that leaves existing calls alone. One rating from a level 4 reviewer is enough.
  • Medium: new API that changes what existing calls return, or behavior changes argued as bug fixes. It needs two ratings from different fresh sessions at level 4 or above.
  • Medium-high: changes to the main paths of a core package, such as solve(prob) or Tsit5 in OrdinaryDiffEq, or loosened numerical tests. A human always decides.
  • High: breaking changes, default numerics changes, GPL or unclear licenses, removed tests or disabled CI. A human always decides, and anything touching security controls, release machinery or secrets counts as high however small.

A reviewer is chosen according to how hard the change looks, and returns “changes,” “merge with issues” or “merge.” If changes are needed, a fixer AI makes them and the cycle repeats, up to five times. After that, a person must step in. A “merge with issues” verdict merges and opens follow-up issues for the remaining work.

How the team checks that it is safe

The risk assessment runs on a fine-tuned local model, and its extra details are kept private to limit what attackers can learn. It was tested against many attacks to make sure it judges the code itself and ignores claims in comments, such as a note saying a maintainer approved the change at a conference.

Reviewer levels come from an evaluation set built out of past SciML pull requests. The team picked changes that people and AIs once thought airtight but that were later altered or found to contain bugs. Models then reviewed them blind, without repository history, and were scored on whether they found the real problems.

Only OpenAI models reached the top score in the November 27, 2026 results. Fable and Carbon did not. Rackauckas says those models are so particular about detail that they make great reviewers and tiresome daily drivers, so they became the workhorses for high-risk review.

Reviewing and writing are separate skills, so pull requests with an agent attribution tag are also scored. Sol 6.1 and Opus 5.5 both scored higher than what the team can measure from human contributors, though some of those human pull requests may have had AI help.

Results and trade-offs

About 90% of pull requests now finish and merge with no human looking at them. Rackauckas’s account went from 6,000 commits a year to 30,000 after launching the factory in late summer, and he estimates the current pace at around 100,000 a year. He says he’s about 60% happy with the system and believes its trade-offs are fundamental.

Where people fit

Humans contribute mainly by opening issues. The factory needs ideas, and the exact mechanics matter less than the high-level goal. People also make the final call on the two highest risk levels and on any change that hits the cycle limit.

Why this matters for open source

Many maintainers face the same flood of AI-generated pull requests. Some respond by banning AI submissions. SciML’s approach goes the other way, using automated review, tiered risk and a hard human gate where mistakes would be costly. Whether it scales will show up in merge quality over the coming months, particularly on the medium-high and high tiers where people still decide.

Source: Stochastic Lifestyle

Written by

Saksham Bhargava

Saksham Bhargava runs Alteroid and has been writing about consumer technology for over five years, covering iPhone, Android, Windows, AI tools and gaming. With an MCA and six years of hands-on web development experience, he tests the features he writes about on his own devices and focuses on clear, practical guides that solve real problems. Away from the screen, he enjoys travelling to places most tourists skip.