Big pull request? Comment /split

prsplit turns one large PR into a stack of small ones that are easy to review, and proves they add up to your original change.

#21 Add user avatars+143 −8
/split
  1. Show avatars on the profile page+26
  2. Add avatar upload API+55
  3. Add avatar storage+46
  4. Rename utils/fmt.ts to format.ts+8 −8
main

How it works

Everything happens in the pull request, with three comments' worth of effort.

01

Comment /split

prsplit cuts the change into small pieces and works out which ones depend on which.

02

Read the plan

AI groups the pieces into focused PRs. Code checks the result before you see it.

03

Comment /split apply

The PRs open as a GitHub stack. Review and merge them the way you already do.

prsplit commented
prsplit suggests 4 smaller PRs
1Rename utils/fmt.ts to utils/format.ts+8 −8
2Add avatar storage and database support+46
3Add avatar upload API+55
4Show avatars on the profile page+26

✓ All 19 changes are used once, in an order that works, and the 4 PRs together equal this PR exactly.

Safe by design

The AI only suggests the grouping. Plain code checks everything before anything is pushed.

Adds up exactly

The top of the stack has the same files as your PR, byte for byte.

Nothing out of order

No PR uses something that only arrives in a later one.

Your branch is untouched

prsplit creates new branches and never overwrites one that exists.

You stay in charge

Nothing is pushed until you apply, and prsplit steps back once the stack is open.

Commands

  • /splitSuggest how to split this PR
  • /split applyOpen the suggested PRs as a stack
  • /split cancelForget the suggestion
  • /split undoClose the new PRs and restore the original

Questions

What does the AI see?

Short summaries of the changed lines, sent to Anthropic's API. Your code isn't kept after the job finishes.

Which languages work?

Any repo can be split. Dependency checks are strongest for TypeScript and JavaScript.

Could a single small PR break the build?

The full stack always equals your PR. Let CI run on each part before merging.

Are there limits?

Up to 5,000 changed lines per PR, 10 splits per repo per day, and no PRs from forks yet.

Make your next big PR easy to review.

Install on GitHub