U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: Simon Glass <sjg@chromium.org>
Cc: U-Boot Mailing List <u-boot@lists.denx.de>,
	Michal Simek <michal.simek@amd.com>
Subject: Re: AI-assisted review
Date: Fri, 15 May 2026 16:07:58 -0600	[thread overview]
Message-ID: <20260515220758.GM1858239@bill-the-cat> (raw)
In-Reply-To: <CAFLszTjnL6rn_mTA+jhcrRLF0yEtN4FVwTeGGy9GeGbgdB9fYw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1992 bytes --]

On Fri, May 15, 2026 at 03:03:21PM -0600, Simon Glass wrote:

> 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.

And the big thing for now is that since we as a project do not yet have
an AI policy aside from "please don't". One of the points I was making
on the call is that there's a difference in value between "Human
reviewed it, looks fine" and "Human spent some tokens, agent didn't see
any problems".

And I know several other people have been doing at least first pass
reviews with various agent-tools, it's just no one else has been posting
reviews at your scale. And lessons learned from other projects is that
the prompts are more important than whatever wrapper around the agent
one is using.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

  reply	other threads:[~2026-05-15 22:08 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-15 21:03 AI-assisted review Simon Glass
2026-05-15 22:07 ` Tom Rini [this message]
2026-05-18  8:55   ` Michal Simek
2026-05-18 15:58     ` Tom Rini
2026-05-25 14:03       ` Simon Glass
2026-05-25 14:11         ` Josh Law
2026-05-25 14:21           ` Tom Rini
2026-05-25 14:25             ` Josh Law
2026-05-25 14:27               ` Tom Rini
2026-05-25 14:29                 ` Josh Law
2026-05-25 14:39                   ` Tom Rini
2026-05-25 14:41                     ` Josh Law
2026-05-26  6:04                     ` Krzysztof Kozlowski
2026-05-26 14:18                       ` Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260515220758.GM1858239@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=michal.simek@amd.com \
    --cc=sjg@chromium.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox