DEV Community

Cover image for How to deal with long vibe-coded PRs?
Edward Izgorodin
Edward Izgorodin

Posted on

How to deal with long vibe-coded PRs?

A long vibe-coded PR is reviewed the way you review large pull requests in general, with one more demand: the person who opened it must understand every line. Google's code review guide lets a reviewer send it back for size alone: "Note that reviewers have discretion to reject your change outright for the sole reason of it being too large."

The question on Hacker News in October 2025 was about a pull request of about 9,000 lines and 63 new files, including a DSL parser, for a service that was, in theory, relatively simple. I would not start reading that diff. Google's guide for reviewers opens with a broad look at the change and its description, and if the change should not have happened at all, the reviewer replies right away and says why. When a change is too big to find its main parts, the advice is to "ask the developer what you should look at first, or ask them to split up the CL into multiple CLs."

I would ask the author for a stack of small pull requests. A stack lets the author keep building on top while the lower layers are still in review. That is looser than I run my own work, but for a branch that is already too big I accept the trade, because the alternative is one reviewer reading 9,000 lines.

Splitting a branch that is already too big

Google's guide for authors does not pretend this is cheap: "It can be a lot of work to split up a change after you've already written it". GitHub, Graphite, GitLab and plain git each document a way to cut a branch apart, and which one fits depends mostly on where the repository lives.

GitHub's stacked pull requests start from branches that already line up: "GitHub recognizes the chain and shows a recommendation banner offering to turn them into a stack." The gh stack modify command restructures a stack interactively, with operations to insert, fold, move, drop and rename branches. All branches of a stack must be in the same repository, so branches in a contributor's fork do not qualify. For a branch that grew along the way, GitHub's tutorial on stacking AI-generated code has a prompt that fits: "This branch is getting large. Suggest how it could be split into two independently reviewable layers."

Graphite's gt split cuts the current branch into two or more branches, by commit, by hunk or by file. The branch name of a GitHub pull request does not change, so Graphite asks you to give the original branch's name to the new branch that should stay attached to the open pull request. GitLab's stacked diffs turn each saved diff into a merge request, and "Reviewers can review and merge the earlier merge requests while you keep building on top of them." That command came out in v1.42.0 of the GitLab CLI as an experiment. In plain git, the --update-refs option of git rebase force-updates every branch that points to a commit being rebased, except branches checked out in a worktree.

That exception matters when agents work in worktrees, as mine do. In June one of my repositories had 24 worktrees and about 60 stranded commits: agents never cleaned up a worktree after its pull request merged, and the setting that deletes a merged head branch was off. I turned the setting on and added a small script. One mode pins stranded work to named rescue branches and deletes nothing; another removes only worktrees whose pull requests have merged and that hold nothing unpushed. The second runs at the start of every session in that repository. With agents, every branch of a stack can end up in a worktree of its own, so I would set up the cleanup before the split, not after.

What the author owes the reviewer

For the demand to understand every line I would not write a policy of my own. Three open source projects already have one, and Ghostty puts it most directly: "If you can't explain what your changes do and how they interact with the greater system without the aid of AI tools, do not contribute to this project." Its rules cover outside contributions, and its maintainers are exempt from them. LLVM asks contributors to read and review everything a model generated before they ask others to review it, and to be "able to answer questions about their work during review." The Linux kernel's guidance, written for patches, keeps one tag for people: "AI agents MUST NOT add Signed-off-by tags." Of the three, Ghostty's sentence is the one I would copy into a contribution guide as it stands, because a reviewer can test it with one request: explain this change without the tool.

GitHub's stacking tutorial asks the same of an author who works with an agent: "Reviewers should receive changes you already trust." It also has a test for each layer that I would give to any author: "If a layer feels like it needs a long description to review, it is probably too big."

An AI review can take the first pass, and I would keep it on the layers, where the change is small, because GitHub's application card for Copilot agents says "Copilot may not identify all of the problems that are present in code, especially where changes are large or complex." It also costs more on a big change: for Copilot code review GitHub says consumption generally increases with pull request size, and Anthropic says a repository's average cost for Claude Code Review moves with the size of its pull requests.

If a change has to stay in one piece, Google suggests you "get consent from your reviewers in advance to review a large CL, so they are warned about what is coming." Its reviewers then look at the major parts first, sometimes the tests before the main code, and a major design problem gets its comments right away, before the rest of the change is read.

Google's own example of too large: "A 200-line change in one file might be okay, but spread across 50 files it would usually be too large." GitHub has limits of its own on what a pull request page shows: 20,000 loadable lines or 1 MB of raw diff data for the diff of a pull request, and 300 files for a single diff, and "anything exceeding the limit is not shown."

When the pull request comes from outside your team, GitHub can slow the flow itself. In a public repository you can cap how many pull requests a user without write access has open at the same time, and a temporary interaction limit can hold back users who have not contributed to the default branch before. LLVM gives its maintainers a label for a pull request that is off track, extractive, "to help other reviewers prioritize their review time."

I compared the tools that help a person read a large diff by hand in a separate piece on Medium.

I read these pages again on 28 November 2026. GitLab's page still says the stack command came out as an experiment, so check it before you build a process on it.

Top comments (0)