GitHub ships stacked PRs so large changes split into reviewable layers
Original: GitHub ships stacked PRs so large changes split into reviewable layers View original →
Large changes get a native review structure
The hard part of code review is often not the code volume itself, but the size of the change unit. GitHub posted on X on August 1, 2026 that “Stacked PRs are now on GitHub,” making dependent pull-request chains a native public-preview workflow. That matters for ordinary engineering teams and for AI coding agents: generated changes only help if humans can review them in clear layers.
GitHub’s docs describe stacked pull requests as a way to break a large code change into a chain of smaller dependent PRs that can be reviewed and merged independently. With GitHub CLI, teams install the gh stack extension, initialize the first layer with gh stack init, add more branches with gh stack add, and submit the stack with gh stack submit. On the website, users can create a chain by setting each PR’s base branch to the branch below it.
The feature comes with boundaries. It is in public preview, all branches must live in the same repository, and cross-fork stacks are not supported. GitHub can also recognize existing open PRs as a stack if their head and base branches already line up. Once linked, each PR shows only the diff for its layer, while a stack map in the PR surface shows the order and status of the chain.
The next thing to watch is agent integration. If coding agents can plan long work as stacked PRs, propagate lower-layer fixes upward, and avoid redundant CI, the review cost of large generated changes drops. That would make stacked PRs less like a niche workflow and more like the review format for agent-assisted development. The source tweet is available on X.
Related Articles
GitHub said on March 20, 2026 that Copilot code review has surpassed 60 million reviews. The company’s March 5 blog says usage is up 10x since launch, now covers more than one in five code reviews on GitHub, and relies on an agentic architecture tuned for higher-signal feedback.
GitHub now lets users mention <code>@copilot</code> in a pull request to request changes on that same PR. The company says Copilot coding agent handles the work in a cloud development environment, runs tests and linting, then pushes updates; pull requests from forks are not yet supported.
In an April 8, 2026 X post, Cursor said its code review agent can learn from pull-request activity in real time. The company also claimed that 78% of the issues the agent finds are resolved by the time the PR is merged.