stacked PRs for agent-scale review
GitHub ships stacked PRs to GA with atomic merge, VS Code support, and gh stack CLI GitHubTL;DW
- Stacked PRs now generally available on all github.com plans; repos using stacks see 9% increase in merged code and 5% improvement in time to merge.
- GH Stack CLI handles complex Git operations including cascading rebases; designed for agents and AI swarms to execute in parallel work trees.
- Stack merge requires not only current PR to be green but all PRs below it; blocks upstack PRs if lower PRs fail CI or lack approval.
- Keyboard shortcuts (Vim-like) navigate between stack layers during code review; dedicated stack link provides bird's-eye view of all PRs, CI status, and reviews.
- Auto-merge now available for stacked PRs—watches entire group and merges atomically once all PRs ready, coordinating multiple changes automatically.
- Branch protection rules and CI workflows from merge target (e.g., main) automatically apply to all PRs in stack regardless of intermediate targets.
- VS Code integration enables viewing stacked PR statuses, switching branches, and resolving conflicts during cascading rebases natively in editor.
- Atomic merge operations allow merging multiple stacked PRs as single transaction with single push; retargets and rebases upstack PRs automatically.
- Stack rebase ensures linear commit history across all branches; available via CLI, Copilot app, VS Code, and github.com with signed commits.
- Monorepo full-stack changes (database, API, frontend) can split into separate PRs by code ownership group, enabling parallel review and faster approval.
TL;DW
- Stacked PRs now generally available on all github.com plans; repos using stacks see 9% increase in merged code and 5% improvement in time to merge.
- GH Stack CLI handles complex Git operations including cascading rebases; designed for agents and AI swarms to execute in parallel work trees.
- Stack merge requires not only current PR to be green but all PRs below it; blocks upstack PRs if lower PRs fail CI or lack approval.
- Keyboard shortcuts (Vim-like) navigate between stack layers during code review; dedicated stack link provides bird's-eye view of all PRs, CI status, and reviews.
- Auto-merge now available for stacked PRs—watches entire group and merges atomically once all PRs ready, coordinating multiple changes automatically.
- Branch protection rules and CI workflows from merge target (e.g., main) automatically apply to all PRs in stack regardless of intermediate targets.
- VS Code integration enables viewing stacked PR statuses, switching branches, and resolving conflicts during cascading rebases natively in editor.
- Atomic merge operations allow merging multiple stacked PRs as single transaction with single push; retargets and rebases upstack PRs automatically.
- Stack rebase ensures linear commit history across all branches; available via CLI, Copilot app, VS Code, and github.com with signed commits.
- Monorepo full-stack changes (database, API, frontend) can split into separate PRs by code ownership group, enabling parallel review and faster approval.
Stacked PRs let teams break large diffs into dependent chains that review in parallel and merge atomically. Repos using the feature show 9% higher merged code volume and 5% faster merge times; new additions include auto-merge for entire stacks and git worktree support for parallel agent work.
