[PATCH v9 1/6] doc: add AGENTS.md for AI code review tools
Stephen Hemminger
stephen at networkplumber.org
Thu Feb 19 19:04:51 CET 2026
On Wed, 18 Feb 2026 09:59:21 -0500
Aaron Conole <aconole at redhat.com> wrote:
> Much of the following sections can be written as part of checkpatch,
> which means we don't need to spend compute resources with the AI on it.
> For example, telling the AI that source files need to begin with SPDX
> identifiers, line lenghts, tag format order, tag parsing, etc. The
> downside is that if we ask the AI to *generate* code, then it won't
> follow these rules; but when we ask AI to *review* the code, it takes
> fewer tokens to submit and we can let the AI do the thing it really
> shines at - recognizing subtle patterns, rather than stuff we can write
> a python script to do.
Also, the script now has many checkpatch ish things that are not
in current script (and would bloat it). Examples are:
* using const on function pointer tables
* using rte_stdatomic
* not using rte_smp_mb
* using bool for flag values
More information about the dev
mailing list