review

review is a command for coding agents from VorobiovD/air. It costs 28 tokens per session (30,171 once invoked), scanned D, original, MIT.

An automated code-review command for GitHub pull requests, which are proposed code changes awaiting review. It can also review local changes on the current branch when no pull request is available.

In plain words
What is it for?
Reviewing pull requests, self-checking changes before pushing, responding to findings, and reviewing the code again after fixes.
Why use it?
It checks code before or during review and helps teams keep track of recurring patterns and fixes across review rounds.

Command

Part of the air plugin — 5 commands, 7 agents, 1 hook shipped together

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/vorobiovd/air/review
Clone the repo
git clone --depth 1 https://github.com/VorobiovD/air

Or install air, the plugin that ships this one along with the rest of its 5 commands, 7 agents, 1 hook.

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 review

README.md
[![agentmods](https://agentmods.dev/badge/commands/vorobiovd/air/review.svg)](https://agentmods.dev/commands/vorobiovd/air/review)
Your own site
<a href="https://agentmods.dev/commands/vorobiovd/air/review"><img src="https://agentmods.dev/badge/commands/vorobiovd/air/review.svg" alt="Measured on agentmods" height="20"></a>
Per session 28 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 30,171 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 2 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.00028 $0.30171
Opus 5 $0.00014 $0.15085
Sonnet 5 $0.00006 $0.06034
Haiku 4.5 $0.00003 $0.03017

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

Security

Grade D, and why

review scanned grade D with 2 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 5d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

CODEX_SCRIPT=$(find ~/.claude/plugins/cache/openai-codex -name "codex-companion.mjs" 2>/dev/null | sort -V | tail -1)

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

find /tmp -maxdepth 1 -name 'air-*' -mtime +1 -exec rm -rf {} + 2>/dev/null
plugins/air/commands/review.md · 1,374 lines

How it starts

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

Review code using specialized agents. If a PR number is given, review that PR. If no arguments, auto-detect: review the current branch's PR if one exists, or self-review local changes if not.

Setup

air reviews GitHub PRs via the gh CLI (must be authenticated — gh auth login).

PLATFORM_DOMAIN builds the wiki + finding-link URLs below — derive it from the remote host so GitHub Enterprise (and SSH remotes) work, defaulting to github.com:

REMOTE_URL=$(git remote get-url origin 2>/dev/null)
if [[ "$REMOTE_URL" =~ ^https?://([^/]+)/ ]]; then
  PLATFORM_DOMAIN="${BASH_REMATCH[1]}"
elif [[ "$REMOTE_URL" =~ ^git@([^:]+): ]]; then
  PLATFORM_DOMAIN="${BASH_REMATCH[1]}"
else
  PLATFORM_DOMAIN="github.com"
fi

Step 0: Initialize Session Temp Directory

Before any /tmp write, mint a per-invocation session dir. Claude Code's Bash tool starts a fresh shell per call, so export doesn't persist — capture the literal path from the command below and interpolate it into every subsequent $AIR_TMP reference in this file. Also sweep stale dirs from crashed prior runs.

# GC old session dirs (>1 day) from crashed prior runs
find /tmp -maxdepth 1 -name 'air-*' -mtime +1 -exec rm -rf {} + 2>/dev/null

# Mint the session dir. `mktemp -d` guarantees a non-empty, non-colliding path.
AIR_TMP=$(mktemp -d "/tmp/air-XXXXXX")
# Repo root (used by Step 3.5 when writing `.air-checks.sh` — same-repo only).
# Falls back to empty when invoked from outside a git repo; Step 3.5 skips
# `.air-checks.sh` generation in that case.
REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null)
# Plugin root (used by Step 13's meta.py invocations and hooks).
# The pre-commit hook exports this for .air-checks.sh; review.md has to
# derive it independently since Claude Code doesn't pass it to slash
# commands. We resolve it via the canonical cache path; if the user has
# the plugin installed elsewhere, they can set AIR_PLUGIN_ROOT manually.
if [ -z "${AIR_PLUGIN_ROOT:-}" ]; then
  AIR_PLUGIN_ROOT=$(ls -1d ~/.claude/plugins/cache/air/air/*/ 2>/dev/null | sort -V | tail -1 | sed 's:/$::')
fi
if [ -z "$AIR_PLUGIN_ROOT" ] || [ ! -d "$AIR_PLUGIN_ROOT" ]; then
  echo "warning: AIR_PLUGIN_ROOT not resolvable; Step 13's auto-trigger counter will not increment this run" >&2
  AIR_PLUGIN_ROOT=""
fi
echo "$AIR_TMP"

Read the full file on GitHub · 1,374 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. 5d ago First seen · 1,374 lines · 0 tokens per session scan D 3155a43e8be6

Subscribe to this mod's changes

review is a command published in the GitHub repository VorobiovD/air (5 stars, last pushed 10d ago), licensed MIT. It adds 28 tokens to every session and 30,171 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it D with 2 findings (reads agent configuration directories, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.