Stop waiting on your own pull requests: GitHub stacked PRs in practice

Categories: Product, Tools

Summary

GitHub's stacked PRs—now in GA—reduce code review bottlenecks for AI-generated changes by breaking monorepo updates into smaller, parallel-reviewable diffs. Repos using stacks see 9% more merged code and top 1% repos achieve 5% faster merge times.

Key Takeaways

  1. Stacked PRs solve the agentic development bottleneck: AI agents can generate massive changes in parallel, but code review becomes the constraint. Breaking work into focused, layered diffs by code ownership group accelerates approval flow.
  2. Measurable productivity gains: Repos using stacked PRs show 9% increase in merged code vs. peers, while top 1% of repos (67% now using stacks) achieve 5% improvement in time to merge.
  3. GitHub Stack CLI (`gh stack`) is purpose-built for agents, not just developers. Use it for cascading rebases and parallel git operations—or instruct Copilot/other agents to execute stack operations automatically via bundled skills.
  4. Git work trees enable agent swarms to work in parallel on different stack layers simultaneously, each with isolated context. Unlock distributed, coordinated work without merge conflicts.
  5. New stack merge semantics: PRs only merge if lower-layer PRs are approved and passing CI. Use new dedicated stack page to view all PR status, CI health, and reviews in one dashboard. Share stack links for async collaboration.

Related topics

Transcript Excerpt

Hey, everyone. I'm Sameen. I work on the product team here at GitHub and I lead stacked pull requests. So before we get started, a quick show of hands. How many of you here are familiar with the concept of stacking? All right. Okay. And how many of you have used stacked PR as in GitHub since it came out a few weeks ago or a few months ago. Okay. All right. Good amount. Awesome. So for those of you who've already been using stacks, sit tight. We've got a bunch of really exciting updates. And for those of you who maybe aren't as familiar, we'll do a quick stacks one on one so everyone's on the same page. So the concept of stacking or stack diffs has actually been around for, for quite a bit, but we knew it was finally time for us to get this natively integrated into GitHub, because we saw ho…

More from GitHub