we_are_coded.by CODE · The world, decoded
БГ
GitHub

GitHub slices the giant AI pull request into layers: gh-stack turns 1700 lines into a reviewable ladder

GitHub EngineeringBuilders

Agents write code faster than a person can review it - and it all lands in one giant pull request. GitHub released gh-stack: a command-line extension that splits the work into ordered, independently reviewable layers. A change in the middle propagates up the stack on its own.

In short
  • gh-stack: a new CLI extension from GitHub that arranges a large change into a stack of small, independently reviewable pull requests (04.08).
  • The example from the post: a feature that was over 1720 lines as one PR becomes four layers - data, API, chat, interface; a change in the middle layer cascades rebase-by-rebase to the layers above.
  • Review: top-down for context, bottom-up for approval. Install: gh extension install github/gh-stack.
Checked on5 August 2026Responsible editorTsvetelin IvanovHow we workMethod · Corrections

If you've ever taken code from an agent, you know the picture: the task is one thing, and the diff is two thousand lines across eight files. Technically it's all there. Practically there's nowhere to grab hold of it.

The facts: on 4 August GitHub published an engineering write-up and a tool - gh-stack, an extension for the gh command line (gh extension install github/gh-stack). The idea: instead of one big pull request, the work is arranged into a stack of small, logically sequential, independently reviewable layers. Commands: init, add, push, submit, rebase, sync. GitHub's example: product search in a shopping assistant, which as a single PR ran over 1720 lines, splits into four layers - the data catalog, the search API, the chat connection, the interface. Review runs top-down for context and bottom-up for approval; a change in a middle layer cascades to the dependent ones. GitHub cites a forecast of a 50% productivity gain from agents across the whole development cycle by 2028. Source: github.blog, 04.08.2026.

This is where the craft shows, and the admission along with it. When GitHub builds a tool for slicing up AI diffs, that's an official admission of where the bottleneck has moved - no longer writing, but reading. The only trust pipeline the craft has carried for decades is one person reviewing another's work - piece by piece, at a size the brain can carry.

The good thing about the design: the stack stands on ordinary branch-based work and ordinary pull requests, request-by-request. Nothing new to learn. The same git, arranged with discipline. Tools like that survive.

Code got cheaper. Review didn't.

In our AI workflows you plan the layers before the agent sits down to write, not after it hands you the pile. You cut it into steps right in the brief - then the stack comes out on its own, and review stops being a punishment.

The visual is generated code art. No third-party images.
Follow usFacebookLinkedIn
Official primary sources
→GitHub Engineering - Turn one giant AI-generated pull request into a reviewable stack, 04.08.2026
Original: https://wearecoded.com/en/articles/github-gh-stack-pr-na-plastove.html
ShareFacebookXLinkedInTelegramWhatsApp
← Back to all news