AI Code Review - Claude Code + Gemini working together like a duet
npx claudepluginhub bokuhe/claude-duetAI code review with Gemini CLI - review, apply feedback, commit, and create PRs
AI Code Review Plugin - Claude Code + Gemini working together like a duet
A Claude Code plugin that enables two AIs to collaborate on code review, commit, and PR creation.
| Command | Description |
|---|---|
/duet:review | Gemini code review -> Apply feedback -> Commit |
/duet:pr | Gemini code review -> Apply feedback -> Commit -> Create PR |
# 1. Add the marketplace (one-time setup)
/plugin marketplace add bokuhe/claude-duet
# 2. Install the plugin
/plugin install duet@duet-marketplace
# Clone the repository
git clone https://github.com/bokuhe/claude-duet.git
# Add as local marketplace
/plugin marketplace add ./claude-duet
# Install the plugin
/plugin install duet@duet-marketplace
/plugin update duet@duet-marketplace
npm install -g @google/gemini-cli
gemini --version
gh --version
# After making code changes
/duet:review
Workflow:
git diff for pending changes/duet:pr
Workflow:
Review results are organized by priority:
| # | Severity | Category | Description |
|---|---|---|---|
| 1 | Critical | Security | SQL injection vulnerability |
| 2 | Warning | Logic | Missing null check |
| 3 | Nitpick | Style | Use const instead of let |
Gemini reviews in 3 phases:
You select which items to apply before any changes are made.
+-----------------------------------------------------------+
| /duet:review |
| |
| 1. git diff --> 2. gemini CLI --> 3. Parse feedback |
| | |
| v |
| 6. commit <-- 5. Apply fixes <-- 4. User selects |
+-----------------------------------------------------------+
+---------------------------------------------------------------+
| /duet:pr |
| |
| [ Same as above ] --> 7. git push --> 8. gh pr create |
+---------------------------------------------------------------+
duet/
├── .claude-plugin/
│ └── marketplace.json # Marketplace configuration
├── plugins/
│ └── duet/
│ ├── .claude-plugin/
│ │ └── plugin.json # Plugin metadata
│ └── commands/
│ ├── review.md # /duet:review command
│ └── pr.md # /duet:pr command
├── README.md
└── LICENSE
MIT License
Issues and PRs are welcome!
git checkout -b feature/amazing)git commit -m 'Add amazing feature')git push origin feature/amazing)