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- Gemini CLI installed and configured (requires Node.js 20+)
npm install -g @google/gemini-cli gemini --version
- Git repository initialized
- (For PR creation) GitHub CLI installed
gh --version
# After making code changes
/duet:reviewWorkflow:
- Check
git difffor pending changes - Request code review via Gemini CLI
- Display feedback in a structured table
- Select which suggestions to apply
- Apply selected feedback
- (Repeat if needed)
- Create commit
/duet:prWorkflow:
- Perform review + commit process above
- Push to remote branch
- Create GitHub PR
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:
- Intent & Risk - What the changes do, risk level
- Critical Audit - Security, Logic, Performance issues
- Code Quality - Style and improvements
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!
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing) - Open a Pull Request