← AI Coding

How Stripe runs Minions, the unattended coding agents behind 1,300 merged PRs a week

Stripe says more than 1,300 pull requests merged each week are written entirely by its in-house agents, called Minions, and reviewed by humans. Here is the system its engineers described in February 2026, what the number does and does not show, and the parts any team can copy.

Based on: Stripe Dot Dev Blog, Minions Parts 1 and 2 (Feb 2026); How I AI interview (Mar 2026)

MINIONS: FROM SLACK THREAD TO REVIEWED PRtask + threadcontextcode changepushbranchSlack, CLI, webor a button in a toolDevboxwarm pool, target 10 sgoose-fork harnessruns a blueprintToolshed MCP~500 tools, small subsetLocal lintsloop before pushCI, max 2 rounds3M+ tests, selectivePR, human reviewevery minion PR
Drawn from Stripe's two Minions posts (February 2026), simplified to one row per stage. Notice that the agent never leaves the devbox: Stripe says devboxes sit in its QA environment with no production access and no arbitrary network egress, and what comes out is a branch that a human reviews.

What Stripe built

Stripe's developer blog published a two-part series on Minions in February 2026, both by Alistair Gray. Part 1 (9 February) describes them as fully unattended agents built to one-shot a task: an engineer hands over the job, and the minion returns a pull request without anyone steering it step by step. Engineers still use interactive tools such as Cursor and Claude Code; Stripe's argument is that developer attention is scarce, so unattended work should run in parallel.

Stripe also explains why it built its own agent instead of using an off-the-shelf one. Most of its backend is Ruby with Sorbet types (not Rails), spread over hundreds of millions of lines in a few large repositories, with many homegrown libraries that models have never seen. The code moves well over $1 trillion a year in payments and carries regulatory and compliance obligations. For that reason the harness plugs into Stripe's existing tooling for source control, environments, code generation and CI rather than replacing it.

Runs usually start in Slack: an engineer tags the app in a thread, and the minion reads the whole thread and its links. CLI and web entry points exist, and internal tools embed a launch button. One example from Part 1: when CI detects a flaky test, it files a ticket with a button that starts a minion to fix it. In a March 2026 episode of the How I AI podcast with Stripe engineer Steve Kaliski, the episode notes describe work being kicked off with a single Slack emoji reaction.

The architecture, from Slack thread to pull request

Every run gets its own devbox, the same cloud development machine Stripe engineers already use over SSH. Part 2 (19 February) says a devbox is an AWS EC2 instance, standardised and treated as disposable. Stripe keeps a warm pool: machines are provisioned in advance with large repositories cloned, Bazel and type-checking caches warmed and code-generation services started, and Stripe aims for a fresh one to be ready within 10 seconds. One task per devbox gives parallelism without git worktrees, which Stripe says would not scale for its repositories.

The agent loop is an internal fork of goose, Block's open-source coding agent, which Stripe forked in late 2024 and adapted to its own LLM infrastructure. Because nobody watches a minion live, the harness does without human-facing features such as interruption and human-triggered commands that steer a run. Because the devbox is isolated, the agent runs with full permissions and no confirmation prompts.

Context comes from two places. Minions read the same agent rule files as Cursor and Claude Code; Stripe standardised on Cursor's rule format and scopes nearly all rules to subdirectories or file patterns so they do not fill the context window. Tools come through Toolshed, a central internal MCP server (MCP is the open protocol that lets an agent call external tools) holding nearly 500 tools for internal and SaaS systems. A minion gets a deliberately small default subset, and users can add themed tool sets. Before the agent starts, the harness runs likely MCP lookups deterministically against links in the request, to fill in context, so the model can start with material such as ticket details and docs already in hand.

How a run is held in check: blueprints and the two-round CI cap

The orchestration unit is a blueprint, a code-defined workflow that mixes deterministic nodes (plain code, no model) with agent nodes (an LLM loop on one subtask). Stripe's named examples are the agent nodes "Implement task" and "Fix CI failures" and the deterministic nodes "Run configured linters" and "Push changes". Steps that must always happen, such as linting, are code rather than a request to the model, which saves tokens and CI time and lets each agent node get its own system prompt and tool list. Teams can write their own blueprints, for example for LLM-assisted migrations.

A MINION BLUEPRINT (SIMPLIFIED)unfixable failureshand offImplement taskagent nodeRun lintersdeterministic, localPush changesdeterministicCI round 1known autofixes appliedFix CI failuresagent node, one tryPush, CI round 2deterministicHuman operatorreview or finish by hand
Yellow boxes are agent nodes, blue boxes are plain code. Stripe named four of these nodes and described the two CI rounds; it did not publish a full node list, so the order here is our reading of Part 2. Notice that the model gets exactly one chance to fix CI before a human takes over.

Feedback is front-loaded. Pre-push hooks fix common lint problems, and a background daemon caches lint results so a fix usually takes well under a second. Stripe has more than three million tests, far too many to run locally, so CI selects the relevant ones. After the first push, known autofixes are applied automatically; anything left goes back to an agent node for one local attempt, then a second push and CI run, then a human. Part 1 states the rule plainly: "we only have at most two rounds of CI", because CI costs tokens, compute and time, and Stripe saw diminishing returns from more rounds.

Security rests on placement, not on asking the model to behave. Devboxes run in Stripe's QA environment with no real user data, no production services and no arbitrary network egress, and an internal security control framework is meant to stop destructive actions through MCP tools. The blast radius is one disposable machine. Output is a branch opened with Stripe's PR template; the engineer who launched it reviews it and asks a second engineer to review, can send further instructions, or can finish a partly right run by hand. A web UI shows what the minion did and why.

What Stripe reports, and what the numbers leave out

FULLY MINION-WRITTEN MERGED PRS A WEEK (STRIPE'S CLAIM)Part 1, 9 Feb 2026over 1,000Part 2, 19 Feb 2026over 1,300
Both figures are Stripe's own, from its developer blog. They are floors ("over"), and the floor rose 30% in ten days; Stripe did not say whether it came from more users, more task types or a change in what is counted.

The headline claim, from Part 2, is that over 1,300 merged pull requests each week are "completely minion-produced, human-reviewed, but containing no human-written code". That is a company claim, and Stripe published no denominator: no share of all merged PRs, no count of runs that were abandoned, no failure rate, no cost per run and no defect data for minion code compared with human code. The count also says nothing about the size of each change.

Independent coverage adds little verification. InfoQ's March 2026 report relays Stripe's numbers and quotes only Stripe staff, adding that engineers say minions do best on well-defined work such as configuration changes and dependency upgrades. The How I AI episode notes say Stripe still reviews every AI-generated PR and leans on test coverage, synthetic end-to-end tests and blue-green deploys (two live environments so a release can be rolled back quickly) as its confidence signals. The honest reading is that Stripe has shown a working design at real scale, not a measured productivity gain.

What your team can copy

Most of what makes Minions work existed before the agent: fast disposable dev environments, scoped rule files, a big test suite and a CI system that can pick tests. As Part 1 puts it, "if it's good for humans, it's good for LLMs, too." Concrete steps, in order:

  1. Give each agent run its own disposable environment with no production credentials and no open internet. Once the sandbox is the guardrail, you can drop per-command approval prompts. Pre-warm a small pool so start-up is seconds, not minutes.
  2. Write the workflow as code around the model. Make lint, format and push deterministic steps, and give the model narrow subtasks (implement, fix CI) each with its own prompt and tools.
  3. Cap CI retries. Pick a number (Stripe uses two rounds) and hand the branch to a person after that, instead of letting the agent burn tokens on a failing build.
  4. Put feedback before the push. Fast local linters and autofixes catch most problems in seconds and keep CI for what only CI can check.
  5. Scope rules by directory and tools by task. Keep rule files next to the code they govern, and give each run a small default tool set from one central MCP server instead of everything.
  6. Start runs where the work already is: a chat thread, a ticket, a flaky-test alert. Pre-load the linked context before the model starts.
  7. Keep a human gate and measure it. Track merge rate, rework and review time for agent PRs from day one, the numbers Stripe has not published.

For how the underlying agent loop works, read how coding agents work; for a second company that went the background-agent route with a different design, see how Spotify runs Honk.