review-self

review-self is a command for Claude Code from VorobiovD/air. It costs 0 tokens per session (3,045 once invoked), scanned D, original, MIT.

A command for reviewing unpushed local code changes without needing a GitHub pull request. It runs a separate self-review process when the --self option is used.

In plain words
What is it for?
Checking local diffs before pushing, including in parallel review sessions, and recording review findings and learned patterns.
Why use it?
It lets developers catch issues before publishing or asking teammates to review a change.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

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

Good fit Checking local diffs before pushing, including in parallel review sessions, and recording review findings and learned patterns.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/vorobiovd/air/review-self
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/VorobiovD/air

Made for: Claude Code.

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-self

README.md
[![agentmods](https://agentmods.dev/badge/commands/vorobiovd/air/review-self.svg)](https://agentmods.dev/commands/vorobiovd/air/review-self)
Your own site
<a href="https://agentmods.dev/commands/vorobiovd/air/review-self"><img src="https://agentmods.dev/badge/commands/vorobiovd/air/review-self.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 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,045 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 2 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00000 $0.03045
Opus 5 $0.00000 $0.01522
Sonnet 5 $0.00000 $0.00609
Haiku 4.5 $0.00000 $0.00304

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

Security

Grade D, and why

review-self 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 7d 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-self.md · 226 lines

How it starts

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

Self-Review Flow (--self mode)

When --self is passed, this is a completely different flow. No PR needed. Reviews local changes before push.

Self Step 0: Initialize Session Temp Directory

Before any /tmp write, mint a per-invocation session dir so parallel /air:review --self runs (or a review + self-review in two Claude Code sessions) don't corrupt each other's wiki files and diffs. 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 substitute it into every $AIR_TMP reference downstream.

If the orchestrator already minted $AIR_TMP (e.g. /air:review --self routed through review.md Step 0), reuse it — don't double-mint. Otherwise mint a fresh dir:

if [ -z "$AIR_TMP" ]; then
  find /tmp -maxdepth 1 -name 'air-*' -mtime +1 -exec rm -rf {} + 2>/dev/null
  AIR_TMP=$(mktemp -d "/tmp/air-self-XXXXXX")
fi
# Plugin root for the meta.py invocations in the wiki-learn block below.
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; Self Step 7's auto-trigger counter will not increment this run" >&2
  AIR_PLUGIN_ROOT=""
fi
echo "$AIR_TMP"

Self Step 1: Get the diff

git diff HEAD > $AIR_TMP/self-review.diff

If the diff is empty, try staged only:

git diff --cached > $AIR_TMP/self-review.diff

If still empty: "No changes to review. Stage or modify files first." and STOP.

Print summary: " files changed, +/-"

Self Step 2: Load Context

Same as regular Step 3 — clone the wiki (into $AIR_TMP/review-wiki-self) and copy ALL wiki pages to $AIR_TMP/ (REVIEW.md, REVIEW-HISTORY.md, PROJECT-PROFILE.md, ACCEPTED-PATTERNS.md, SEVERITY-CALIBRATION.md, GLOSSARY.md). Also read CLAUDE.md (or AGENTS.md if there is no CLAUDE.md) from the repo root and the current repo's .claude/agents/ for any repo-specific review rules. Run Step 3.5 (first-run project discovery — see commands/review.md Step 3.5) if PROJECT-PROFILE.md doesn't exist.

Read the full file on GitHub · 226 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. 7d ago First seen · 226 lines · 0 tokens per session scan D 8ef2a2441a02

Subscribe to this mod's changes

review-self is a command published in the GitHub repository VorobiovD/air (5 stars, last pushed 12d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,045 tokens. 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.