[PATCH v13 0/6] Add AGENTS.md and scripts for AI code review

Stephen Hemminger
2026-04-02T19:46:25Z

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.

v13 - incorporate review feedback
fix bugs found by AI self review
add release note

Stephen Hemminger (6):
doc: add AGENTS.md for AI code review tools
devtools: add multi-provider AI patch review script
devtools: add compare-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 | 2162 ++++++++++++++++++++++++
MAINTAINERS | 8 +
devtools/analyze-patch.py | 1603 ++++++++++++++++++
devtools/compare-reviews.sh | 263 +++
devtools/review-doc.py | 1341 +++++++++++++++
doc/guides/contributing/new_driver.rst | 2 +
doc/guides/contributing/patches.rst | 59 +
doc/guides/rel_notes/release_26_07.rst | 5 +
8 files changed, 5443 insertions(+)
create mode 100644 AGENTS.md
create mode 100755 devtools/analyze-patch.py
create mode 100755 devtools/compare-reviews.sh
create mode 100755 devtools/review-doc.py

--
2.53.0