Stripe's unattended AI coding agents write 1,300 PRs a week
Stripe built minions, unattended AI coding agents that take a task from a Slack thread to a tested pull request inside its large Ruby codebase, then hand it to an engineer for review.
StripeUnited StatesPaymentsIn productionWho built it Built in-houseWhere it runs Public cloudHuman oversight People approve each outputKind of solution Software engineering assistantScale Over 1,300 minion-produced pull requests merged each weekScenario AI code review and coding agentsBusiness function Software engineeringOrganization EnterpriseAI types Generative AI, Agentic AI
- Who built it
- Built in-house
- Where it runs
- Public cloud
- Human oversight
- People approve each output
- Kind of solution
- Software engineering assistant
- Scale
- Over 1,300 minion-produced pull requests merged each week
- Scenario
- AI code review and coding agents
- Business function
- Software engineering
- Organization
- Enterprise
- AI types
- Generative AI, Agentic AI
tl;drOver 1,300 merged pull requests a week at Stripe are written entirely by minions.See the results
Stripe runs minions, its homegrown AI coding agents, which take a task from a Slack thread to a pull request with no engineer in the loop until review1.
Each minion works alone on an isolated cloud developer machine, on a fork of Block’s goose agent, with access to Stripe’s internal tools through one MCP server2. Engineers start them in parallel and review what comes back1.
In February 2026, over 1,300 pull requests merged each week at Stripe were produced entirely by minions and reviewed by engineers, up from over a thousand earlier that month2. In April 2026, Stripe said minions ship over 1,000 pull requests to production every week4.
Before the deployment
Stripe engineers wrote code themselves or with human-supervised coding agents such as Cursor and Claude Code, which stay available to them2. The codebase made unsupervised work hard for an agent:
- Size: Hundreds of millions of lines of code sit across a few large repositories1.
- Stack: Most of the backend is Ruby with Sorbet typing, and it uses many homegrown libraries that LLMs haven’t seen1.
- Stakes: The code moves well over $1 trillion a year in payment volume and must honor obligations to financial institutions and regulators1.
- Attention: Developer attention is one of Stripe’s most constrained resources1.
Stripe had built devboxes, standard cloud developer machines, for its human engineers long before LLM coding agents existed2.
What was built
A minion takes one task in plain language and works on it unattended until it has a pull request that passes CI1. Engineers start one by tagging the Slack app in a thread, or from a CLI, a web interface, the internal docs platform, the feature flag platform or the ticketing UI1. The work divides between the agent, fixed code and people:
- Agent: Reads the task, searches the code, edits files and fixes failing tests in an agent loop1, 2.
- Deterministic code: Runs the git operations, linters and pushes that every run must complete1, 2.
- CI: Runs selected tests, applies autofixes, and returns the remaining failures to the agent1.
- Engineers: Follow the run in a web UI, then open the pull request for review by another Stripe engineer, or give the minion further instructions1.
The agent doesn’t merge code, and human review is the gate before code reaches production6. Engineers often run several minions in parallel, for example to clear small issues during an on-call rotation1. Product managers and designers also trigger minions to build prototypes, update documentation or make simple changes6, 5.
“All code is human-reviewed, but the agents are increasingly producing changes end-to-end.”
Alternatives considered
- Off-the-shelf agents only: Stripe built its own harness because its stack and libraries are unfamiliar to LLMs, and the harness had to tie into Stripe’s tooling1. Third-party tools already serve human-supervised work2.
- Agents on laptops: Containers and git worktrees are hard to combine, and worktrees wouldn’t scale at Stripe1, 2.
- Global agent rules: Unconditional rules would fill the agent’s context window before it starts, so rules are scoped to subdirectories2.
- Unlimited CI rounds: CI runs cost tokens, compute and time, with diminishing returns, so a minion gets at most two rounds1, 2.
Technology and architecture
A devbox is an AWS EC2 instance that holds Stripe’s source code and runs services under development2. Stripe keeps a pool of pre-warmed devboxes, so one starts in 10 seconds, and each is isolated from production and the internet1, 2. Because a mistake stays within one devbox, the agent runs with full permissions and no confirmation prompts2.
In late 2024, Stripe forked Block’s goose and later developed it for unattended runs, without the interruptions and steering that human-supervised tools need2. Blueprints, workflows written in code, decide which steps run as agent loops and which run as fixed code2.
| Layer | What they used | Role | Source |
|---|---|---|---|
| Solution platform | Minions | Stripe’s unattended coding agents, from task to pull request | 1, 2 |
| Task agent | Fork of Block’s goose | Runs the agent loop that edits code and fixes failing tests | 1, 2 |
| Agent orchestration | Blueprints | Workflows in code that mix agent nodes with deterministic nodes | 2 |
| Tools and actions | Toolshed | Central MCP server that gives each minion a curated subset of tools | 1, 2 |
| Search and vector index | Sourcegraph | Code intelligence search, reached through MCP | 1 |
| Prompt and context management | Cursor rule files | Rules scoped to directories, attached as the agent moves through the code | 2 |
| Compute and servers | Devboxes | Isolated, pre-warmed developer machines where each minion runs | 1, 2 |
| Messaging and notifications | Slack app | Starts a minion from a thread and passes the thread as context | 1 |
| Business or operational system | CI test suite | Runs selected tests on each push and applies autofixes | 1, 2 |
| Operations console | Minion web UI | Shows the decisions and actions each minion took | 1 |
Context and tools
- Task thread: The minion reads the whole Slack thread and any links in it1.
- Rule files: Cursor rule files scoped to subdirectories or file patterns attach as the agent moves through the code, and Stripe syncs them into a format Claude Code reads2.
- Tool results: MCP tools return internal documentation, ticket details, build statuses and Sourcegraph code search, and relevant tools run over likely links before the run starts1.
- Tool set: Toolshed holds nearly 500 tools, and each minion gets a small curated subset that engineers can extend2.
- Test feedback: Lint results and CI failures without an autofix go back to the agent1.
Toolshed serves hundreds of agents at Stripe, so a tool added there reaches all of them at once2. An internal security control framework stops minions from using their tools for destructive actions2.
How a blueprint runs a minion
Fixed steps save tokens and CI costs and give the agent less opportunity to go wrong2. Teams also write their own blueprints, for example for migrations that a fully deterministic codemod couldn’t do2.
How one docs fix flows through a minion
At Stripe Sessions on April 29, 2026, Michelle Bu ran a minion during the developer keynote4:
- A product manager posts in Slack that the workflows docs still show a public preview badge on the day workflows are presented on stage4.
- Bu asks the agent in the Slack thread to remove the badge from the workflows overview because the feature is now GA, and pastes the link4.
- The minion reads the Slack conversation and determines the repository and workspace4.
- The minion searches the codebase and finds the code to change from the context4.
- The run completes with a proposed change that removes the public preview availability field from the workflow overview doc, ready to deploy4.
Results
| Metric | Before | After | Scope and timeframe | Reported by |
|---|---|---|---|---|
| Minion-produced pull requests merged each week | Over a thousand, early February 2026 | over 1,300 | Merged PRs with no human-written code, February 2026 | Stripe, measured2 |
| Minion pull requests shipped to production each week | Not disclosed | over 1,000 | Human-approved minion PRs, April 2026 | Stripe, measured4 |
- Merged minion pull requests: The count covers pull requests merged each week with no human-written code, all reviewed by engineers. It rose from over a thousand in the February 9 post to over 1,300 in the February 19 post1, 2.
- Production pull requests: At Stripe Sessions in April 2026, Michelle Bu said minions ship over 1,000 pull requests to production every week, each reviewed and approved by people4.
- AI-assisted work beyond minions: In March 2026, over 57,000 pull requests at Stripe were created with the help of AI coding assistance, a 140% increase in three months, and 91% of engineers use AI tools every day4.
Lessons learned
Minions build on infrastructure that Stripe made for people: devboxes, fast local lints and CI with over three million tests1, 2. Stripe’s own conclusion is that what’s good for humans is good for agents2.
Mixing fixed code into the agent run paid off. Stripe found that putting LLMs into contained boxes compounds into system-wide reliability, and that fixed steps cut token and CI costs2.
Minions don’t always finish a task in one shot. After two CI rounds the branch goes back to its engineer, and a run that isn’t entirely correct becomes the starting point for the engineer’s own work1, 2.
Stripe engineers told InfoQ that minions perform best on well-defined tasks, such as configuration adjustments, dependency upgrades and minor refactoring3.
Code review might become the next bottleneck. ZenML’s write-up of Steve Kaliski’s How I AI episode says so, and notes that Stripe relies on CI and blue-green deployments for much of its confidence in each change6, 5.
The pull request counts are Stripe’s own, from its engineering blog and its keynote, and InfoQ and the How I AI podcast repeat them2, 4, 3, 5. The two headline figures count different things: pull requests merged in February and pull requests shipped to production in April2, 4.
Case study scorecard
- over 1,300 Minion-produced pull requests merged each week2
- over 1,000 Minion pull requests shipped to production each week4
Sources by publication date
- Organization 3
- Press, academic, and regulators 3
Build this solution yourself
Analysis
What you need
- Isolated, fast developer machines: Minions run with full permissions only because each devbox is cut off from production, user data and the internet, and starts in 10 seconds1, 2. Check that your environments are isolated before you drop confirmation prompts.
- A large, fast test suite: The agent checks its work against lints that run in seconds and selected CI tests with autofixes1.
- Internal tools behind one MCP server: Toolshed gives minions docs, tickets, build status and code search as one curated tool set1, 2.
Reference architecture
Software engineering assistant
A software engineering assistant writes, reviews, tests, or migrates code in the tools that developers already use, and a developer approves its output. A language model writes a change, a test, or a review comment from the code for a task, and automated checks and a checker model build, test, and filter it. A reviewer approves each checked proposal in code review before it merges, and developers do the work that fails the checks by hand.
- Developer tools
- Assistant platform (documented in this case study)
- Code repository (documented in this case study)
- Code index (documented in this case study)
- Deterministic code analysis
- Standards and guidelines
- Code and platform map
- Prompts and context (documented in this case study)
- Language model
- Automated checks
- Checker model
A check mark shows a building block that this case study's sources document.
Open the reference architectureOthers who built it
- CGI: How CGI uses Codex and AI coding tools to build its own IP. AI tools lift coding productivity by up to 40% to 50% on new releases of CGI's own software.
- Mozilla: Mozilla's AI agents find 271 Firefox security bugs. Firefox 150 shipped fixes for 271 vulnerabilities that AI agents found with Claude Mythos Preview.
- LinkedIn: LinkedIn's AI coding agents migrate ML models to PyTorch. Teams estimate a model migration now takes about 2 weeks instead of about 8 weeks.
- OpenAI: How OpenAI researchers hand AI research work to Codex agents. Agents now complete an estimated 46% of two-to-four-hour research tasks without human help.
- Meta: LLM-generated unit tests land in production at Meta. Meta engineers accepted 73% of the test improvements TestGen-LLM offered at three test-a-thons.
- Airbnb: How Airbnb used LLMs to migrate its React tests in six weeks. Airbnb migrated nearly 3,500 React test files in 6 weeks instead of an estimated 1.5 years.
Cite this case study
Enterprise AI Case Studies. "Stripe's unattended AI coding agents write 1,300 PRs a week." Updated Nov 29, 2026. https://case-studies.ai/case-studies/engineering-and-research/ER-076-unattended-coding-agents-stripe/
@misc{csai-er-076,
author = {{Enterprise AI Case Studies}},
title = {{Stripe's unattended AI coding agents write 1,300 PRs a week}},
year = {2026},
note = {Updated 2026-11-29},
url = {https://case-studies.ai/case-studies/engineering-and-research/ER-076-unattended-coding-agents-stripe/}
}Sources
The following reporting, and every passage quoted from it, belongs to its publisher, not to this site. Sources and ownership
- Source 1:
Minions: Stripe's one-shot, end-to-end coding agents
Supporting excerpts (25)
Minions are Stripe's homegrown coding agents. They're fully unattended and built to one-shot tasks.
Over a thousand pull requests merged each week at Stripe are completely minion-produced, and while they're human-reviewed, they contain no human-written code.
in a world where one of our most constrained resources is developer attention, unattended agents allow for parallelization of tasks.
A typical minion run starts in a Slack message and ends in a pull request which passes CI and is ready for human review, with no interaction in between.
This can be particularly helpful during an on-call rotation to effectively resolve many small issues that might arise.
Stripe's codebase encompasses hundreds of millions of lines of code across a few large repositories. Most of our backend is written in Ruby (not Rails) with Sorbet typing, a relatively uncommon stack.
our code uses a vast number of homegrown libraries that are unique to Stripe and therefore natively unfamiliar to LLMs.
The stakes are high: this code moves well over $1 trillion per year of payment volume live in production.
Stripe has many intricate real-world dependencies on financial institutions and regulatory and compliance obligations that our code must honor.
our custom minion harness tightly integrates with that tooling.
While we provide CLI and web interfaces for initiating minions, engineers will most frequently start one from Slack. By tagging our Slack app, engineers can kick off a minion directly from the thread discussing a change, and it'll be able to access the entire thread and any links included as context.
Our internal docs platform, feature flag platform, and internal ticketing UI all integrate with minions. For example, when our CI systems detect flaky tests, we create automated tickets that prompt users to fix the problem with a minion.
While the minion works, or after the fact, engineers can see the decisions and actions the minion took in a web UI.
Once it has completed its task, a minion creates a branch, pushes it to CI, and prepares a pull request following Stripe's PR template. If the code looks good, the engineer opens the PR and requests a review from another Stripe engineer. If not, they can give the minion further instructions, and it will push updated code to the branch when it's done.
a minion run that's not entirely correct is often still an excellent starting point for an engineer's focused work.
Devboxes are pre-warmed so one can be spun up in 10 seconds, with Stripe code and services pre-loaded. They're isolated from production resources and the internet, so we can run minions on devboxes without human permission checks.
This also gives parallelization without the overhead of something like git worktrees, which wouldn't scale at Stripe.
We've customized the orchestration flow in an opinionated way to interleave agent loops and deterministic code—for git operations, linters, testing, and so on
almost all agent rules at Stripe are conditionally applied based on subdirectories.
This is how they gather context like internal documentation, ticket details, build statuses, code intelligence via Sourcegraph search, and more. Indeed, we deterministically run relevant MCP tools over likely-looking links before a minion run even starts, to better hydrate the context.
we built a central internal MCP server called Toolshed, which hosts more than 400 MCP tools spanning internal systems and SaaS platforms we use at Stripe.
The first line of defense is an automated local executable, which uses heuristics to select and automatically run selected lints on each git push. This takes less than five seconds.
CI selectively runs tests from Stripe's battery of tests—there are over three million of them—upon a push. Many of our tests have autofixes for failures, which we automatically apply. If a test failure has no autofix, we send it back to the minion to try and fix.
Since CI runs cost tokens, compute, and time, we only have at most two rounds of CI.
We frequently see engineers spinning up multiple minions in parallel
- Source 2:
Minions: Stripe's one-shot, end-to-end coding agents—Part 2
Supporting excerpts (30)
Over 1,300 Stripe pull requests (up from 1,000 as of Part 1) merged each week are completely minion-produced, human-reviewed, but containing no human-written code.
A Stripe devbox is an AWS EC2 instance that contains our source code and runs services under development.
we proactively provision and warm up a pool of devboxes so they are ready when a developer wants them.
We built out devboxes for the needs of human engineers, long before LLM coding agents existed.
What's good for humans is good for agents
Full autonomy also requires the agent to be systematically isolated from acting destructively over privileged or sensitive machines, especially with a human's personal credentials.
It's challenging to get agents running on a developer's laptop with all these properties. Containerization or git worktrees can help, but they're hard to combine
In late 2024, as coding agents emerged across the industry, we internally forked Block's goose—one of the first widely used coding agents—and customized it to work within Stripe's LLM infrastructure.
we focused our feature development of goose on the needs of minions, rather than those of human-supervised tools: that's a use case that's well-filled by third-party tools such as Cursor and Claude Code, which are already made available to our engineers.
the quarantined devbox environment means that the agent doesn't need confirmation prompts; any mistakes an agent might make are confined to the limited blast radius of one devbox, so we can safely run the agent with full permissions and skip confirmation prompts.
Blueprints are workflows defined in code that direct a minion run. Blueprints combine the determinism of workflows with agents' flexibility in dealing with the unknown: a given node can run either deterministic code or an agent loop focused on a task.
In the blueprint that powers minions, for example, there are agent-like nodes with labels such as
which are fully deterministic: those particular nodes don't invoke an LLM at all—they just run code.
saves tokens (and CI costs) at scale and gives the agent a little less opportunity to get things wrong.
In aggregate, we find that
compounds into system-wide reliability upside.
we've had teams build custom blueprints to encode running tricky LLM-assisted migrations across the codebase that couldn't be accomplished with a straightforward fully deterministic codemod.
Due to the size of our repositories, we use unconditional global rules very judiciously, since otherwise the agent's whole context window would fill with rules before the agent even starts.
we almost exclusively give minions context from files that are scoped to specific subdirectories or file patterns, automatically attached as the agent traverses the filesystem.
we standardized on a popular rule format that supported these features—Cursor's—and modified our harness to allow minions to read those rules in addition to a previous homegrown format.
We also now sync our Cursor rules into a format that Claude Code can read as well
All these agents, not just minions, needed MCP capabilities, often including overlapping sets of common tools.
Toolshed currently contains nearly 500 MCP tools for internal systems and SaaS platforms we use at Stripe.
adding a tool to Toolshed immediately grants capabilities to our whole fleet of hundreds of different agents.
so we configure different agents to request only a subset of Toolshed tools relevant to their task. Minions are no exception and are provided an intentionally small subset of tools by default, although per-user customizability allows engineers to configure additional thematically grouped sets of tools for their own minions to use.
we also have an internal security control framework that ensures they can't use their tools to perform destructive actions.
our devboxes already run in our QA environment, and consequently, minions don't have access to real user data, Stripe's production services, or arbitrary network egress.
We run a subset of linters as a deterministic node within the agent devloop blueprint, and loop on that lint node locally before pushing an agent's branch, so that the branch has a fair shot at passing CI the first time around.
After a minion pushes a change, we run CI and auto-apply any autofixes for failing tests. If there are failures with no autofix, we send the failure back to a blueprint agent node and give the minion one more chance to fix the failing test locally. After the second push and CI run, we send the branch back to its human operator for manual scrutiny.
CI runs cost tokens, compute, and time, and we think there are diminishing marginal returns if an LLM is running against indefinitely many rounds of a full CI loop.
- Source 3:
Stripe Engineers Deploy Minions, Autonomous Agents Producing Thousands of Pull Requests Weekly
Supporting excerpts (5)
Stripe engineers reported that Minions now produce over 1,300 pull requests per week, up from 1,000 in earlier trials.
Cameron Bernhardt, engineering manager at Stripe, mentioned in a LinkedIn post:
All code is human-reviewed, but the agents are increasingly producing changes end-to-end.
Engineers noted that Minions perform best on well-defined tasks such as configuration adjustments, dependency upgrades, and minor refactoring.
Tasks can originate from multiple sources, including Slack threads, bug reports, or feature requests.
- Source 4:
Supporting excerpts (12)
I'm Michelle Bu, and I lead API design and developer experience at Stripe.
I've shipped more lines of code since January than in the past five years combined.
Across Stripe, 91% of our engineers are now using AI tools in their everyday work.
We're talking about workflows on stage today.
But we forgot to remove the public preview badge from the docs!
We're looking at a Slack channel where a bunch of Stripe engineers are collaborating with their agents.
So please remove the public preview badge from the workflows overview since it's now GA. And I'll paste that link there.
So our agent can read the contents of Slack. It's optimized for searching our humongous code base, and it'll find the right code to change based on the context.
It analyzed the conversation to determine the repository in workspace, and now it is off.
it looks like that minion run completed and we can actually go and see the changes that it proposes. And it looks like on the workflow overview doc, it has removed the public preview availability field, and so that should be GA after we deploy this.
The agent you just saw is called a minion, and minions now ship over 1,000 PRs to production every week. In all these cases, humans just have to review and approve.
in the month of March, over 57,000 PRs were created with the help of AI coding assistance, which is a 140% increase in just 3 months.
- Source 5:
Supporting excerpts (4)
Steve Kaliski is a software engineer at Stripe
Stripe's internal AI coding agents, which now ship approximately 1,300 pull requests per week with minimal human intervention beyond code review.
Steve demonstrates how Stripe engineers activate development work from Slack and leverage cloud-based development environments for parallel agent workflows
Why non-engineers at Stripe are starting to use minions to ship code
- Source 6:
Stripe: AI-Powered Developer Productivity with Minions and Machine-to-Machine Payments
Supporting excerpts (8)
Engineers can initiate development work from Slack by simply adding an emoji reaction
to watch the agent work in real-time, seeing which tools it invokes, what files it modifies, how it handles test failures
Critically, the agent doesn't merge code autonomously; human review remains a required gate before code reaches production.
Product managers and designers who can articulate what they want in plain text can trigger Minions to create prototypes, update documentation, or make simple changes
If coding effort approaches zero, code review could become the new bottleneck
the comprehensive CI/CD infrastructure provides automated confidence in code quality.
Stripe's blue-green deployment capabilities mean that even if an issue makes it through review, it can be quickly rolled back without customer impact.
The emoji-in-Slack interaction model succeeds because it requires minimal effort and no context switching.
Comments
Start the conversation.
Invited members of the library comment here. Sign in to join the conversation.