agy-fast is a free, open source frameworks & platforms project written in TypeScript and released under MIT. It has 2,954 GitHub stars, 147 forks and 28 open issues, and was last pushed 12 hours ago. On this registry it ranks #83 of 149 tracked projects in Frameworks & Platforms, with 5 head-to-head comparisons available. It gained 1,252 stars over the last 6 tracked days.

What is agy-fast?

agy-fast is a zero-dependency, MIT-licensed local MCP plugin for Google Antigravity that batches searches, symbol outlines, multi-file edits, and build/test checks into single local calls to cut agent latency, token quota, and upload traffic, and it is intended for developers working in Antigravity's CLI, Desktop, or IDE.

What it is

agy-fast is a TypeScript plugin shipped as pre-built, unminified, zero-dependency ESM bundles in dist/, so it runs on Node.js 20 or later without an npm install. It targets Google Antigravity across the agy CLI, Desktop 2.0, and the IDE, where it registers MCP tools and a SessionStart hook. The project describes itself as policy-compliant and deliberately non-invasive: Antigravity's native UI, diff viewer, modified-files list, checkpoints, and safety checks are left untouched. The MIT-licensed repository has 1,620 stars and 90 forks.

The problem it addresses is the cost of routine agent work. In a normal session, each high-frequency operation — a code search, a multi-language symbol outline, an atomic multi-file edit, or a build/test check — becomes its own MCP round-trip, consuming an LLM turn and uploading a tool return. agy-fast consolidates those operations into batched local calls and injects a workspace snapshot once per session, claiming sub-50 ms snapshot latency. It replaces the one-call-per-action pattern at the Model Context Protocol layer, and the project reports reductions of 33.7% in LLM turns per ten actions, 31.5% in estimated billable quota, and 39.7% in tool-return upload, within an inline cap of 8.8 KB.

Key capabilities

  • Consolidates high-frequency code searches, multi-language symbol outlines, atomic multi-file edits, and build/test checks into batched local MCP calls rather than separate agent turns.
  • Registers five MCP tools, documented in the README's "The 5 MCP Tools" section.
  • Injects a workspace snapshot once per session through a SessionStart hook, with the project claiming sub-50 ms latency.
  • Leaves Antigravity's native diff viewer, modified-files list, checkpoints, and safety checks unchanged, so review workflows remain as they were.
  • Caps tool returns inline at 8.8 KB to avoid spills.
  • Ships with zero runtime dependencies and pre-built ESM bundles in dist/, so no npm install is required.
  • Uses ripgrep (rg) for faster search when present and falls back to pure Node.js when it is absent.

Who uses it and how

  • Developers working from the agy CLI, who can optionally launch with agy --dangerously-skip-permissions to auto-approve MCP calls, a flag the README says to use only in trusted repositories or alongside --sandbox.
  • Desktop 2.0 and IDE users, who enable the plugin under Customizations, then Installed, and start a new session so the SessionStart hook and MCP tools load.
  • Teams needing a per-repo install rather than a user-level install, using the repository's alternative installation paths.
  • Subagent-heavy workloads, where the project reports larger reductions of 58.8% in turns and 54.0% in quota.
  • Machines without ripgrep, where the pure Node.js fallback keeps search functional.

Getting started

The recommended path is the one-command installer: curl -fsSL https://raw.githubusercontent.com/INK-Q/agy-fast/main/install.sh | sh on macOS and Linux, or irm https://raw.githubusercontent.com/INK-Q/agy-fast/main/install.ps1 | iex in Windows PowerShell. It writes runtime files to ~/.gemini/config/plugins/agy-fast, runs agy plugin validate --strict and agy plugin enable agy-fast when the agy CLI is present, and verifies the MCP server and SessionStart hook; cloning the repository and running node scripts/install.mjs install is the alternative.

How it compares

No comparable plugins or paid products are named in the facts provided, so agy-fast stands alone in this registry. The only related software the facts identify is Google Antigravity itself, which agy-fast extends rather than replaces.

When to use it — and when not to

It is a good fit for teams already standardized on Google Antigravity that want fewer agent turns and lower quota consumption, and a self-hoster needs only Node.js 20 or later because the plugin has zero runtime dependencies and the facts mention no database, storage, or SMTP service to operate. It is not appropriate for teams using other coding agents, nor for organizations that forbid auto-approved tool permissions or additional SessionStart hooks in their agent environment. The headline savings are the project's own published measurements rather than independent results in the facts, and the repository carries 28 open issues, so teams should validate the gains against their own workloads.

project readme (upstream, from github) — read inline

agy-fast

Latency, Token-Quota & Tool-Call Accelerator Plugin for Google Antigravity

Version GitHub Stars Node.js >= 20 Runtime Dependencies: 0 Platforms MIT License Glama MCP Server HOL Guard Verified

English · 简体中文 · Quick Start · Benchmarks · MCP Tools · Analysis Report · Changelog


agy-fast is a zero-dependency, policy-compliant local MCP plugin for Google Antigravity (CLI agy, Desktop 2.0, and IDE). It cuts agent wall-clock latency, billable token quota, and upload traffic by consolidating high-frequency searches, multi-language symbol outlines, atomic multi-file edits, and build/test checks into batched local calls—and injecting a sub-50 ms workspace snapshot once per session—without altering Antigravity's native UI, diff viewer, modified-files list, checkpoints, or safety checks.

LLM Turns / 10 Actions Est. Billable Quota Tool-Return Upload Spills & Native UI Impact
-33.7%
-38.2% ≥150k ctx · -58.8% subagents
-31.5%
-36.5% ≥150k ctx · -54.0% subagents
-39.7%
-53.7% uncached fresh input
0
≤8.8 KB inline cap · Native diff & UI untouched

Quick Start

Requirements: Node.js >= 20 (no npm install needed — pre-built, unminified zero-dependency ESM bundles are included in dist/). Optional: ripgrep (rg) for faster code search (automatically falls back to pure Node.js when absent).

One-Command Install (Recommended)

Installs runtime files to ~/.gemini/config/plugins/agy-fast, runs agy plugin validate --strict and agy plugin enable agy-fast when agy is installed, and verifies both the MCP server and SessionStart hook live:

macOS / Linux:

curl -fsSL https://raw.githubusercontent.com/INK-Q/agy-fast/main/install.sh | sh

Windows (PowerShell):

irm https://raw.githubusercontent.com/INK-Q/agy-fast/main/install.ps1 | iex

[!TIP] Activating in Desktop 2.0 / IDE: Open Customizations → Installed in Antigravity, confirm agy-fast is enabled, and start a new session to load the SessionStart hook and MCP tools.

Launching agy CLI without approval prompts (optional): To auto-approve agy-fast MCP calls and tool permissions without prompting on every step, start the CLI with:

agy --dangerously-skip-permissions

(Official agy flag that auto-approves all tool permission requests without prompting — use only in trusted repositories, or pair with --sandbox.)

More installation options (local clone, direct git clone, agy CLI, per-repo team install, or ask Antigravity)
Local Clone (Any OS)
git clone https://github.com/INK-Q/agy-fast.git
cd agy-fast
node scripts/install.mjs install
Direct Clone into Antigravity Plugins Directory (No Script Needed)

Antigravity automatically discovers plugins placed in ~/.gemini/config/plugins/:

# macOS / Linux
git clone https://github.com/INK-Q/agy-fast.git ~/.gemini/config/plugins/agy-fast
# Windows (PowerShell)
git clone https://github.com/INK-Q/agy-fast.git "$env:USERPROFILE\.gemini\config\plugins\agy-fast"
Native Antigravity CLI (agy)
agy plugin install /path/to/agy-fast
agy plugin enable agy-fast
Per-Repository Installation (Team Sharing)

Install only for a single repository (writes to /.agents/plugins/agy-fast):

node scripts/install.mjs install --project /path/to/your-repo
Ask Antigravity Directly

Paste this prompt into Antigravity:

Clone https://github.com/INK-Q/agy-fast.git to ~/.gemini/config/plugins/agy-fast, run `node ~/.gemini/config/plugins/agy-fast/scripts/install.mjs doctor`, and enable the agy-fast plugin.

How It Works

Empirical analysis of 55 real Antigravity sessions (8,446 LLM turns, 17,302 tool calls, 55.25 hours of single-agent active time; see docs/ANALYSIS_REPORT.md) revealed that slow tasks are rarely limited by token generation speed. Instead, four structural bottlenecks dominate wall-clock time:

Measured Bottleneck Empirical Cost How agy-fast Eliminates It
Per-turn TTFT floor ~6.1 s median TTFT (79% of a median turn; 68.1% of turns emit 60 s gaps spike cache misses from 1.4% to 15.9%–93.8% Symbol outlines first + parallel targeted read_file, hard ≤8.8 KB UTF-8 inline cap (zero output.txt disk spills), and multimodal isolation rules

Hybrid Execution Architecture

agy-fast never replaces fast native reads. It combines batched local MCP tools with Antigravity's locally allowlisted read_file (~7 ms, 46 KB/call inline, zero remote check):

Plugin Components

Component Path Role
Plugin Manifest plugin.json Standard Antigravity manifest; passes agy plugin validate --strict
Local Stdio MCP Server mcp_config.json → dist/mcp-server.mjs Persistent local process exposing 5 eagerly loaded composite tools ("eager": true) under agy-fast_fast
Startup Snapshot Hook hooks.json → dist/session-start.mjs Runs once on SessionStart (~35–50 ms, 250 ms scan circuit-breaker + OS/home-dir skip list), emitting a ≤1.5 KB workspace snapshot
Routing & Hygiene Rules rules/AGENTS.md Compact (~6.5 KB) routing guide with inlined schemas (supports user-owned rules/AGENTS.local.md with trigger: always_on frontmatter, preserved across updates)
Background Auto-Updater dist/updater.mjs Detached 4 h release checker with staged MCP smoke verification
Offline Benchmark CLI dist/benchmark.mjs Local transcript.jsonl analyzer and before/after A/B comparator

Real-World Benchmarks

Across 10 days of sanitized real coding transcripts (14 baseline main sessions / 5,771 turns vs. 7 agy-fast main sessions / 901 turns, plus 104 baseline vs. 4 agy-fast subagent sessions; all repository names, paths, and identifiers stripped), each agy-fast call batched an average of 4.89 logical operations (5.95× in subagents):

Metric (normalized per logical action) Main Sessions (Baseline) Main Sessions (agy-fast) Delta ≥150k Long Context Subagents
LLM turns / 10 actions 5.23 3.47 -33.7% -38.2% -58.8%
Upstream requests / 10 actions (LLM + remote checks) 9.82 6.05 -38.4% -42.6% -62.0%
Prompt Cache hit rate (miss spikes) 89.6% (7.5%) 94.0% (4.8%) +4.4 pp 95.0% (3.3%) 92.4% (2.8%)
Uncached fresh input / action 10,413 tok 4,822 tok -53.7% -61.5% -51.3%
Est. billable quota / action (1 : 0.1 : 5) 22,458 eq 15,387 eq -31.5% -36.5% -54.0%
Tool-return upload / action (actual local bytes) 5.06 KB 3.05 KB -39.7% -42.6% -13.3%
Incremental text upload / action (fresh input est.) 35.6 KB 16.5 KB -53.7% -61.6% -51.3%
Full-context text upload / action (stateless resend est.) 342.2 KB 276.2 KB -19.3% -21.9% -58.9%

Production hardening highlights (v0.2.x):

  • 0 disk spills across 134 consecutive v0.2.x MCP calls — strict ≤8.8 KB UTF-8 inline cap prevents Antigravity's output.txt spill-to-disk extra turns.
  • +75% effective throughput (35.1 → 61.5 tok/s) and >60s stall turns reduced from 31.2% → 7.4% in a same-session before/after v0.2.1 comparison (99 vs. 374 turns) once multimodal screenshots were isolated out of >180k-token main sessions (0 screenshots loaded in main coding sessions post-upgrade).
  • 0 lazy-load schema-read turns — compact schemas are inlined directly in rules/AGENTS.md.
Methodology, quota sensitivity & fixed prompt overhead
  • Logical action normalization: One batch_search with 5 queries counts as 5 actions, one apply_edits touching 6 hunks + verify counts as 7 actions, and one built-in read_file/edit_file/run_command counts as 1 action—ensuring apples-to-apples comparison per unit of work rather than raw tool-call counts.
  • Quota weighting sensitivity: Standard weighting (1.0× uncached input, 0.1× cache read, 5.0× output) yields -31.5% on main sessions (-36.5% on ≥150k sessions). Results hold under conservative cache discounts (1 : 0.25 : 4 → -25.8%) and high-output weighting (1 : 0.1 : 8 → -29.4%).
  • Fixed prompt overhead: rules/AGENTS.md + SessionStart snapshot add ~1.7k tokens once per session (cached from turn 2 onward, ~170 eq tokens/turn). Avoiding a single redundant turn (~44k eq tokens) or blind full-file read pays back this overhead >20×.

Verify on Your Own Transcripts (100% Offline)

Measure your own Antigravity sessions locally — nothing ever leaves your machine:

# Summarize all local Antigravity transcripts
node dist/benchmark.mjs analyze --local

# Analyze only the 10 most recently modified local transcripts
node dist/benchmark.mjs analyze --local --recent 10

# Slice sessions since install time and compare With vs. Without agy-fast
node dist/benchmark.mjs analyze --local --since 2026-11-19T12:51:00+08:00 --split-usage

# Compare two task runs (before vs. after)
node dist/benchmark.mjs compare --before ./run-before/transcript.jsonl --after ./run-after/transcript.jsonl

The 5 MCP Tools

Scenario Preferred Tool Why
Run ≥2 text, regex, glob, fuzzy, or read-only git queries batch_search 1 call for up to 20 concurrent queries (300 lines)
Read small files (150 lines) to parallel built-in read_file.

5. run_checks — Concurrent Build, Lint, Test & Diagnostic Runner

  • Up to 12 commands per call: Executes independent non-interactive shell commands in a bounded worker pool (concurrency: 1..8) with per-command timeouts (1..170 s, sharing a 170 s call budget under Antigravity's 180 s MCP limit), ANSI escape stripping, and transparent Windows unwrapping of trivial powershell -Command "..." wrappers around allowlisted binaries (git, npm, node, rg, pytest, cargo, etc.) to skip PowerShell cold-start overhead while leaving PowerShell cmdlets/aliases untouched.
  • Head-Tail adaptive output modes: compact (default) collapses passing commands to 1-line summaries and uses Head-Tail folding on large failures so both initial root-cause errors and final summary/stack tails survive the ≤8.8 KB inline cap; full preserves stdout for diagnostic or audit scripts with Head-Tail folding when capped.
Example batched MCP calls (JSON payloads)

batch_search — 3 heterogeneous queries in one call:

{
  "queries": [
    { "type": "regex", "pattern": "export (async )?function", "fileType": "typescript", "outputMode": "files_with_matches" },
    { "type": "fuzzy", "pattern": "mcp server" },
    { "type": "git", "pattern": "status --short" }
  ]
}

apply_edits — Multi-file edit + inline typecheck in one call:

{
  "edits": [
    { "path": "src/a.ts", "hunks": [{ "target": "oldCall()", "replacement": "newCall()" }] },
    { "path": "src/b.ts", "hunks": [{ "target": "v1", "replacement": "v2", "startLine": 10, "endLine": 25 }] }
  ],
  "bestEffort": true,
  "verify": "npm run typecheck"
}

Updates, Diagnostics, and Uninstall

Day-to-Day CLI Reference

Task Command
Health check (Node, rg, live MCP handshake, SessionStart latency, manifest validation) node ~/.gemini/config/plugins/agy-fast/scripts/install.mjs doctor
Check for updates (read-only) node ~/.gemini/config/plugins/agy-fast/scripts/install.mjs update --check
Update now (stages & runs MCP smoke test before swapping) node ~/.gemini/config/plugins/agy-fast/scripts/install.mjs update
Configure auto-update (auto | notify | off) node ~/.gemini/config/plugins/agy-fast/scripts/install.mjs config --auto-update notify --interval 24
Switch MCP tool loading (eager | lazy, preserved across updates) node ~/.gemini/config/plugins/agy-fast/scripts/install.mjs config --tool-loading lazy
Direct CLI mode (for Swarm workers & non-MCP scripts) node ~/.gemini/config/plugins/agy-fast/dist/mcp-server.mjs --cli
Uninstall cleanly node ~/.gemini/config/plugins/agy-fast/scripts/install.mjs uninstall

From a local repository clone, ./install.sh (macOS/Linux) and .\install.ps1 (Windows) accept the same subcommands (doctor, update, config, uninstall).

Zero-Latency Background Auto-Updater

  • 0 ms session startup cost: Every 4 hours, SessionStart spawns a detached background process (dist/updater.mjs) after emitting the workspace snapshot.
  • Verified before swap: Checks GitHub release tags (git ls-remote --tags with GitHub Releases API fallback), clones into an isolated staging directory, runs a live MCP smoke test, and atomically replaces runtime files—automatically rejecting broken releases while preserving any user-created rules/AGENTS.local.md (add ---\ntrigger: always_on\n--- YAML frontmatter so Antigravity loads it; gitignored for git clone installs).
  • Safe by design: Standard copied installs and clean direct git clone installs auto-update automatically; --link dev symlinks and dirty git repos are never overwritten (notify-only). A one-time notice appears in the next new session when an update is applied or available.
Environment variable overrides & applying updates
Environment Variable Values / Default Purpose
AGY_FAST_AUTO_UPDATE auto (default) | notify | off Overrides saved auto-update mode
AGY_FAST_UPDATE_INTERVAL_HOURS 12 (default; 1..720) Background check interval in hours
AGY_FAST_UPDATE_CHANNEL release (default) | main Track stable semver release tags or main
AGY_FAST_REPO Git URL Use a custom mirror or fork
AGY_FAST_EDITS_FORMAT auto (default) | array | string Controls apply_edits.edits schema (auto uses token-saving native arrays on eager-capable CLI ≥1.5.8, Desktop 2.0, IDE, and third-party hosts, and switches to JSON array strings on pre-eager CLI 1.5.0–1.5.7; server always accepts both)
AGY_FAST_HOST e.g. cli@1.5.14, ide@2.7.0, desktop@2.34.0 Overrides auto-detected Antigravity host surface & version

Applying updates: Updated rules/AGENTS.md and dist/session-start.mjs take effect automatically on the next new session. In Antigravity Desktop 2.0 / IDE, reload or restart the window once to refresh the resident MCP server process.

Policy Compliance and Safety

  • Official interfaces only: Built exclusively on documented Antigravity extension APIs (plugin.json, mcp_config.json, hooks.json, rules/AGENTS.md).
  • Non-invasive by design: Never alters or interferes with Antigravity's native UI, diff viewer/window, modified-files list, checkpoints, or built-in tools.
  • No safety or binary tampering: Does not patch client binaries, alter authentication, or bypass Antigravity's built-in safety evaluations.
  • Zero per-step blocking hooks: Registers no PreToolUse, PostToolUse, PreInvocation, PostInvocation, or Stop hooks.
  • Fail-open startup hook: On unreadable directories or malformed stdin, SessionStart returns {} and exits cleanly—never blocking a session.
  • Local-first & auditable: All 5 MCP tools and the benchmark CLI run 100% locally with zero code or transcript uploads; shipped dist/*.mjs bundles are unminified ESM so every executed line is directly auditable.

FAQ

Does agy-fast affect Antigravity's native UI, diff viewer, or modified-files list?

No. agy-fast runs strictly as a standard local Stdio MCP plugin with a SessionStart hook. It never patches the Antigravity client or interferes with the native diff viewer/window, modified-files list, checkpoints, built-in tools, or safety checks.

Does agy-fast save token quota and upload bandwidth in addition to reducing latency?

Yes. Across 10 days of sanitized real coding transcripts, batching ~4.9 operations per MCP call reduced LLM turns by 33.7%, estimated billable token quota by 31.5% (36.5% in ≥150k-token sessions; 54.0% in subagents), tool-return upload bytes by 39.7%, and >60s stall turns from 31.2% → 7.4%.

Does agy-fast replace Antigravity's built-in read_file or edit_file tools?

No — it complements them in a hybrid workflow. Built-in read_file is locally allowlisted (~7 ms, 46 KB/call, zero remote check), so agy-fast routes small files and known line ranges straight to parallel built-in read_file, while handling multi-query searches, symbol outlines, multi-hunk/multi-file edits with inline verify, and concurrent checks via MCP.

Which Antigravity editions and operating systems are supported?

agy-fast supports Antigravity CLI (agy), Antigravity Desktop 2.0, and Antigravity IDE across macOS, Linux, and Windows. It requires Node.js >= 20 with zero runtime dependencies (optional ripgrep/rg with automatic pure-Node.js fallback).

Does agy-fast send any code or transcript data to external servers?

No. All MCP tools, the SessionStart snapshot hook, and the transcript benchmark CLI operate 100% locally. The only optional network request is the background update checker checking public GitHub release tags once every 4 hours, which can be switched to notify or disabled completely via config --auto-update off or AGY_FAST_AUTO_UPDATE=off.

How do I verify the speedup or uninstall agy-fast cleanly?

Run node dist/benchmark.mjs analyze --local --split-usage to benchmark your own local transcripts completely offline. To remove agy-fast at any time, run node ~/.gemini/config/plugins/agy-fast/scripts/install.mjs uninstall.

Development

npm install
npm run typecheck   # Strict TypeScript check
npm run build       # Bundle src/*.ts -> dist/*.mjs with esbuild
npm test            # Run unit, MCP protocol, hook, benchmark, and installer tests
npm run bench:stress # Run 12-scenario end-to-end stress & performance benchmark
npm run validate    # Run `agy plugin validate --strict .`

MCP Directory

agy-fast MCP server on Glama

Star History

Star History Chart

License

MIT

Frequently asked questions

Is agy-fast free to use?

agy-fast is open source under the MIT licence. There is no licence fee and no seat count — you can self-host it or, where the project offers one, pay a vendor for a managed version instead.

What does agy-fast do?

Non-invasive MCP accelerator plugin for Google Antigravity (CLI/Desktop/IDE): cuts LLM turns (-34%), token quota (-31%), and upload traffic (-40%) without affec

What is agy-fast written in?

agy-fast is primarily written in TypeScript. Its source is publicly available at https://github.com/INK-Q/agy-fast, and it has 2,954 GitHub stars.