█

AI/TLDR

Buy me a coffee
Buy me a coffee

agy-fast

A local MCP plugin that batches Google Antigravity's searches, edits and checks into fewer LLM turns

Context Compression & Token BudgetsOpen source
Language
TypeScript
License
MIT
$npx -y agy-fast install
IN SHORT

What is agy-fast?

agy-fast is a local Model Context Protocol plugin for Google Antigravity — the agy CLI, the Desktop 2.0 app and the IDE. It aims to make the coding agent finish tasks in fewer model turns. It sits in the Context Compression & Token Budgets category of the App Orchestration tools and is open-source, written in TypeScript and licensed MIT.

Overview

agy-fast is a local Model Context Protocol plugin for Google Antigravity — the agy CLI, the Desktop 2.0 app and the IDE. It aims to make the coding agent finish tasks in fewer model turns. Instead of the agent issuing one search, one file edit or one test command per turn, agy-fast exposes five composite tools that batch that work into single local calls, and a SessionStart hook that injects a small workspace snapshot (git state, a two-level tree and the project's scripts) once at the start of each session.

Animated before-and-after comparison of one multi-file task: baseline Antigravity still on turn 3 of 6 at 19.5 seconds, while the agy-fast run finishes in 2 turns and 14.1 seconds using batch_search, quick_outline and apply_edits with verify
The same multi-file task with and without agy-fast — a representative workflow built from the author's measured medians.agy-fast README ↗

The author built it from an analysis of 55 real Antigravity sessions, which found that slow tasks were dominated by per-turn latency rather than generation speed: a median of about 6 seconds before the first token on each turn, many same-file edit splits and read-only searches done one at a time, and long cold-start exploration. The five tools target those patterns. batch_search runs up to 20 text, regex, glob, fuzzy or read-only git queries at once; quick_outline and read_slices return symbol outlines and targeted line ranges across many files; apply_edits applies multi-hunk edits to up to 50 files atomically with an optional verify command; and run_checks runs up to 12 build, lint or test commands concurrently with failure-focused output.

agy-fast hybrid execution architecture: a SessionStart hook and an AGENTS.md router send batched operations to a local stdio MCP server with batch_search, quick_outline, apply_edits and run_checks, while small files and known ranges go through Antigravity's native read_file path
Batched operations go to the local MCP server; small reads stay on Antigravity's native read_file.agy-fast README ↗

On the project's own 10-day before/after comparison of sanitised transcripts, it reports 33.7% fewer LLM turns per unit of work, an estimated 31.5% less billable quota and 39.7% less tool-return upload, with larger savings in long-context sessions and subagents; these are the author's measurements, and the repo includes an offline benchmark CLI to check them against your own transcripts. Every tool response is capped at about 8.8 KB so Antigravity does not spill output to disk and spend an extra turn reading it.

agy-fast uses only Antigravity's documented extension points — plugin manifest, MCP config, hooks and an AGENTS.md routing rule file — and leaves the native diff viewer, modified-files list, checkpoints and safety checks alone. It has no runtime dependencies, ships unminified ESM bundles, needs Node.js 20+, uses ripgrep when installed, and can also run as a plain MCP stdio server for other MCP hosts. It is MIT-licensed.

What it does

  • batch_search: up to 20 concurrent text, regex, glob, fuzzy and read-only git queries in one call
  • apply_edits: atomic multi-hunk edits across up to 50 files, with an optional inline build or test verify
  • quick_outline and read_slices: symbol outlines and targeted line slices across many files and 15 formats
  • run_checks: up to 12 build, lint and test commands in parallel with head-tail folded failure output
  • SessionStart hook that injects a ≤1.5 KB workspace snapshot once per session
  • Offline benchmark CLI that analyses your own Antigravity transcripts and compares before/after runs

Getting started

agy-fast needs Node.js 20 or newer; ripgrep is optional. The steps follow the README.

Install the plugin

The installer copies the plugin to ~/.gemini/config/plugins/agy-fast, validates and enables it when agy is installed, and checks the MCP server and hook. On Windows use the PowerShell installer from the README.

bashbash
npx -y agy-fast install
# or: curl -fsSL https://raw.githubusercontent.com/INK-Q/agy-fast/main/install.sh | sh

Enable it and start a new session

In Desktop 2.0 or the IDE, open Customizations → Installed, confirm agy-fast is enabled and start a new session so the hook and tools load. With the CLI you can also install and enable it directly.

bashbash
agy plugin install /path/to/agy-fast
agy plugin enable agy-fast

Check the install

bashbash
node ~/.gemini/config/plugins/agy-fast/scripts/install.mjs doctor

Measure it on your own sessions

The benchmark CLI reads local Antigravity transcripts offline.

bashbash
node dist/benchmark.mjs analyze --local --recent 10

Use it from another MCP host

Without Antigravity, mount the pure MCP stdio server in any MCP client config.

jsonjson
{
  "mcpServers": {
    "agy-fast": {
      "command": "npx",
      "args": ["-y", "agy-fast", "mcp"]
    }
  }
}

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

When to use it

  • Cutting wall-clock time and token quota on multi-file coding tasks in Google Antigravity
  • Long-context or subagent-heavy Antigravity sessions where every extra turn is expensive
  • Giving any MCP-capable agent batched search, outline, edit and check tools
  • Measuring how many turns and tokens your own Antigravity sessions spend, offline

How agy-fast compares

agy-fast alongside other open-source context compression & token budgets tools AI/TLDR tracks, ranked by GitHub stars.

ToolStarsWhat it does
RTK★ 88.3kA single-binary Rust CLI proxy that filters, groups, truncates and dedupes the output of 100+ dev commands before a coding agent reads it, cutting token use by 60–90%.
Headroom★ 81.2kLocal context-compression layer that shrinks tool outputs, logs, files and RAG chunks before they reach the model, usable as a library, a drop-in proxy or an MCP server.
Context Mode★ 34.6kAn MCP server that keeps raw tool output out of the context window by sandboxing it, and indexes session events into SQLite FTS5 so an agent survives compaction.
TOON★ 25.7kToken-Oriented Object Notation: a lossless, compact encoding of the JSON data model that declares row counts and field lists so tabular data costs fewer prompt tokens.
TokenEconomizer★ 8.3kA plugin for Claude Code, Codex, Copilot CLI and Pi that learns from a repository's past sessions to inject known facts, prune unused tools and redirect stuck turns, cutting agent cost.
pxpipe★ 8kA local proxy that renders bulky request context — system prompt, tool docs and older turns — as PNG pages the model reads with vision, cutting the input tokens a coding agent re-sends each turn.
LeanCTX★ 4kLocal context layer for coding agents with ten file read modes, 95+ shell-output compressors, reversible content-addressed recovery, session memory and a savings ledger.
agy-fast★ 2.9kA local MCP plugin that batches Google Antigravity's searches, edits and checks into fewer LLM turns