coderabbit-review

A command that runs CodeRabbit’s automated review on the current code changes.

In plain words
What is it for?
Use it to review staged, committed, or other selected changes, optionally against a chosen base branch or directory.
Why use it?
It checks the repository and review prerequisites for you before starting the review.

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/coderabbitai/skills/coderabbit-review
Clone the repo
git clone --depth 1 https://github.com/coderabbitai/skills
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 603 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.00009 $0.00603
Opus 5 $0.00005 $0.00302
Sonnet 5 $0.00002 $0.00121
Haiku 4.5 $0.00001 $0.00060

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

Security

Grade A, and why

coderabbit-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.

commands/coderabbit-review.md · 82 lines

How it starts

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

CodeRabbit Code Review

Run an AI-powered code review using CodeRabbit.

Context

  • Current directory: !pwd
  • Git repo: !git rev-parse --is-inside-work-tree 2>/dev/null && echo "Yes" || echo "No"
  • Branch: !git branch --show-current 2>/dev/null || echo "detached HEAD"
  • Has changes: !git status --porcelain 2>/dev/null | head -1 | grep -q . && echo "Yes" || echo "No"

Instructions

Review code based on: $ARGUMENTS

Prerequisites Check

Skip these checks if you already verified them earlier in this session.

Otherwise, run:

coderabbit --version 2>/dev/null && coderabbit auth status 2>&1 | head -3

If CLI not found, tell user:

CodeRabbit CLI is not installed. Install it from the official docs:

https://www.coderabbit.ai/cli

Prefer a package manager or a verified binary, then restart your shell and try again.

If "Not logged in", tell user:

You need to authenticate. Run in your terminal:

coderabbit auth login

Then try again.

Run Review

Once prerequisites are met:

# type defaults to "all"; add --base and --dir only when specified
args=(review --agent -t "${type:-all}")
[ -n "${base:-}" ] && args+=(--base "$base")
[ -n "${dir:-}" ] && args+=(--dir "$dir")
coderabbit "${args[@]}"

Where type, base, and dir come from $ARGUMENTS:

  • all (default) - All changes
  • committed - Committed changes only
  • uncommitted - Uncommitted only

Add --base <branch> only when a base branch is specified. Add --dir <path> only when a review directory is specified. The directory must contain an initialized Git repository; verify it first:

git -C "$dir" rev-parse --is-inside-work-tree

Present Results

Group findings by severity:

  1. Critical - Security vulnerabilities, data loss risks, crashes
  2. Warning - Bugs, performance issues, anti-patterns
  3. Info - Style issues, suggestions, minor improvements

Offer to apply fixes from the --agent findings when the output includes actionable remediation details.

Read the full file on GitHub · 82 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. 2d ago First seen · 82 lines · 9 tokens per session scan A d2f0c42d8724

Subscribe to this mod's changes

coderabbit-review is a command published in the GitHub repository coderabbitai/skills (162 stars, last pushed 15d ago), licensed MIT. It adds 9 tokens to every session and 603 once invoked, about $0.0000 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-30.