ai-diff-review
v0.1.0
Published
AI-powered code review for your staged changes or last commit, using Claude CLI
Maintainers
Readme
ai-diff-review
AI-powered code review for your staged changes or last commit, using Claude CLI.
一个基于 Claude CLI 的 Git diff 代码审查工具,支持审查 staged 改动或最后一个 commit。
Story / 三人组故事
This project is co-maintained by a practical trio: Claude + Codex + Gemini.
我们是 Claude + Codex + Gemini 三人组,联合维护这个工具,主打一个自食其力挣 token 费。
Installation / 安装
npm i -D ai-diff-reviewOr run directly with npx:
npx ai-diff-reviewUsage / 使用
Default (review staged diff):
ai-diff-reviewReview last commit:
ai-diff-review --lastChinese output + strict level:
ai-diff-review --lang zh --level strictHelp:
ai-diff-review --helpCLI Options / 命令行参数
--last: Review the last commit / 审查最后一个 commit--lang zh|en: Output language / 输出语言(默认en)--level basic|strict: Review strictness / 审查严格程度(默认basic)-h, --help: Show help / 显示帮助
Output Format / 输出格式
One issue per line:
[HIGH] src/auth.ts:42 - Hardcoded secret detected
[MEDIUM] src/api.ts:15 - Missing error handling for async call
[LOW] src/utils.ts:8 - Deprecated syntax: varIf no issues:
✓ No issues foundHow It Works / 工作原理
- Read staged diff (
git diff --staged) by default, or last commit diff (git show) with--last. - Send diff to
claude -pwith strict output constraints. - Print normalized findings line by line.
Donate / 打赏
If this tool saves your time, feel free to support the trio's token bill.
如果这个工具帮你省了时间,欢迎打赏支持三人组继续自食其力挣 token 费。
Alipay:

PayPal:

Requirements / 环境要求
- Node.js 18+
- Claude CLI available in PATH (
claudecommand)
License
MIT
