Anthropic rebuilt Git. Here is the merge policy a small team can copy
Anthropic's Scion post, translated for small teams: a merge policy for AI-generated code, the checks that gate it, and where human review stays.
- Published
- Reading
- 9 min
- Subject
- Systems
- Written by
- Aleem Ul Hassan

Key takeaways
- Anthropic went from about 2,500 merges a day in May 2026 to over 30,000 in September, and source control became its biggest bottleneck.
- A small team does not need Scion. It needs the principles: risk-based approval rules, automated checks before and after merge, and a fast way to revert.
- AI review is useful for finding problems. A person still approves intent on every change that touches money, data, access or customers.
- Write the merge policy down, enforce it in the repository settings, and protect the policy file itself.
Anthropic did not rebuild Git because Git is bad. It rebuilt it because Claude was merging code faster than its source control could absorb. The lesson for a small team is the policy around the tool: decide which changes need a person, which checks block a merge, and how fast you can undo a mistake.
Research checked October 26, 2026. This is our reading of Anthropic’s published engineering post, not a NexusPoint benchmark. The policy below is our recommendation.
If your team now has an AI assistant opening pull requests, the volume of code arriving for review has probably gone up. The number of people reviewing it has not. That gap is where broken releases come from. This post closes it with a written policy for AI-generated code review, not with more reviewers.
What did Anthropic actually change?
Anthropic replaced git in its main repository with an in-house system called Scion. Merges grew from about 2,500 a day in May 2026 to over 30,000 a day in September, which Anthropic attributes largely to agents writing code. A team of seven built it, plus a review tool called Antique, in five months. Anthropic’s engineering post.
The interesting parts are not the storage design. They are the rules around merging:
- Approval rules by risk. Antique can separate a comment-only change from a change to sensitive logic, so they need different approvals.
- Permissions per directory. Sensitive code can be protected at the folder level.
- Testing after merge as well as before. Anthropic says it could not keep a single global lock on the merge queue, so it invested in post-merge and pre-deploy automated testing.
- Fast undo. It runs automated bisect and revert pipelines.
Anthropic has said it will not open-source Scion and that it is “by no means a suitable replacement for git for general use”. It shared the thinking so other teams can apply it on top of git.
Which parts of Scion apply to a 5-person team?
Four of the principles transfer directly. The scale problem does not. A team merging 10 changes a day has no checkout bottleneck to solve, but it has exactly the same risk Anthropic manages: more code arriving than people can read line by line. The fix is rules in your repository settings, not new infrastructure.
| What Anthropic does | The small-team version | Skip it if |
|---|---|---|
| Approval rules that tell a comment change from a logic change | Named owners on sensitive folders, required for those paths only | Your whole codebase is equally low-risk |
| Directory permissions | An owners file that routes payments, auth and data code to a specific person | Only one person works in the repo |
| Post-merge and pre-deploy testing | Required checks before merge, plus a smoke test before each deploy | You never deploy automatically |
| Automated bisect and revert | Small pull requests and a revert step everyone has practised | Never. This one is cheap |
| Merge queue at 30,000 merges a day | Branches must be up to date before merging | You merge a handful of changes a day |
The last column matters. Copying a big-company process into a small team adds waiting time without removing risk.
What should a merge policy for AI-written code say?
A merge policy states who or what may write a change, which checks must pass, which paths need a named human approver, and how a bad merge gets reverted. Write it as one short file in the repository so the rules are visible, reviewable and versioned with the code they govern.
This is the brief we start from:
Scope: which repositories and branches this covers
Authors: people, AI assistants, or both, and how AI changes are labelled
Required checks: build, tests, type and lint checks, secret scan
Sensitive paths: payments, auth, customer data, infrastructure
Approver for sensitive paths: a named person, never the author
Approval resets: when new commits are pushed after approval
Size limit: the largest change a reviewer is expected to read
Revert: the exact command or button, and who may use it
Exceptions: who can bypass, and where that is recorded
Leave a line blank if the team has not decided it. A blank is a decision you still owe. A guessed answer becomes a rule nobody agreed to.
Which automated checks should gate a merge?
Gate a merge on the checks that catch a whole class of mistake in seconds and never need judgment: the build, the test suite, type and lint checks, and a secret scan. Everything that needs judgment goes to review instead. A required check should fail the same way every time, or people learn to ignore it.
| Check | What it catches | Blocks the merge? |
|---|---|---|
| Build | Code that does not compile or bundle | Yes |
| Tests | Behaviour that changed when it should not have | Yes |
| Type and lint checks | Wrong shapes, unused code, unsafe patterns | Yes |
| Secret scan | Keys and passwords committed by mistake | Yes |
| AI review comments | Likely bugs, missing edge cases | No. A person reads them |
| Smoke test after deploy | A merge that passed alone but broke with others | Triggers a revert |
On GitHub, these become required status checks in branch protection. Turn on “Require branches to be up to date before merging” if two changes can pass separately and fail together. GitHub notes that with the looser setting, builds can fail after merging when changes conflict. GitHub protected branches.

Figure 1. Two changes can each pass their own checks and still fail together. Test the merged state, not each branch alone.
Where should AI review stop and a person start?
In AI-generated code review, the AI finds problems. A person approves the purpose. Anthropic uses Claude heavily for adversarial review, and says that review can be “myopic” and sometimes leads to over-engineering. Its people still review every change to the system, focusing on intent rather than reading every line. That split is the right one for a small team too.
In practice, the boundary is drawn by what the change touches, not by who wrote it:
- AI review alone is enough for copy changes, comments, formatting and isolated internal tools, once the required checks pass.
- A named person approves anything touching payments, authentication, customer data, permissions, infrastructure or the merge policy itself.
- The author never approves their own change. That includes an AI assistant approving code it generated, and a person approving a change they pushed last.

Figure 2. Route a change by what it touches, not by who wrote it.
GitHub can enforce the last two. An owners file automatically requests review from the right person, and “Require review from Code Owners” makes that approval mandatory. “Require approval of the most recent reviewable push” stops the last pusher approving their own work. GitHub code owners.
Does a small team need a merge queue?
Usually not at first. A merge queue tests each approved change against the latest branch and everything queued ahead of it, then merges in “first-in-first-out order”. It earns its setup cost when several approved changes land on a busy branch and break it together. A team merging a few changes a day rarely has that problem.
Anthropic is the extreme case. At 30,000 merges a day it says it could not replicate a global lock on the merge queue, and leaned on testing after merge and Claude fixing conflicts instead. Anthropic’s engineering post.
For a small team, the order we recommend is:
- Require branches to be up to date before merging.
- Add a merge queue when authors start waiting on each other to rebase.
- Add a post-deploy smoke test that triggers a revert, whatever the volume.
GitHub’s merge queue gives the protection of up-to-date branches without making each author update their branch and wait for checks again. GitHub merge queue. Check that your plan includes it before designing around it.
How do you roll the policy out without slowing the team?
Roll it out in the order that removes the most risk for the least friction: protect the main branch, add required checks, name owners for sensitive paths, then tighten approvals. Each step is a settings change that takes minutes. Run each one for a week before adding the next, and note what it blocked.
- Week 1. No direct pushes to the main branch. Everything goes through a pull request.
- Week 2. Build, tests and secret scan become required checks.
- Week 3. An owners file routes sensitive paths to a named approver, and that approval becomes required.
- Week 4. Approvals reset on new commits, and the last pusher cannot approve.
How do you keep the policy from drifting?
Treat the policy as code. It lives in the repository, it changes only through a reviewed pull request, and it has a named owner. A rule that someone can quietly switch off on a busy afternoon is a suggestion, and more AI-written code means more of those afternoons.
Protect the policy file and the owners file with the same rules. GitHub recommends assigning an owner to the .github/ folder for exactly this reason. Otherwise anyone can rewrite the rules in the same pull request that breaks them.
When the policy blocks a change, read why before overriding it. If the same override keeps happening, change the rule in a pull request. The handoff test is a useful way to find which rules are still in someone’s head.
Whatever you set up, the client or team should own it, including the policy file and the reasons behind each rule. What we hand over lists what that looks like on our builds. If AI-written code is already landing faster than your team can review it, book an Ops Teardown and bring your current repository settings.
FAQ
Is Anthropic’s Scion available to use?
No. Anthropic says it has no plans to open-source Scion and that it is not a suitable replacement for git for general use. It published the design thinking so other teams can apply parts of the approach on top of git.
Can AI review replace human code review?
Not for changes with real consequences. Anthropic uses Claude heavily for adversarial review, but notes it can be myopic and lead to over-engineering, and people still review every change to the system for intent. Use AI review to find problems and a person to approve the purpose.
Is a merge queue worth setting up for a small team?
Usually not at first. A merge queue helps when several approved changes land on a busy branch and break it together. If you merge a handful of changes a day, requiring branches to be up to date before merging gives the same protection with less setup.
What is the minimum merge policy for AI-written code?
Every change goes through a pull request, required checks must pass, sensitive paths need approval from a named owner, approvals reset when new commits arrive, and the person or agent that wrote the change cannot approve it.
How do you roll back a bad AI-generated change quickly?
Keep changes small, merge them one at a time, and make reverting a single command your team has practised. Anthropic runs automated bisect and revert pipelines for this. A small team can get most of the benefit from small pull requests and a documented revert step.


