[PATCH v14 0/6] Add AGENTS.md and scripts for AI code review
Stephen Hemminger
stephen at networkplumber.org
Tue Apr 14 23:08:37 CEST 2026
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.
v14 - AGENTS.md: add SPDX license header and copyright
- AGENTS.md: fix misleading rte_mbuf rte_malloc example
- AGENTS.md: add rte_zmalloc_socket guidance for queue buffers
- analyze-patch: exit code mapping
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 | 2170 ++++++++++++++++++++++++
MAINTAINERS | 8 +
devtools/analyze-patch.py | 1509 ++++++++++++++++
devtools/compare-reviews.sh | 263 +++
devtools/review-doc.py | 1184 +++++++++++++
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, 5200 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
More information about the dev
mailing list