suggest-reviewers

suggest-reviewers is a command for Claude Code from wangke19/gemini-ai-helpers. It costs 14 tokens per session (3,088 once invoked), scanned A, a copy of suggest-reviewers, Apache-2.0.

A pull-request helper that ranks possible reviewers using the changed files, Git blame history, and OWNERS files. Git blame shows who last changed each line, while OWNERS files record code ownership.

In plain words
What is it for?
Use it before creating or updating a pull request to find people familiar with the modified code.
Why use it?
It makes reviewer selection easier in large repositories where code ownership is spread across many developers.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Use it before creating or updating a pull request to find people familiar with the modified code.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/wangke19/gemini-ai-helpers/suggest-reviewers
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.

Clone the repo
git clone --depth 1 https://github.com/wangke19/gemini-ai-helpers

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for suggest-reviewers

README.md
[![agentmods](https://agentmods.dev/badge/commands/wangke19/gemini-ai-helpers/suggest-reviewers/github.svg)](https://agentmods.dev/commands/wangke19/gemini-ai-helpers/suggest-reviewers)
Your own site
<a href="https://agentmods.dev/commands/wangke19/gemini-ai-helpers/suggest-reviewers"><img src="https://agentmods.dev/badge/commands/wangke19/gemini-ai-helpers/suggest-reviewers/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for suggest-reviewers

Your own site · 80×15
<a href="https://agentmods.dev/commands/wangke19/gemini-ai-helpers/suggest-reviewers"><img src="https://agentmods.dev/badge/commands/wangke19/gemini-ai-helpers/suggest-reviewers.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,088 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 97% copy Near-identical to another mod 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.1 $0.00014 $0.03088
Opus 5 $0.00007 $0.01544
Sonnet 5 $0.00003 $0.00618
Haiku 4.5 $0.00001 $0.00309

Measured 8d ago against content hash b947960d891a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

suggest-reviewers 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 8d 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.

Origin

This is a copy

97% identical to suggest-reviewers — 8 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

extensions/git/commands/suggest-reviewers.md · 357 lines

How it starts

The opening of the file, as written. The whole thing — 357 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Name

git:suggest-reviewers

Synopsis

/git:suggest-reviewers [base-branch]

Description

The git:suggest-reviewers command analyzes changed files and suggests the most appropriate reviewers for a pull request. It works with both committed changes on feature branches and uncommitted changes (even on the main branch), making it useful before you've created a branch or made any commits. It prioritizes developers who have actually contributed to the code being modified, using git blame data as the primary signal and OWNERS files as supporting information.

The command performs the following analysis:

  • Identifies all files changed (both committed and uncommitted changes)
  • Runs git blame on changed lines to find recent and frequent contributors
  • Searches for OWNERS files in the directories of changed files (and parent directories)
  • Aggregates and ranks potential reviewers based on:
    • Frequency and recency of contributions to modified code (highest priority)
    • Presence in OWNERS files (secondary consideration)
  • Outputs a prioritized list of suggested reviewers

This command is particularly useful for large codebases with distributed ownership where choosing the right reviewer can be challenging. You can use it at any stage of development - from uncommitted local changes to a complete feature branch ready for PR.

Implementation

Step 1: Determine the base branch

  • If base-branch argument is provided, use it
  • Otherwise, detect the main branch (usually main or master)
  • Verify the base branch exists
# Detect main branch if not provided
git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@'

Step 2: Get changed files

  • Determine the current branch name
  • Detect if we're on the base branch (main/master) or a feature branch
  • Detect if there are uncommitted changes (staged or unstaged)
  • List all modified, added, or renamed files based on the scenario
  • Exclude deleted files (no one to blame)

Scenario detection:

# Get current branch
current_branch=$(git branch --show-current)

# Check if on base branch
if [ "$current_branch" = "$base_branch" ]; then
  on_base_branch=true
else
  on_base_branch=false
fi

# Check for uncommitted changes
has_uncommitted=$(git status --short | grep -v '^??' | wc -l)

Read the full file on GitHub · 357 lines

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. 8d ago First seen · 357 lines · 14 tokens per session scan A b947960d891a

Subscribe to this mod's changes

suggest-reviewers is a command published in the GitHub repository wangke19/gemini-ai-helpers (2 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 14 tokens to every session and 3,088 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 97% identical to suggest-reviewers, differing in 8 lines, and is treated as a copy.