explainx.ainewsletter3.5k
TrendingNewsPathwaysSkills
Pricing
explainx.ai

Upskill in AI — 16 free pathways, live workshops & bootcamps, and 50+ courses from practitioners. Plus the skills, tools, and MCP servers to practice on.

follow us

custom AI agents

[email protected]

get started

Find your pathTake Free Evaluation

learn

pathways — start freeworkshopsbootcampscoursescertificationsmock testsexplainx universitycorporate traininglearn skills & mcp

discover

skillsmcp serversexplainx mcptoolsagentsllmsdesignsagi trackerranks

company

aboutvisionmissionteaminstructorscommunityhackathonscareers

content

daily AI newsstate of AI — live resultsblogreleasespromptsgeneratorsresource librarydemofor LLMs

solutions

all solutionsdeveloper upskillingmarketing upskillingproduct manager upskillingleadership upskilling

More from us

InfloqInfluencer marketingBgBlurPrivacy-first blurOlly SocialSocial AI copilotCeptoryVideo intelligenceBgRemoverBackground removal

newsletter · weekly

Get AI news, tools, and insights in your inbox.

supportprivacytermsdata rightssubmission guidelines

© 2026 AISOLO Technologies Pvt Ltd

On this page

  • TL;DR
  • What a "stack" actually is
  • Why parallel review is the actual headline feature
  • The gh-stack skill: stacking meets coding agents
  • How to try it
  • Where this fits if you're already using stacked-diff tools
  • What this means for AI-era PR sizes
  • Summary
  • Related on explainx.ai
← Back to blog

explainx / blog

GitHub Stacked Pull Requests: Public Preview Explained

GitHub's stacked pull requests hit public preview July 31, 2026 — ordered PR layers, parallel review, one-operation merge, gh-stack for Copilot.

Jul 31, 2026·8 min read·Yash Thakker
GitHubDeveloper ToolsCode ReviewGitHub CopilotAgent Skills
go deep
GitHub Stacked Pull Requests: Public Preview Explained

GitHub shipped stacked pull requests to public preview on July 31, 2026, announced via @msdev: an ordered series of pull requests, each representing one focused layer of a larger change, reviewable in parallel and mergeable in a single operation. It's a feature the stacked-diff community (Graphite, Sapling, git-branchless) has been building third-party tooling around for years — now native to GitHub itself, and explicitly wired up for GitHub Copilot and other coding agents via a dedicated gh-stack skill.

Weekly digest3.5k readers

Catch up on AI

Curated AI updates on agents, skills, and MCP — delivered to your inbox. Unsubscribe anytime.


TL;DR

QuestionAnswer
What shipped?Stacked pull requests, public preview
AnnouncedJuly 31, 2026, @msdev
What is a stack?An ordered series of PRs, each one focused layer of a larger change
Where to use itGitHub.com, GitHub CLI, GitHub mobile app, or a coding agent via the gh-stack skill
Review modelParallel — teammates review different layers simultaneously, no blocking
Merge modelMerge the latest ready PR → lands it and every unmerged layer below it, one operation
Branch protectionsUnchanged — existing protections and required checks still govern what reaches main
Coding agent supportGitHub Copilot, named explicitly, via gh-stack

What a "stack" actually is

The core idea, straight from GitHub's own framing: stacked pull requests break large changes into small, reviewable pull requests — an ordered series where each PR is one focused layer, not the entire change dumped into a single diff.

Concretely, per the announcement thread:

  1. Start with a branch and pull request for your first change — this is layer one of the stack.
  2. Add further layers on top — each new piece of work becomes the next PR in the sequence, building on the branch below it.
  3. GitHub tracks the dependency order between these PRs and surfaces it as a stack map, so the full shape of the change stays visible even while individual layers are reviewed separately.
  4. Merging the latest ready PR lands that PR and every unmerged layer below it, in one operation — instead of a chain of manual merges and rebases up the stack.

That fourth point is the practical payoff most engineers who've used third-party stacking tools will recognize immediately: the tedious part of stacked-diff workflows has always been the rebase cascade — merge the bottom PR, then manually rebase every PR above it onto the new base, repeat for each subsequent merge. Native stacking support means GitHub itself understands and maintains that dependency chain, rather than developers hand-rolling it with branch naming conventions and careful rebase discipline.


Why parallel review is the actual headline feature

Traditional sequential small-PR workflows have a hidden bottleneck: PR #2 can't be meaningfully reviewed against a stable base until PR #1 merges, because PR #2's diff is computed relative to a branch that's still moving. In practice, teams either wait for each PR to merge before starting the next review (slow), or review against a moving target and re-review after every rebase (noisy).

GitHub's stacking model addresses this directly: "You and your teammates can each review different layers in parallel without blocking further work." The stack map keeps each layer's diff scoped to just that layer's changes, tracked against its position in the stack, so a reviewer looking at layer 3 doesn't need layers 1 and 2 to be merged first — they need the stack's dependency order to be understood, which GitHub now handles natively.

This is the same problem stacked-diff tooling like Graphite and Meta's internal Phabricator-style workflows have solved for years, now arriving as a first-class GitHub feature rather than a third-party wrapper layer. For teams already running trunk-based development with small, frequent PRs, this closes a real gap between "the workflow we want" and "the tooling GitHub natively supports."


The gh-stack skill: stacking meets coding agents

The detail most relevant to 2026's development landscape specifically: GitHub explicitly names coding agents such as GitHub Copilot as first-class stack participants, via a gh-stack skill. That's a deliberate acknowledgment of a real, current problem — agent-generated diffs tend toward one giant PR by default. Ask an agent to implement a feature end-to-end and, without explicit instruction otherwise, it will typically produce a single large commit or PR covering schema changes, business logic, tests, and UI in one pass, because nothing about the default agentic loop incentivizes decomposition.

A gh-stack-aware Copilot session changes that default: instead of one sprawling diff a human reviewer has to hold in their head all at once, the agent can decompose its own output into an ordered stack — schema migration as layer one, business logic as layer two, UI as layer three — each independently reviewable, each following the same merge-cascades-downward model as a human-authored stack.

This connects directly to a problem explainx.ai has covered from the human side: the review-time tax on AI-generated code — several developers in that "2x, not 10x" HN thread described reviewing agent output as taking 2-3x longer than writing the same code by hand, precisely because a large, unstructured diff is hard to verify carefully. Native, agent-aware stacking is one of the more concrete tooling responses to that exact complaint: shrink the unit of review, keep the dependency structure explicit, and parallel-review what used to be one unreviewable block.


How to try it

Per the announcement, stacks are usable through any of four surfaces:

SurfaceHow you'd use it
GitHub.comNative UI for creating and navigating a stack, including the stack map
GitHub CLIgh commands for creating layers and managing the stack from the terminal
GitHub mobile appReview individual layers on the go
Coding agents (e.g. GitHub Copilot)Via the gh-stack skill — agent decomposes its own changes into stack layers

The workflow shape, translated into steps:

  1. Open a branch and PR for your first focused change — this is the base of the stack.
  2. Continue working; each additional focused change becomes a new layer on top of the previous one.
  3. Reviewers pick up individual layers and review them in parallel — no need to wait for lower layers to merge first.
  4. When a layer is approved, merge the latest ready PR — GitHub lands it and every approved layer beneath it in a single operation.
  5. Branch protections and required checks apply throughout, exactly as they do for a standalone PR — stacking doesn't bypass any existing merge gate.

Where this fits if you're already using stacked-diff tools

Teams already on Graphite, Sapling, or git-branchless for stacked-diff workflows now have a genuine question to answer: does native GitHub support close the gap enough to drop the third-party layer, or do those tools still offer meaningfully more (richer CLI ergonomics, cross-repo stacks, more mature conflict handling)? GitHub being in public preview — not GA — matters here: expect rough edges, missing features relative to mature third-party tools, and likely rapid iteration before general availability. Evaluate it as "worth testing on a low-stakes repo now," not "safe to migrate your whole org's workflow to today."


What this means for AI-era PR sizes

The timing is not incidental. As agentic coding tools make it cheap to generate large amounts of code quickly, the bottleneck in software delivery has been visibly shifting from writing code to reviewing it — a theme that's shown up repeatedly across 2026's developer discourse, from Amdahl's-Law arguments about coding-only speedups capping total productivity gains to direct complaints about reviewing AI output taking longer than writing it would have.

Native, agent-integrated stacking is a structural response to that shift: instead of relying on discipline (asking an agent nicely to "keep PRs small") or hoping reviewers scale their attention to match larger diffs, the tooling itself enforces decomposition and enables parallel review as defaults. Whether it meaningfully reduces the review-time tax in practice — versus just formalizing a workflow disciplined teams already followed manually — is the open question this public preview exists to answer.


Summary

GitHub's stacked pull requests entered public preview on July 31, 2026: an ordered series of PRs, each a focused layer of a larger change, trackable via a stack map, reviewable in parallel by different teammates, and mergeable in one operation that lands the approved PR plus every unmerged layer beneath it. It's available on GitHub.com, the CLI, the mobile app, and — notably — through coding agents like GitHub Copilot via the gh-stack skill, a direct response to the AI-era problem of agents defaulting to one large, hard-to-review diff. Existing branch protections and required checks are unchanged. As a public preview, expect iteration before GA — worth testing now, not yet a wholesale replacement for mature third-party stacking tools if your team already relies on one.


Related on explainx.ai

  • "2x, not 10x" — the review-time tax on AI-generated code
  • Should developers stop reviewing AI-generated code? The debate
  • Loop engineering — coding agents with Claude Code
  • Agent skills — complete guide
  • Claude Code commands — complete reference guide
  • The AI Aesthetic — why AI apps converge on one look
  • Top 10 open and closed-source agent harnesses (2026)

Source: @msdev announcement thread — July 31, 2026


Feature details reflect GitHub's public preview announcement as of July 31, 2026. Public preview features change before general availability — check GitHub's official docs for current behavior before relying on this workflow in production.

Yash Thakker

Written by

Yash Thakker

Yash is an AI expert with over 300K learners. Join his workshops →

Related posts

Jul 31, 2026

The AI Aesthetic: Why Every AI App Looks the Same in 2026

Designer Jim Nielsen's "The AI Aesthetic" named the visual tells of 2026 AI software: shimmering loading text, tiny sidebar icons, beige/cream with orange accents, serif type, and whack-a-mole toggles. explainx.ai breaks down why LLM-written interfaces converge on a mean — and what to do about it.

Jul 31, 2026

ASD-STE100: The Aerospace Standard Fixing AI Slop Writing

A 1983 aerospace writing standard is having a moment: an open-source agent skill (AminBlg/SimpleEnglish) forces LLMs into ASD-STE100 Simplified Technical English and measured 72.9% fewer style violations across 6 Claude models. Hacker News split on whether it's a real fix or one prompt line — here's the case for both, plus how to try it.

Jul 22, 2026

code-review-graph: Stop AI Coding Agents From Re-Reading Your Whole Repo

AI coding tools tend to re-read large chunks of a codebase on every review task. code-review-graph builds an incremental structural graph instead, and serves your AI assistant only the blast radius of a change — with published, reproducible benchmarks and an honest limitations section.