Fixing the PR Bottleneck

Pull requests have always been a bottleneck, and today the situation has become even worse. Agents generate changes much faster than humans can review them.
Let's check what Matt Pocock recommends doing about that in his new talk Fixing the PR Bottleneck.

First of all, he suggests using a three-layer code review approach:
1. Automated checks: linting, type checking, testing.
2. Automated review: agents that enforce coding standards.
3. Human review.

The main goal is to make human review faster by relying on the first two layers. And to make automated reviews effective, you need to teach your agents your codebase design rules: how the code is structured, how to organize modules, how to write tests properly, etc.

Some recommendations on how to organize the process:
🔸 Keep codebase design rules separate. Describe them in a CODING_STANDARD.md file, not in AGENTS.md, and run the review in a separate session.
🔸 Don't outsource automated code review. Generic code review doesn't work well in practice. It produces too many false positives.
🔸 Automated reviewers should fix issues themselves. Agent should not create review comments on PRs and expect human to read them, it should provide fixes before human review.
🔸 Some PRs are more important than others. Categorize them by blast radius and include this information in the PR.
🔸 Run retrospectives regularly. You shouldn't have to leave the same comment twice. Teach your agents and incorporate this knowledge into your coding standards.

There is definitely a lot to think about how modern code review should be organized.

I personally liked the idea of having a code review agent fix issues instead of leaving comments for humans to handle. Anyway an engineer will just ask another agent to fix them first. So there is no need for additional human intervention here. I'll definitely try this in my teams.

Also, Matt has a pretty popular GitHub repository with skills. There are a lot of useful engineering skills there that you can try out with your own team.

#ai #engineering #codereview
120005

24

1h

72

12h

102

24h

114

48h

4.17%

ER

First 24 hours
HourGrowthTotalReactions
09:54+1h+2424+1
10:54+2h+4280
11:54+3h+5330
12:54+4h+437+1
13:54+5h+4410
14:54+6h+5460
15:54+7h+4500
16:54+8h+5550
17:54+9h+4590
18:54+10h+463+1
19:54+11h+5680
20:54+12h+4720
21:54+13h+3750
22:54+14h+2770
23:54+15h+3800
00:54+16h+2820
01:54+17h+3850
02:54+18h+287+1
03:54+19h+3900
04:54+20h+2920
05:54+21h+3950
06:54+22h+2970
07:54+23h+31000
08:54+24h+21020
By day
DateGrowthTotalReactions
Mon, Oct 19+102102+4
Tue, Oct 20+12114+1
Wed, Oct 2101140
Thu, Oct 22+11150
Fri, Oct 2301150
Sat, Oct 2401150
Sun, Oct 2501150
Mon, Oct 26+11160
Tue, Oct 2701160
Wed, Oct 2801160
Thu, Oct 29+11170
Fri, Oct 3001170
Sat, Oct 3101170
Sun, Nov 101170
Mon, Nov 2+11180