Add guidelines and tooling for AI-assisted code review of DPDK
patches.
AGENTS.md provides a two-tier review framework: correctness bugs
(resource leaks, use-after-free, race conditions) are reported at
>=50% confidence; style issues require >80% with false positive
suppression. Mechanical checks handled by checkpatches.sh are
excluded to avoid redundant findings.
The analyze-patch.py and review-doc.py scripts support multiple AI
providers (Anthropic, OpenAI, xAI, Google) with mbox splitting,
prompt caching, direct SMTP sending, and token usage tracking with
optional cost estimation.
v15 - reflow AGENTS per doc guidelines
- reduce redundancy in AGENTS (i.e don't overlap other tools)
- move scripts to devtools/ai
- move common code from scripts to one file
- incorporate AI and human reviews
Stephen Hemminger (7):
doc: add AGENTS.md for AI code review tools
devtools: add common infrastructure for AI review scripts
devtools: add multi-provider AI patch review script
devtools: add compare-patch-reviews.sh for multi-provider analysis
devtools: add multi-provider AI documentation review script
doc: add AI-assisted patch review to contributing guide
MAINTAINERS: add section for AI review tools
AGENTS.md | 1826 ++++++++++++++++++++++++
MAINTAINERS | 6 +
devtools/ai/_common.py | 246 ++++
devtools/ai/analyze-patch.py | 1330 +++++++++++++++++
devtools/ai/compare-patch-reviews.sh | 306 ++++
devtools/ai/review-doc.py | 1013 +++++++++++++
doc/guides/contributing/new_driver.rst | 2 +
doc/guides/contributing/patches.rst | 59 +
doc/guides/rel_notes/release_26_07.rst | 5 +
9 files changed, 4793 insertions(+)
create mode 100644 AGENTS.md
create mode 100644 devtools/ai/_common.py
create mode 100755 devtools/ai/analyze-patch.py
create mode 100755 devtools/ai/compare-patch-reviews.sh
create mode 100755 devtools/ai/review-doc.py
--
2.53.0