Skip to content
Development
Command

/review

Send the current git diff to Antigravity (agy) for code review. Optional focus text to steer the review.

From plugin
marcosnahuel-antigravity-plugin-cc
2622 skills1 agent22 commands
Install
$ npx -y skills add MarcosNahuel/antigravity-plugin-cc --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/review

Context preview

What this command does when you run it.

Send the current git diff to Antigravity (agy) for code review. Optional focus text to steer the review.

Command definition

review.md
description: Send the current git diff to Antigravity (agy) for code review. Optional focus text to steer the review.
argument-hint: "[--background] [focus text]"
context: fork
allowed-tools: Bash, Write

Route this to the `antigravity:agy-rescue` subagent in MODE: review.

Raw user request: $ARGUMENTS

Routing rules:

  • If the request contains `--background`, invoke the subagent with `run_in_background: true`. Strip the flag.
  • Capture the current git diff BEFORE delegating. Use ONE Bash call with this exact fallback chain (do not invent your own — `git diff HEAD` first because it includes committed-but-not-pushed work too):
  set -e
  REPO_DIR="${CLAUDE_PROJECT_DIR:-$PWD}"
  DIFF_FILE="$(mktemp -t agy-review-XXXXXX.diff 2>/dev/null || mktemp)"
  git -C "$REPO_DIR" diff HEAD > "$DIFF_FILE" 2>/dev/null || true
  if [ ! -s "$DIFF_FILE" ]; then
    git -C "$REPO_DIR" diff > "$DIFF_FILE" 2>/dev/null || true
  fi
  if [ ! -s "$DIFF_FILE" ]; then
    rm -f "$DIFF_FILE"
    echo "NO_DIFF"
  else
    OUT_FILE="${DIFF_FILE%.diff}.review.md"
    echo "DIFF_FILE=$DIFF_FILE"
    echo "OUT_FILE=$OUT_FILE"
    wc -l < "$DIFF_FILE"
  fi
  • If the Bash output is `NO_DIFF`, tell the user "no git diff found in this repo — stage or make changes first" and stop. Do NOT invoke the subagent.
  • Anything left in the user text after stripping `--background` is the focus text (may be empty). Default focus if empty: "review for correctness, edge cases, security issues, and style".

Pass this header block to the subagent followed by the focus text:

MODE: review
INTENSITY:
MODEL:
RESUME: false
WRITE_FILE: <absolute OUT_FILE path echoed above>
FOCUS: <focus text or default>
DIFF_FILE: <absolute path captured above>
USER_TEXT:

Operating rules:

  • The subagent reads `DIFF_FILE`, builds a review prompt embedding the diff + focus, invokes agy via the write_file workaround (bug #76), and returns the review verbatim.
  • Present agy's response as-is. No paraphrase.
  • If agy reports missing/unauthenticated, tell the user to run `/agy:setup`.
  • After delegating, leave the temp `DIFF_FILE` alone — the subagent owns its lifecycle (it cleans up on success).
Read more
Ships withmarcosnahuel-antigravity-plugin-cc

A local NotebookLM, multi-agent deep research, and 21 more commands — for Claude Code, powered by Google Antigravity (agy / Gemini 3.x), the official CLI that replaces the now-deprecated gemini-cli.

Get the whole plugin, auto-invoked
Stats
26
Stars
0
Views
6
Forks
Active
Maintenance
Python
Language
MIT
License
7d ago
Last commit
2mo ago
Created

Repo: MarcosNahuel/antigravity-plugin-cc