Review Earlier, Not Harder
Pull Request Hygiene in the Age of AI
I’ve been seeing pull requests containing 20,000, 30,000, and sometimes more than 40,000 lines of code. With AI-assisted development becoming commonplace, I expect we’ll see more of them.
There’s a growing assumption that PR size matters less because AI can handle the review. If AI can generate that much code, another AI should be able to review it. That sounds reasonable until you consider what happens when the implementation is built on a flawed assumption.
I’m concerned that we’re getting better at producing code faster than we’re getting at validating the decisions behind it.
The Cost of a Bad Foundation
Imagine a developer implementing a new subsystem. The first 1,000 lines establish the architecture, interfaces, abstractions, and patterns that everything else will depend on.
The developer continues building, perhaps with an AI coding agent, and another 40,000 lines follow. The code is consistent, the tests pass, and the implementation appears complete.
During review, someone familiar with the broader system points out a fundamental problem. Maybe the abstraction doesn’t fit the existing architecture. Maybe an important business requirement was misunderstood. Perhaps the team already has a pattern that would eliminate much of the new complexity.
The problem could have been corrected relatively easily when the implementation was 1,000 lines. Now that decision is embedded throughout the system. Fixing it could mean unwinding weeks of work, changing dozens of dependencies, or starting over.
We’ve all encountered systems where seemingly simple changes became difficult because of decisions made much earlier. AI allows us to accumulate those dependencies at an unprecedented pace.
A large PR doesn’t necessarily indicate poor engineering. Generated files, mechanical changes, and other low-risk modifications can produce enormous diffs. A few hundred lines of code can also introduce serious architectural problems. Size is still worth paying attention to because it tells us something about how much work has accumulated between opportunities for feedback.
When I see a 40,000-line PR introducing substantial new functionality, my first question is how much of the underlying design was validated before all that code was written.
AI Review Doesn’t Eliminate the Need for Collaboration
I’m a strong advocate for AI-assisted development and code review. These tools are useful for catching defects, identifying inconsistencies, examining test coverage, and navigating unfamiliar code. We should be using them throughout development.
AI can also identify architectural problems, particularly when given the right context. The challenge is ensuring that context is complete and that the assumptions behind the implementation are being questioned.
An AI reviewer may thoroughly examine an implementation against the requirements and architecture it was given. If those inputs are incomplete or incorrect, the review can reinforce the same mistakes that shaped the original implementation.
Human reviewers aren’t immune to that problem either. They bring their own assumptions and blind spots. Having other engineers involved introduces opportunities to challenge the direction from different perspectives.
Someone who owns a related service might recognize an integration problem. An architect may question whether a new abstraction belongs in the system. Another developer might know that a similar problem was solved six months ago and that the proposed implementation introduces unnecessary duplication.
I want AI handling as much of the routine analysis as it reasonably can. That gives us more time to discuss decisions that affect how the system will evolve.
A Pull Request Shouldn’t Be the First Conversation

We often treat opening a pull request as something that happens when the work is finished. The developer completes the implementation, gets the tests passing, cleans everything up, and requests a review.
By then, the author has invested considerable effort in the approach. Significant feedback can be frustrating to receive, even when it’s justified. Reviewers may hesitate to challenge architectural decisions because they know how much rework those suggestions could create.
I’d like us to get comfortable asking for feedback earlier, especially when implementing something new or establishing patterns that other code will follow.
GitHub’s Draft PR functionality is useful for exactly this kind of collaboration. A [WIP] convention can serve a similar purpose when Draft PRs aren’t available.
Suppose you’re building a new service with several operations that follow the same architectural pattern. Rather than implementing all of them before requesting review, consider opening a Draft PR once the first representative operation is working.
At that point, you can explain the direction you’re taking and ask whether it fits the existing architecture, whether the abstractions are appropriate, and whether you’ve overlooked a requirement that could fundamentally change the design.
These questions are far easier to address while the implementation is still small. The Draft PR also gives reviewers a place to see the actual code, understand the tradeoffs, and discuss alternatives.
The engineer doesn’t need to make the code production-ready just to have that conversation. They do need to explain what’s implemented, what’s incomplete, and what kind of feedback they’re requesting.
A Practical Workflow for Early Review
I’d like to make this a normal part of how we work without introducing an elaborate approval process. We already have the tools. The main change is when we ask for feedback and what we expect from each other.
Here’s a workflow I’d suggest for meaningful features, new services, architectural changes, or other work where an early decision could have significant downstream consequences.
1. Identify the decisions worth reviewing before implementation
When picking up a substantial feature, spend a few minutes identifying the decisions that will shape the implementation. These might include a new service boundary, changes to shared contracts, database design, integration patterns, or a significant departure from existing architecture.
If the approach is already established and well understood, there’s probably no need for a separate design discussion. If you’re introducing something that other code will depend on, identify who should be involved and what you want to validate.
A short description in the work item is often sufficient. For more consequential decisions, an ADR or design note may be appropriate. The amount of documentation should reflect the risk of the decision.
2. Open a Draft PR when the approach is visible in code
Implement enough to demonstrate the proposed direction. That might be a new interface with one concrete implementation, a database migration with its corresponding model, or a thin vertical slice through the relevant layers.
The goal is to give reviewers something specific to evaluate before the design is repeated throughout the system.
Open the PR as a Draft and include:
What I’m building: A brief description of the feature and its purpose.
Proposed approach: The important design decisions and why I chose them.
What’s implemented: Which portions are ready to examine and which remain incomplete.
Feedback requested: Two or three specific questions I’d like reviewers to answer.
Next steps: What I intend to build once the approach has been validated.
For example:
Draft: Opportunity Template Storage
I’ve implemented the initial storage abstraction and one operation using Azure Blob Storage. Before extending this across the remaining template operations, I’d appreciate feedback on whether the interface fits our existing service patterns and whether the error-handling approach is appropriate.
The implementation is incomplete. I’m specifically looking for design feedback at this stage, rather than a full code review.
This gives reviewers useful context and makes it clear what kind of response would help.
A Draft PR doesn’t automatically notify everyone whose input is needed. The author should explicitly request that feedback from the relevant engineer or technical lead, ideally with a reasonable expectation for when it’s needed.
3. Review the direction before expanding the implementation
At this stage, the reviewer should concentrate on the decisions that would be expensive to change later.
Are we following established patterns? Does the approach satisfy the intended requirements? Are we introducing unnecessary dependencies or abstractions? Is there a simpler solution already available?
The review can be brief. Sometimes a few comments are enough. Other times, a fifteen-minute conversation will resolve questions faster than a long exchange in GitHub.
The important outcome is a shared understanding of whether to proceed, adjust the approach, or investigate something further.
If an architectural concern remains unresolved, avoid building additional functionality on top of the disputed decision. Record the outcome of the discussion in the PR so the reasoning remains available to future reviewers.
This early feedback is separate from formal approval to merge. A reviewer might agree with the architectural direction while recognizing that the implementation still needs considerable work.
4. Continue in small, meaningful increments
Once the foundation has been reviewed, continue building in increments that are reasonably easy to understand and test.
Ideally, those increments become separate, cohesive PRs that can be merged safely. Feature flags, backward-compatible interfaces, and other incremental delivery techniques can help keep the main branch deployable while a larger feature is developed.
For example, a new integration might be delivered through a sequence of changes:
Establish the interface and basic implementation behind a feature flag.
Implement and test one complete operation.
Extend the implementation to additional operations.
Add remaining integration behavior and enable the feature when ready.
Each PR has a purpose reviewers can understand. The team also has opportunities to identify problems before they spread across the entire implementation.
Some changes can’t be divided cleanly into independently mergeable PRs. In those cases, keep the larger PR in Draft and request feedback at meaningful checkpoints as the implementation develops.
Avoid making a series of arbitrary PRs that simply split a large diff into smaller files or batches. The increments should reflect coherent decisions or functionality.
As a practical warning sign, if a PR is approaching a thousand lines of non-generated changes without anyone having reviewed its direction, it’s worth checking whether an earlier review would help. That isn’t a hard limit, and line counts alone shouldn’t determine whether a change is acceptable.
5. Use AI continuously, then request a focused human review
AI-assisted review should happen during implementation, ideally before requesting a colleague’s attention.
Use it to look for defects, inconsistent behavior, missing tests, unnecessary complexity, and deviations from established patterns. Where possible, have the reviewing agent examine the requirements and relevant architecture independently rather than relying entirely on the implementation author’s explanation.
The author still needs to inspect the diff, verify the tests, and determine whether the code actually delivers the intended behavior. Passing tests and favorable AI review results are useful evidence, though neither guarantees that the design or requirements are correct.
When the implementation is ready for formal review, update the PR description to reflect what was actually built. Resolve or clearly document outstanding questions, ensure the required CI checks pass, and mark the PR ready for review.
At that point, the human reviewer should have a manageable, coherent change to examine, along with a record of the important decisions already discussed.
6. Keep the feedback loop moving
Early feedback only works if someone responds.
I’d suggest we aim to acknowledge targeted design-review requests within one working day, even if the full discussion needs to happen later. That gives the author a chance to plan their work and prevents uncertainty from becoming an indefinite blocker.
Authors also need to be considerate of reviewers’ time. Avoid requesting a review on every intermediate commit. Ask when there’s a meaningful decision to validate or a cohesive increment ready to examine.
If the reviewer is unavailable, the author and technical lead should agree on an alternative rather than allowing the request to sit unanswered. The objective is to keep the team moving while catching consequential mistakes before they become expensive.
Learning to Show Unfinished Work
I suspect there’s another issue contributing to large, late-stage PRs.
Engineers don’t always feel comfortable showing incomplete work. There’s a natural desire to demonstrate competence by finishing something independently. We want our colleagues to see a polished implementation that works. Asking for feedback while we’re still figuring things out can feel like admitting we don’t know the answer.
I’ve experienced that feeling myself, and I suspect most engineers have at some point.
It’s worth challenging because knowing when to ask for feedback is one of the skills that comes with experience.
An experienced engineer understands that some decisions carry more risk than others. They recognize when they’re making assumptions, when there are competing approaches, and when the consequences of getting something wrong could be substantial. They also recognize that another engineer may have context they don’t.
I would much rather review an incomplete implementation and help validate the direction than review a finished subsystem and discover that we disagree with its foundations.
We need to make engineers comfortable having those conversations. That starts with how we respond when someone asks for feedback.
If a developer opens a Draft PR asking whether an abstraction makes sense, a review filled with comments about formatting, missing documentation, or unfinished edge cases isn’t particularly helpful. The developer already knows the implementation is incomplete. They’re asking us to evaluate a specific decision.
There’s a time for detailed implementation review. Early feedback should focus on the decisions that could affect the rest of the work.
Senior engineers and technical leads have an opportunity to set the example here. If we’re willing to share our own incomplete implementations, explain what we’re uncertain about, and ask for input, it becomes easier for everyone else to do the same.
I’d also like us to be more deliberate about recognizing this behavior. When someone catches a design problem early because they sought feedback, that deserves acknowledgment. The value is in the work we avoided having to redo, even if that doesn’t show up in a sprint report or a commit history.
Reviewers Have a Part to Play
Large PRs are difficult to review thoroughly, even with AI assistance. They require reviewers to understand a substantial amount of context, follow interactions across multiple components, and distinguish important design decisions from routine implementation details.
Review fatigue is real. As the amount of code increases, it becomes harder to maintain the same level of attention throughout the review.
There’s also a practical cost to delayed feedback. Developers continue working while waiting for reviews. Other changes land in the meantime, merge conflicts accumulate, and the original author may have moved on to something else by the time questions arrive.
We can help avoid these problems by establishing clear expectations around review requests.
A Draft PR seeking architectural input deserves a response appropriate to that stage of development. A completed PR requesting merge approval deserves a more comprehensive evaluation. A small, routine fix may only need a straightforward review.
Reviewers should also feel comfortable asking authors to break up changes that have grown beyond a reasonable review scope. When that’s impractical, the author and reviewer can agree on a review strategy, such as examining the architectural foundation first and then walking through the remaining functionality by component.
Technical leads should help coordinate this, particularly when the feedback requires input from someone with specific architectural or domain knowledge. We shouldn’t leave engineers guessing about who can help or whether they’re expected to proceed without a response.
What We Choose to Value
AI has made it possible to produce an impressive amount of code in a short period of time. That’s exciting, particularly when we’re working under delivery pressure.
It can also distort how we think about productivity.
A developer generating an entire subsystem in a day makes for an impressive demonstration. An engineer who spends an hour discussing a design and avoids several days of unnecessary implementation has also made a significant contribution, though it’s much harder to measure.
Our delivery processes don’t always recognize that difference.
When we primarily focus on completed stories, implementation speed, and individual output, we create an incentive to finish work independently. Taking time to ask for feedback can feel like slowing down, especially when AI makes it possible to keep generating code.
I’d like us to give more weight to the engineering decisions that help teams deliver sustainably. That includes choosing simpler designs, avoiding unnecessary complexity, catching problems early, and keeping changes understandable for the people who will maintain them.
We don’t need to introduce a complicated process to start improving. For the next substantial feature, identify the decisions that will shape the implementation. Open a Draft PR when there’s enough code to demonstrate the approach, ask for specific feedback, and use that conversation to guide the remaining work.
Pay attention to what happens. If early reviews identify architectural problems that would otherwise have surfaced much later, share those examples. If developers are waiting too long for feedback, address the bottleneck. If we’re splitting changes so aggressively that reviews become administrative overhead, adjust the approach.
I’d much rather spend twenty minutes discussing the first 1,000 lines than spend several days untangling the next 40,000.


Discussion about this post