Automated code review for Bitbucket Cloud pull requests using multiple specialized agents with confidence-based scoring.
Forked from Anthropic's official code-review plugin and adapted for Bitbucket Cloud REST API.
/plugin marketplace add yoonjong12/bitbucket-code-review
/plugin install bitbucket-code-review@bitbucket-code-review
Set these environment variables (in .env or shell):
BITBUCKET_EMAIL="your@email.com"
BITBUCKET_API_TOKEN="ATATTxxx..."Create an app password at: https://bitbucket.org/account/settings/app-passwords/
Required scopes: pullrequest:read, pullrequest:write
/bitbucket-code-review:code-reviewThe plugin will:
- Check PR eligibility (not closed, not already reviewed)
- Collect CLAUDE.md files for compliance checking
- Launch 5 parallel review agents (CLAUDE.md audit, bug scan, git history, prior PR comments, code comments)
- Score each finding (0-100 confidence)
- Post filtered results (score >= 80) as a PR comment
| Feature | GitHub (original) | Bitbucket (this fork) |
|---|---|---|
| CLI tool | gh |
curl with REST API v2.0 |
| Auth | GITHUB_TOKEN |
Basic auth (BITBUCKET_EMAIL:BITBUCKET_API_TOKEN) |
| Code links | github.com/.../blob/{sha}/file#L10-L15 |
bitbucket.org/.../src/{sha}/file#lines-10:15 |
| PR interaction | gh pr view/comment |
Bitbucket REST API endpoints |
MIT