All posts

ComparisonDevfab Team10 min read

Stacked pull requests vs traditional pull requests: small dependent reviews, or one branch per change

Stacked pull requests vs traditional pull requests: a chain of small dependent PRs, or one branch per change. How each works, the tools, and when stacking pays.

Stacked pull requests vs traditional pull requests: small dependent reviews, or one branch per change

Short answer: Use stacked pull requests when changes are large, build on each other, and your reviewers are a bottleneck: each small PR gets a real review while you keep working on the next. Stick with traditional pull requests when changes are small and independent, your team is new to rebasing, or you lack tooling to keep a stack in sync.

Stacked pull requests vs traditional pull requests: a chain of small dependent PRs next to one large branch merging into main

You opened a pull request with forty changed files. The reviewer skimmed it, left two comments and approved. Nobody really reviewed it.

That is the problem stacking tries to solve. Big PRs get rubber-stamped or stall, and both outcomes let bugs through. With AI agents able to write large diffs quickly, the pressure on review grows.

In this comparison:

Each claim below links to the source it comes from.

Definitions

Traditional pull request. One branch per change, opened against the main branch. You finish the work on the branch, open a PR, wait for review, merge, and then start the next change from main. If the next change depends on the first, you either wait or pile it into the same PR.

Stacked pull requests. A chain of small PRs, each based on the one before it. Graphite's guide describes stacked diffs as "a series of changes where each change depends on the previous one" (Graphite guide). Google's engineering practices describe the same habit: "write one small CL, send it off for review, and then immediately start writing another CL based on the first CL" (Google eng-practices). A CL, or changelist, is Google's term for a change under review.

The practice is older than the tools that sell it. Graphite's guide traces it to open-source workflows, formalized in tools such as Phabricator's Differential and Google's internal review tool, Critique.

Stacked and traditional pull requests side by side

AspectTraditional PRsStacked PRs
Unit of reviewOne branch, often a whole featureSmall dependent slices of a feature
Waiting for reviewBlocks dependent workKeep building on top while earlier PRs are reviewed
Review qualityLarge diffs invite skimmingReviewers "focus on small parts of the codebase"
Merge conflictsGrow the longer a branch livesFewer, but earlier changes ripple up the stack
RebasingOccasionalFrequent; later PRs follow earlier ones
RollbackLarge changes are harder to revertSmall slices are easier to revert
Tooling neededAny Git hostGit 2.38 --update-refs, or a stacking tool
Learning curveLowModerate; the team must review in order

Sources: Graphite guide, Google eng-practices, GitHub blog: Git 2.38.

Illustration: Traditional PRs, stacked PRs and an AI software factory compared on review size, waiting, rebasing, tooling, change impact and tests

Why small changes review better

Google's guide lists reasons to keep changes small, and they are the same reasons to stack:

  • More thorough review. "With large changes, reviewers and authors tend to get frustrated by large volumes of detailed commentary."
  • Fewer bugs. "Since you're making fewer changes, it's easier for you and your reviewer to reason effectively."
  • Less wasted work. "If you write a huge CL and then your reviewer says that the overall direction is wrong, you've wasted a lot of work."
  • Less blocking. Small changes allow you "to continue coding while you wait for your current CL in review."
  • Simpler rollbacks. A large change is more likely to touch files that change before a rollback.

The same guide adds a rule every stack must follow: "make sure the whole system keeps working after each CL is submitted."

The tooling

Plain Git. The pain of stacking is history: "rewriting commits in one branch will leave the subsequent branches disconnected from history." Git 2.38 added git rebase --update-refs, which moves the dependent branches for you, and you can turn it on by default with git config --global rebase.updateRefs true (GitHub blog).

Graphite. A GitHub review layer with stacked PRs, a CLI and VS Code extension for stacks, and a stack-aware merge queue that "lands PRs in order" (Graphite). Its status matters: Graphite announced it would join Cursor on Dec 19, 2025, and said it "will continue to operate as an independent product" (Graphite blog). As of November 2026, it is still sold under its own brand, with a banner saying "Cursor Cloud Agents are now in Graphite." Pricing: Hobby is free; Starter is USD 20 per user per month and Team is USD 40 per user per month, billed annually, as of November 2026. Team adds unlimited AI reviews and the merge queue (Graphite pricing). The homepage mentions only GitHub as a code host.

More options in Graphite alternatives and CodeRabbit vs Graphite.

A worked example: a dental supply reorder tool

A dental group wants its clinics to reorder supplies automatically when stock runs low. As one traditional PR, that is a new data model, reorder rules, a supplier API client, a clinic screen and notifications, all reviewed at once.

As a stack:

  1. PR 1: stock levels and reorder thresholds in the data model.
  2. PR 2: the reorder rule, built on PR 1, with tests.
  3. PR 3: the supplier API client, built on PR 2.
  4. PR 4: the clinic reorder screen and approval button.
  5. PR 5: notifications to the office manager.

The database reviewer looks at PR 1 only. The person who knows the supplier API reviews PR 3. If the reviewer of PR 2 asks for a different threshold rule, PRs 3 to 5 get rebased, which is the cost of stacking.

When to choose stacked pull requests

  • Features are large and layered. Data model, logic, API and UI that build on each other.
  • Review is the bottleneck. Stacking lets authors keep working instead of waiting.
  • Different parts need different reviewers. Each PR goes to the person who knows that layer.
  • You want safer rollbacks. Small slices are easier to revert.
  • Your team has tooling. --update-refs or a tool like Graphite keeps the stack in sync.

When to choose traditional pull requests

  • Changes are small and independent. A bug fix or a copy change needs no stack.
  • The team is new to rebasing. Stacks mean frequent rebases; mistakes cost more than they save.
  • Reviews are already fast. If PRs merge soon after opening, stacking adds overhead without much gain.
  • Your host or tooling is not GitHub-centric. Graphite's homepage mentions only GitHub; other hosts need other tools or plain Git.
  • You need a simple audit trail. One PR per feature can be easier for some compliance reviews to follow.

Where an AI software factory fits

Stacking is one answer to a broader problem: changes that are too large to understand and review. AI agents can make that worse by producing big diffs fast. Coding agents automate the developer. Devfab automates the development lifecycle.

Devfab attacks the size problem earlier. A person approves the plan, then the Coordinator splits it into tickets and assigns developer agents, so work arrives in smaller, reviewable pieces by design. For the reorder tool, the tickets map closely to the stack above. On an existing repo, you can leave the change box empty and Devfab maps the code first with ChainFlow, then suggests three small first tickets.

ChainFlow also covers what a stack cannot: impact across the codebase. It maps which functions and APIs call each other and what is deployed, so a change to the reorder rule shows its effect on the supplier API client, the clinic screen and notifications before anything merges. The QA agent runs UI and flow tests, clicking a clinic manager's journey from low stock to approved order, plus logic tests such as "an order never goes out above the clinic's monthly budget."

The code lives in your own GitHub account or your organization's, Deploy ships to your own server, and cost is logged after each run, per task and per project.

Honest limits: Devfab is in Beta, with a smaller community and fewer integrations than mature review tools. It is not a stacking tool or a merge queue, and not an editor for hands-on coding. It needs a GitHub account. If your developers write the code and you only want better review flow, a tool like Graphite is the closer fit. Compare in Devfab vs Graphite, or start with what an AI software factory is.

FAQ

What are stacked pull requests?

Stacked pull requests are a chain of small PRs where each one builds on the one before it. You open the first, keep working on the next one on top of it, and reviewers look at each small change on its own. The stack lands in order once each part is approved.

Why use stacked PRs instead of one big pull request?

Smaller changes are easier to review well. Google's engineering practices list faster and more thorough reviews, fewer bugs, less wasted work, easier merging and simpler rollbacks as reasons to keep changes small, and stacking lets you keep coding while earlier parts are in review.

Do I need a special tool for stacked pull requests?

Not strictly. Git 2.38 added git rebase --update-refs, which moves dependent branches when you rewrite an earlier one. Dedicated tools such as Graphite add a CLI for stacks, a PR inbox and a stack-aware merge queue that lands PRs in order.

What are the downsides of stacking?

More moving parts. When an early PR changes, later ones must be rebased; Graphite's own guide says managing stacked diffs manually can be complex. Every PR in the stack must leave the build working, and the team needs a shared habit of reviewing in order.

Who owns Graphite now?

Cursor. Graphite announced a definitive agreement to join Cursor on December 19, 2025, and said it would continue to operate as an independent product. As of November 2026, Graphite is still sold under its own brand, with Cursor Cloud Agents available inside it.

Smaller changes start with a better plan. Try Beta

Frequently asked questions

What are stacked pull requests?

Stacked pull requests are a chain of small PRs where each one builds on the one before it. You open the first, keep working on the next one on top of it, and reviewers look at each small change on its own. The stack lands in order once each part is approved.

Why use stacked PRs instead of one big pull request?

Smaller changes are easier to review well. Google's engineering practices list faster and more thorough reviews, fewer bugs, less wasted work, easier merging and simpler rollbacks as reasons to keep changes small, and stacking lets you keep coding while earlier parts are in review.

Do I need a special tool for stacked pull requests?

Not strictly. Git 2.38 added git rebase --update-refs, which moves dependent branches when you rewrite an earlier one. Dedicated tools such as Graphite add a CLI for stacks, a PR inbox and a stack-aware merge queue that lands PRs in order.

What are the downsides of stacking?

More moving parts. When an early PR changes, later ones must be rebased; Graphite's own guide says managing stacked diffs manually can be complex. Every PR in the stack must leave the build working, and the team needs a shared habit of reviewing in order.

Who owns Graphite now?

Cursor. Graphite announced a definitive agreement to join Cursor on December 19, 2025, and said it would continue to operate as an independent product. As of November 2026, Graphite is still sold under its own brand, with Cursor Cloud Agents available inside it.