Agy Review
Provides Git diff review capabilities: inspects working tree, staged/unstaged changes, last commit, and validated commit ranges; parses hunks and untracked files for inline annotation and structured feedback.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Agy Review
PR-grade inline diff review and line-level annotation studio for Google Antigravity 2.0 — 100% native MCP App.
Zero ASAR patches · Zero CDP injection · Zero runtime dependencies · Compatible with SEP-1865 MCP Apps hosts
English · 简体中文 · Quick Start · Workflow · Architecture · Offline Workbench · Related Projects
Follows your GitHub and Antigravity light/dark theme automatically. Test locally with npm run workbench using built-in demo data — your daily Antigravity setup stays untouched.
Non-Affiliation Notice
Agy Review is an independent MIT open-source community plugin unaffiliated with Google LLC.
It relies exclusively on documented Antigravity 2.0 Plugin, Lifecycle Hooks, and MCP Apps (SEP-1865) interfaces — zeroapp.asarpatching and zero Electron/CDP injection.
Why Agy Review?
Reviewing multi-file AI edits inside chat threads introduces three recurring friction points:
Scattered Diffs — Reading raw
git diffoutput in terminal blocks hides file boundaries, risk signals, and review progress.Imprecise Chat Corrections — Typing "fix line 35 of the middleware file and also check that catch block lower down" forces the model to guess exact spans across files.
Broken Feedback Loops — Switching to an external Git GUI breaks conversation flow and requires manual copy-pasting back into Antigravity.
Agy Review brings GitHub PR-style inline diff inspection directly into Antigravity's native side pane (aux_pane) and full-page sidebar (global), turning line-level review notes into exact file:Lstart-Lend structured prompts sent straight back to your agent.
Capability | Terminal | External Git GUI | Agy Review (Native MCP App) |
Unified & Split side-by-side diff inside Antigravity | No | External window | Native |
Click & | No | Limited | Full CRUD persisted in |
Risk tagging ( | Manual | Manual | Automatic per-file risk badges |
One-click send structured | Manual copy | Manual copy |
|
Survives every Antigravity desktop update | Yes | Yes | Always (100% documented official APIs) |
Related MCP server: md-feedback
Core Workflow
Open Agy Review — Launch from Antigravity's Side Pane
+menu, the Left Sidebar, or ask/agy-reviewin chat. Switch seamlessly betweenWorking Tree,Staged,Unstaged,Last Commit (HEAD~1), or any validatedCommit Range.Inspect & Track Progress — Browse the collapsible file tree (auto-adapts to a compact selector strip in narrow side panes), check off reviewed files, spot
SEC/LARGE/CFG/TESTrisk badges, or jump directly to source files viaOpen File ↗(toggle-aux-pane).Annotate Exact Line Spans — Click any line or
Shift+Clicka span to highlight it and open an inline composer right beneath the code. Tag notes asSecurity,Bug,Refactor,Question, orNit, and save with⌘/Ctrl + Enter.Ship Structured Feedback to Your Agent — Preview the prioritized Markdown prompt in the sticky bottom Review Cart, then click:
Send to Agent (
ui/message) to trigger targeted batch fixes immediately,Attach to Next Turn (
ui/update-model-context) to pin annotations as a context pill on your next message, orCopy Prompt as an always-available universal fallback.
Example structured prompt generated by Agy Review:
# Code Review Feedback — acme-auth-service
- **Branch**: `feat/token-refresh-guard` | **Scope**: `working`
- **Items**: 2 annotations across 1 file ([SECURITY] 1 · [BUG] 1)
## `src/auth/token-middleware.ts`
1. **[SECURITY]** `src/auth/token-middleware.ts:L35-L37`
Remove query string `token` fallback: accept tokens strictly via the Authorization header.
```diff
35 | + const queryToken = new URL(req.url ?? '/', 'http://localhost').searchParams.get('token');
36 | + const rawToken = header.startsWith('Bearer ') ? header.slice(7).trim() : queryToken;
37 | + if (!rawToken) {
---
## Quick Start (30 Seconds)
### Option 1: Install via Antigravity CLI (Recommended)
```bash
agy plugin install https://github.com/tone-leh/agy-reviewPre-bundled zero-dependency dist/server.cjs, dist/hook.cjs, dist/cli.cjs, and single-file dist/ui/app.html (~508 KB) ship directly in the repository — Node.js ≥ 20 is the only runtime requirement.
Option 2: Direct Clone into Antigravity Plugins Directory
# macOS / Linux
git clone https://github.com/tone-leh/agy-review.git ~/.gemini/config/plugins/agy-review
# Windows (PowerShell)
git clone https://github.com/tone-leh/agy-review.git "$env:USERPROFILE\.gemini\config\plugins\agy-review"Option 3: Preview or Install via Bundled CLI
# Preview install plan without modifying any files
./bin/agy-review-cli install --dry-run
# Install or cleanly uninstall
./bin/agy-review-cli install
./bin/agy-review-cli uninstallCross-Host MCP Apps Compatibility
Agy Review implements the open SEP-1865 MCP Apps specification via @modelcontextprotocol/ext-apps:
Google Antigravity 2.0: Unlocks full native experience —
aux_paneside pane,globalsidebar entrypoints, livestyles.variablestheming,Open File ↗(com.google.antigravity/toggle-aux-pane),Send to Agent, andAttach to Next Turn.Other MCP Apps Hosts (Claude Desktop, Claude Code, DSH
dsh-mcp-apps-host, custom SEP-1865 hosts): Point any MCP host atnode dist/server.cjs --data-dir=<path>. UI buttons automatically adapt toapp.getHostCapabilities(), hiding unsupported host RPCs while keeping full diff inspection, inline annotations, and Copy Prompt active everywhere.
Architecture
MCP Tools & Visibility Isolation
Tool | Visibility | Surface | Purpose |
| Model + App |
| Launches the review studio (supports |
| Model + App | Text + JSON | Compact token-efficient diff summary with risk flags & open annotation counts |
| App-only | UI | Full parsed diff hunks, untracked files, staleness checks, and viewed states |
| App-only | UI | Atomic CRUD persisted per repository and scope in |
| App-only | UI | Persists per-file reviewed checkmarks |
| App-only | UI | Compiles prioritized |
Security & Safety Guardrails
Zero Shell Interpolation: Every Git command runs via
execFileSync('git', args)with-c core.quotepath=falseand--path separators.commitRangeinputs are strictly validated to block Git option injection.Strict Default CSP Compliance: Single-file HTML bundle with zero external scripts, zero CDN fonts, and zero external requests.
Atomic Persistence & Path Safety: Annotations write via temp-file +
renameSyncinside${PLUGIN_DATA}/sessions/keyed by SHA-256 repository hashes, blocking path traversal and recovering cleanly from corrupted JSON.Fail-Open Hooks:
PostToolUseandStophooks finish in milliseconds, record lightweight edit timestamps to${PLUGIN_DATA}/review-signal.json, and fail open on any I/O error.
Try Without Installing (Offline Workbench & CLI)
Explore Agy Review inside a self-contained sandbox without modifying your daily Antigravity installation:
git clone https://github.com/tone-leh/agy-review.git
cd agy-review
npm install
# 1. Start the offline host simulator (spawns real dist/server.cjs over stdio)
npm run workbench
# Open http://127.0.0.1:4391 — switch Aux Pane (500px) / Global (1200px), Dark / Light theme,
# and inspect live simulated host messages (sendMessage, updateModelContext, toggle-aux-pane)
# 2. Or inspect a real local repository in the sandbox
node workbench/server.mjs --repo /path/to/your/repo
# 3. Inspect diffs or check bundle health from the terminal
node dist/cli.cjs status --demo
node dist/cli.cjs summary --demo
node dist/cli.cjs doctorPart of the Antigravity 2.0 Native Plugin Suite
agy-review — PR-Grade Inline Diff Reviewer & Line-Range Annotation Studio (this repo)
agy-xray — Context Composition X-Ray, Token Vampire Detector & Cross-Session BM25 Time Machine
agy-guard — Local Security Guardrail, Secret-Leak Shield & Zero-Git Pre-Edit Snapshot Time Machine
agy-canvas — Visual Artifact Reviewer with Figma-Style Coordinate Pins
agy-mem — Glass-Box Code-Anchored Long-Term Memory & Knowledge Graph with SHA-256 Drift Guard
agy-remote — Zero-Cloud Mobile PWA & 6-Channel IM Remote Approval Bridge
Also by tone-leh: agy-session-guard · hermes-context-bar · stickypatch
Development & Verification
npm ci
npm run typecheck
npm run build
npm testLicense
MIT © tone-leh
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
MarkupBase turns AI-generated Markdown and HTML into durable, versioned artifacts that people can review and discuss. Its MCP server lets agents publish new versions, preserve contextual comments, include hosted images, and respond to feedback through secure account-linked identities, creating a clear human review boundary without requiring real-time editing.
Team memory for AI coding agents and code reviews, reviewed by humans and served over MCP.
One MCP server for all your MCP servers: code mode, per-tool permissions, approvals and audit.
Related MCP Servers
- AlicenseBqualityDmaintenanceAI-powered code review server that analyzes git diffs and PRs with context from project guidelines and task lists. Supports integration with Claude Code and Cursor via MCP.3MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server for reviewing markdown plans before AI agents implement them. Enables annotation of plans with Fix, Question, and Highlight, which AI agents can read directly through MCP.5-
- AlicenseNot gradedqualityDmaintenanceMCP server for reviewing code changes using LLMs, supporting Copilot, Ollama, and OpenAI-compatible endpoints.MIT
- AlicenseAqualityCmaintenanceAn MCP server that lets AI agents review code using language models, supporting git diffs, files, and snippets with severity levels. Works with Ollama (local) and hosted providers like OpenAI, Anthropic, and OpenRouter.3MIT