Run full AI code review cycle on current PR branch
Runs AI-powered code review on PR branches and iteratively fixes or rebuts issues.
/plugin marketplace add Shavakan/rami-actions/plugin install rami-code-review@ramiFix or rebutt all review issues until clean. Max 5 iterations.
gh CLI only for PR metadata (branch name lookup)$ARGUMENTS
Before starting, verify authentication status by calling any Rami tool.
If you receive an authentication error (401, "not authenticated", or similar):
mcp__plugin_rami-code-review_rami__login()user_code and verification_uri to the userWith PR URL argument:
BRANCH=$(gh pr view <PR_URL> --json headRefName -q '.headRefName')
git fetch origin "$BRANCH" && git checkout "$BRANCH" && git pull origin "$BRANCH"
Without PR URL:
REMOTE=$(git remote get-url origin)
BRANCH=$(git branch --show-current)
Then: mcp__plugin_rami-code-review_rami__get_current_branch_pr(remote_url=$REMOTE, branch=$BRANCH)
| Result | Action |
|---|---|
status: success | Use returned pr_url |
status: not_found | Stop: "No PR found. Push branch and create PR first." |
status: error | Stop: Report error |
mcp__plugin_rami-code-review_rami__get_review_results(pr_url)
Exit if issue_count == 0.
mcp__plugin_rami-code-review_rami__get_fix_prompt(pr_url, issue_index) → Get instructionsmcp__plugin_rami-code-review_rami__rebutt(pr_url, issue_index, author_reply="<evidence>")
verdict: valid → Dismissedverdict: invalid → Must fixverdict: partial → Fix valid partgit add -A && git commit -m "fix: address rami review feedback" && git push
Repeat Phase 2. Stop at 5 iterations or clean review.
Summarize: iterations, issues fixed, rebuttals (with verdicts), final status.