claude-review

A command that asks Claude to review the pull request for the current Git branch. A pull request is a proposed set of code changes submitted for review before merging.

In plain words
What is it for?
Use it to locate the open pull request for a branch and trigger a Claude code review.
Why use it?
It avoids manually finding the matching pull request and writing the review request comment.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/bengous/claude-code-plugins/claude-review
Clone the repo
git clone --depth 1 https://github.com/bengous/claude-code-plugins
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 400 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00010 $0.00400
Opus 5 $0.00005 $0.00200
Sonnet 5 $0.00002 $0.00080
Haiku 4.5 $0.00001 $0.00040

Measured 2d ago against content hash 0ec8894542f1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

claude-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

git-tools/commands/claude-review.md · 57 lines

What it actually says

Trigger Claude Code Review

This command triggers a Claude review on the pull request associated with your current branch.

Current Context

  • Current branch: !git branch --show-current
  • Upstream branch: !git rev-parse --abbrev-ref @{upstream} 2>/dev/null || echo "none"

Your Task

  1. Get the current branch name using git branch --show-current

  2. Determine the PR branch name:

    • Try git rev-parse --abbrev-ref @{upstream} 2>/dev/null
    • If upstream exists (format: origin/branch-name), extract the branch name part (after /)
    • If no upstream, use the current branch name
  3. Search for open PRs:

    gh pr list --head "<branch-name>" --state open --json number,title
    
  4. Handle the results:

    • No PRs found: Inform user no open PR exists for this branch
    • Multiple PRs found: List them with numbers and titles, ask which one
    • Exactly one PR: Proceed to step 5
  5. Post the review trigger comment:

    gh pr comment <pr-number> --body "@claude review"
    
  6. Get and display the PR URL:

    gh pr view <pr-number> --json url --jq '.url'
    
  7. Confirm to user with PR number and URL

Error Handling

If any gh command fails:

  • Report the command that failed
  • Show the error message
  • Suggest checking gh auth status if it looks like an auth issue
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 57 lines · 10 tokens per session scan A 0ec8894542f1

Subscribe to this mod's changes

claude-review is a command published in the GitHub repository bengous/claude-code-plugins (4 stars, last pushed 3d ago), licensed MIT. It adds 10 tokens to every session and 400 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.