AI-assisted review
Simon Glass
sjg at chromium.org
Fri May 15 23:03:21 CEST 2026
Hi,
There was a query on the call this week about whether I am doing
AI-assisted code review. As I said on the call: yes. Here is a brief
description of how it works.
It is built into Patman (on the Concept tree) with a new 'patman
review' command. You give it the series name / number, or perhaps a
patch name/number and it applies the patches to a new branch, does a
review then adds its comments to its database.
A '-d' flag can be used to create draft emails in Gmail (sorry, it
doesn't support other email programs yet). You then check and update
the emails and send them (or delete them). I am not an expert in
handling the 'user voice' part of AI, but have made an attempt to make
it follow any provided configuration, as well as to scan recent
reviews to actually create to create a voice.
Obviously this is very rudimentary and could be expanded considerably.
But the mere fact that it creates draft emails is a win for me, even
if I ultimately delete or rewrite most of the comments. I can imagine
10 different ways to improve it to be more useful.
I wrote a blog post about it if you want more details, or you can ask me here.
I am very interested in hearing how others are using these new tools
for code review.
Regards,
Simon
More information about the U-Boot
mailing list