NIPA AIR Logo Running AI Reviews Locally

Review Prompts

The AI reviews on netdev (BPF and some other subsystems) use LLM review prompts developed by Chris Mason:

github.com/masoncl/review-prompts

Clone this repository to get the latest prompts, and ask your favorite LLM to use them to review your code.

The exact prompt we use on netdev is:

Current directory is the root of a Linux Kernel git repository. Read the prompt from review-prompt/prompt.md. Using the prompt, do a deep dive regression analysis of the HEAD commit. Use commit range <base>..<head> for the false-positive-guide.md section.

Where <base>..<head> should be replaced by a real git commit hash range.

Output Format

The review-prompt instructs the LLM to write its findings to a file called review-inline.txt in the repository root. This file contains the regression analysis formatted for email replies.

MCP Tools

Chris has also developed a MCP integration which indexes commits and the code to make the LLMs burn fewer tokens fetching context. (semcode)

See the README of the review prompt repo for more information.

Getting Help

This page is very rudimentary. For any questions and comments please reply to a thread on the mailing list which brought you here and CC Chris Mason <clm@meta.com>.