[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116947":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":9,"pushedAt":9,"updatedAt":30,"readmeContent":31,"aiSummary":9,"trendingCount":15,"starSnapshotCount":15,"syncStatus":14,"lastSyncTime":32,"discoverSource":33},116947,"agy-fast","INK-Q\u002Fagy-fast","INK-Q","Non-invasive MCP accelerator plugin for Google Antigravity (CLI\u002FDesktop\u002FIDE): cuts LLM turns (-34%), token quota (-31%), and upload traffic (-40%) without affecting native UI or diffs.",null,"TypeScript",1042,60,1,2,0,288,922,1375,18.36,"MIT License",false,"main",true,[25,26,27,28,29],"antigravity","developer-tools","mcp","performance","plugin","2026-11-25 02:05:51","\u003Cdiv align=\"center\">\n\n\u003Cpicture>\n  \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"assets\u002Flogo-light.svg\" \u002F>\n  \u003Csource media=\"(prefers-color-scheme: light)\" srcset=\"assets\u002Flogo-dark.svg\" \u002F>\n  \u003Cimg src=\"assets\u002Flogo.svg\" alt=\"agy-fast logo\" width=\"80\" \u002F>\n\u003C\u002Fpicture>\n\n# agy-fast\n\n**Latency, Token-Quota & Tool-Call Accelerator Plugin for Google Antigravity**\n\n[![Version](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fv\u002Ftag\u002FINK-Q\u002Fagy-fast?label=version&sort=semver&style=flat-square&color=38BDF8&labelColor=0F172A)](CHANGELOG.md)\n[![GitHub Stars](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fstars\u002FINK-Q\u002Fagy-fast?style=flat-square&color=FACC15&labelColor=0F172A)](https:\u002F\u002Fgithub.com\u002FINK-Q\u002Fagy-fast\u002Fstargazers)\n[![Node.js >= 20](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fnode-%3E%3D20-22C55E?style=flat-square&logo=node.js&logoColor=white&labelColor=0F172A)](#quick-start)\n[![Runtime Dependencies: 0](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fruntime%20deps-0-38BDF8?style=flat-square&labelColor=0F172A)](#how-it-works)\n[![Platforms](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fplatform-macOS%20%7C%20Linux%20%7C%20Windows-64748B?style=flat-square&labelColor=0F172A)](#quick-start)\n[![MIT License](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-22C55E?style=flat-square&labelColor=0F172A)](LICENSE)\n[![Glama MCP Server](https:\u002F\u002Fglama.ai\u002Fmcp\u002Fservers\u002FINK-Q\u002Fagy-fast\u002Fbadges\u002Fscore.svg)](https:\u002F\u002Fglama.ai\u002Fmcp\u002Fservers\u002FINK-Q\u002Fagy-fast)\n[![HOL Guard Verified](https:\u002F\u002Fimg.shields.io\u002Fendpoint?url=https%3A%2F%2Fhol.org%2Fapi%2Fregistry%2Fbadges%2Fplugin%3Fslug%3Dink-q%252Fagy-fast%26metric%3Dscore&style=flat-square&labelColor=0F172A)](https:\u002F\u002Fhol.org\u002Fregistry\u002Fplugins\u002Fink-q%2Fagy-fast?utm_source=hol_marketplace&utm_medium=plugins_badge&utm_campaign=plugins&utm_content=ink-q%2Fagy-fast&ref=plugin-author-5dc88d78)\n\nEnglish · [简体中文](README.zh-CN.md) · [Quick Start](#quick-start) · [Benchmarks](#real-world-benchmarks) · [MCP Tools](#the-5-mcp-tools) · [Analysis Report](docs\u002FANALYSIS_REPORT.md) · [Changelog](CHANGELOG.md)\n\n\u003C\u002Fdiv>\n\n\u003Cbr \u002F>\n\n**`agy-fast`** is a zero-dependency, policy-compliant local [MCP](https:\u002F\u002Fmodelcontextprotocol.io\u002F) 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\u002Ftest 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.\n\n| LLM Turns \u002F 10 Actions | Est. Billable Quota | Tool-Return Upload | Spills & Native UI Impact |\n| :---: | :---: | :---: | :---: |\n| **-33.7%**\u003Cbr>\u003Csub>`-38.2%` ≥150k ctx · `-58.8%` subagents\u003C\u002Fsub> | **-31.5%**\u003Cbr>\u003Csub>`-36.5%` ≥150k ctx · `-54.0%` subagents\u003C\u002Fsub> | **-39.7%**\u003Cbr>\u003Csub>`-53.7%` uncached fresh input\u003C\u002Fsub> | **0**\u003Cbr>\u003Csub>`≤8.8 KB` inline cap · Native diff & UI untouched\u003C\u002Fsub> |\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002Fdemo-before-after.gif\" alt=\"agy-fast Before vs. After multi-file workflow comparison: 6 turns (48.2s) reduced to 2 turns (14.1s) with 0 disk spills\" width=\"100%\" \u002F>\n\u003C\u002Fp>\n\n## Quick Start\n\n**Requirements:** **Node.js >= 20** (no `npm install` needed — pre-built, unminified zero-dependency ESM bundles are included in `dist\u002F`). Optional: [`ripgrep` (`rg`)](https:\u002F\u002Fgithub.com\u002FBurntSushi\u002Fripgrep) for faster code search (automatically falls back to pure Node.js when absent).\n\n### One-Command Install (Recommended)\n\nInstalls runtime files to `~\u002F.gemini\u002Fconfig\u002Fplugins\u002Fagy-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:\n\n**macOS \u002F Linux:**\n```bash\ncurl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002FINK-Q\u002Fagy-fast\u002Fmain\u002Finstall.sh | sh\n```\n\n**Windows (PowerShell):**\n```powershell\nirm https:\u002F\u002Fraw.githubusercontent.com\u002FINK-Q\u002Fagy-fast\u002Fmain\u002Finstall.ps1 | iex\n```\n\n> [!TIP]\n> **Activating in Desktop 2.0 \u002F IDE:** Open **Customizations → Installed** in Antigravity, confirm `agy-fast` is enabled, and start a **new session** to load the `SessionStart` hook and MCP tools.\n\n\u003Cdetails>\n\u003Csummary>More installation options (local clone, direct git clone, \u003Ccode>agy\u003C\u002Fcode> CLI, per-repo team install, or ask Antigravity)\u003C\u002Fsummary>\n\n#### Local Clone (Any OS)\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002FINK-Q\u002Fagy-fast.git\ncd agy-fast\nnode scripts\u002Finstall.mjs install\n```\n\n#### Direct Clone into Antigravity Plugins Directory (No Script Needed)\nAntigravity automatically discovers plugins placed in `~\u002F.gemini\u002Fconfig\u002Fplugins\u002F`:\n\n```bash\n# macOS \u002F Linux\ngit clone https:\u002F\u002Fgithub.com\u002FINK-Q\u002Fagy-fast.git ~\u002F.gemini\u002Fconfig\u002Fplugins\u002Fagy-fast\n```\n\n```powershell\n# Windows (PowerShell)\ngit clone https:\u002F\u002Fgithub.com\u002FINK-Q\u002Fagy-fast.git \"$env:USERPROFILE\\.gemini\\config\\plugins\\agy-fast\"\n```\n\n#### Native Antigravity CLI (`agy`)\n```bash\nagy plugin install \u002Fpath\u002Fto\u002Fagy-fast\nagy plugin enable agy-fast\n```\n\n#### Per-Repository Installation (Team Sharing)\nInstall only for a single repository (writes to `\u003Crepo>\u002F.agents\u002Fplugins\u002Fagy-fast`):\n```bash\nnode scripts\u002Finstall.mjs install --project \u002Fpath\u002Fto\u002Fyour-repo\n```\n\n#### Ask Antigravity Directly\nPaste this prompt into Antigravity:\n```text\nClone https:\u002F\u002Fgithub.com\u002FINK-Q\u002Fagy-fast.git to ~\u002F.gemini\u002Fconfig\u002Fplugins\u002Fagy-fast, run `node ~\u002F.gemini\u002Fconfig\u002Fplugins\u002Fagy-fast\u002Fscripts\u002Finstall.mjs doctor`, and enable the agy-fast plugin.\n```\n\n\u003C\u002Fdetails>\n\n## How It Works\n\nEmpirical analysis of **55 real Antigravity sessions** (**8,446 LLM turns**, **17,302 tool calls**, **55.25 hours** of single-agent active time; see [docs\u002FANALYSIS_REPORT.md](docs\u002FANALYSIS_REPORT.md)) revealed that slow tasks are rarely limited by token generation speed. Instead, four structural bottlenecks dominate wall-clock time:\n\n| Measured Bottleneck | Empirical Cost | How `agy-fast` Eliminates It |\n| :--- | :--- | :--- |\n| **Per-turn TTFT floor** | `~6.1 s` median TTFT (`79%` of a median turn; `68.1%` of turns emit `\u003C700` tokens) | Batches an average of **4.89** logical actions per MCP call (`5.95×` in subagents), cutting unnecessary round-trip turns (`~6–8 s` each) |\n| **Serial checks & fragmented ops** | `52.5%` of `edit_file` calls are same-file splits; `46.3%` of `run_command` calls are read-only searches (`~2.0 s` median vs `2.1 ms` local `rg`) | Consolidates up to 20 searches, 50 file edits + `verify`, or 12 build\u002Ftest commands inside one persistent local Stdio MCP server |\n| **Cold-start exploration** | First 3 turns average **49.2 seconds** inspecting directory layout, git state, and scripts | `SessionStart` hook injects a `≤1.5 KB` snapshot (git state, 2-level tree, multi-module scripts) once in `~35–50 ms` |\n| **Context bloat & cache decay** | `read_file` accounts for **81.9%** of tool-returned bytes; `>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 |\n\n### Hybrid Execution Architecture\n\n`agy-fast` never replaces fast native reads. It combines batched local MCP tools with Antigravity's locally allowlisted `read_file` (`~7 ms`, `46 KB\u002Fcall` inline, zero remote check):\n\n\u003Cp align=\"center\">\n  \u003Cpicture>\n    \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"assets\u002Farchitecture-dark.svg\" \u002F>\n    \u003Csource media=\"(prefers-color-scheme: light)\" srcset=\"assets\u002Farchitecture-light.svg\" \u002F>\n    \u003Cimg alt=\"agy-fast Hybrid Execution Architecture\" src=\"assets\u002Farchitecture-light.svg\" width=\"100%\" \u002F>\n  \u003C\u002Fpicture>\n\u003C\u002Fp>\n\n### Plugin Components\n\n| Component | Path | Role |\n| :--- | :--- | :--- |\n| **Plugin Manifest** | [`plugin.json`](plugin.json) | Standard Antigravity manifest; passes `agy plugin validate --strict` |\n| **Local Stdio MCP Server** | [`mcp_config.json`](mcp_config.json) → [`dist\u002Fmcp-server.mjs`](dist\u002Fmcp-server.mjs) | Persistent local process exposing 5 eagerly loaded composite tools (`\"eager\": true`) under `agy-fast_fast` |\n| **Startup Snapshot Hook** | [`hooks.json`](hooks.json) → [`dist\u002Fsession-start.mjs`](dist\u002Fsession-start.mjs) | Runs once on `SessionStart` (`~35–50 ms`, `250 ms` scan circuit-breaker + OS\u002Fhome-dir skip list), emitting a `≤1.5 KB` workspace snapshot |\n| **Routing & Hygiene Rules** | [`rules\u002FAGENTS.md`](rules\u002FAGENTS.md) | Compact (`~6.5 KB`) routing guide with inlined schemas (supports user-owned `rules\u002FAGENTS.local.md` with `trigger: always_on` frontmatter, preserved across updates) |\n| **Background Auto-Updater** | [`dist\u002Fupdater.mjs`](dist\u002Fupdater.mjs) | Detached 4 h release checker with staged MCP smoke verification |\n| **Offline Benchmark CLI** | [`dist\u002Fbenchmark.mjs`](dist\u002Fbenchmark.mjs) | Local `transcript.jsonl` analyzer and before\u002Fafter A\u002FB comparator |\n\n## Real-World Benchmarks\n\nAcross **10 days of sanitized real coding transcripts** (**14 baseline main sessions \u002F 5,771 turns** vs. **7 `agy-fast` main sessions \u002F 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):\n\n| Metric *(normalized per logical action)* | Main Sessions (Baseline) | Main Sessions (`agy-fast`) | Delta | `≥150k` Long Context | Subagents |\n| :--- | ---: | ---: | ---: | ---: | ---: |\n| **LLM turns \u002F 10 actions** | 5.23 | **3.47** | **-33.7%** | **-38.2%** | **-58.8%** |\n| **Upstream requests \u002F 10 actions** *(LLM + remote checks)* | 9.82 | **6.05** | **-38.4%** | **-42.6%** | **-62.0%** |\n| **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%)* |\n| **Uncached fresh input \u002F action** | 10,413 tok | **4,822 tok** | **-53.7%** | **-61.5%** | **-51.3%** |\n| **Est. billable quota \u002F action** *(1 : 0.1 : 5)* | 22,458 eq | **15,387 eq** | **-31.5%** | **-36.5%** | **-54.0%** |\n| **Tool-return upload \u002F action** *(actual local bytes)* | 5.06 KB | **3.05 KB** | **-39.7%** | **-42.6%** | **-13.3%** |\n| **Incremental text upload \u002F action** *(fresh input est.)* | 35.6 KB | **16.5 KB** | **-53.7%** | **-61.6%** | **-51.3%** |\n| **Full-context text upload \u002F action** *(stateless resend est.)* | 342.2 KB | **276.2 KB** | **-19.3%** | **-21.9%** | **-58.9%** |\n\n**Production hardening highlights (`v0.2.x`):**\n- **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.\n- **+75% effective throughput (`35.1 → 61.5 tok\u002Fs`)** and **`>60s` stall turns reduced from `31.2% → 7.4%`** in a same-session before\u002Fafter `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).\n- **0 lazy-load schema-read turns** — compact schemas are inlined directly in [`rules\u002FAGENTS.md`](rules\u002FAGENTS.md).\n\n\u003Cdetails>\n\u003Csummary>Methodology, quota sensitivity &amp; fixed prompt overhead\u003C\u002Fsummary>\n\n- **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`\u002F`edit_file`\u002F`run_command` counts as 1 action—ensuring apples-to-apples comparison per unit of work rather than raw tool-call counts.\n- **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%**).\n- **Fixed prompt overhead:** `rules\u002FAGENTS.md` + `SessionStart` snapshot add **~1.7k tokens** once per session (cached from turn 2 onward, `~170` eq tokens\u002Fturn). Avoiding a single redundant turn (`~44k` eq tokens) or blind full-file read pays back this overhead **>20×**.\n\n\u003C\u002Fdetails>\n\n### Verify on Your Own Transcripts (100% Offline)\n\nMeasure your own Antigravity sessions locally — nothing ever leaves your machine:\n\n```bash\n# Summarize all local Antigravity transcripts\nnode dist\u002Fbenchmark.mjs analyze --local\n\n# Analyze only the 10 most recently modified local transcripts\nnode dist\u002Fbenchmark.mjs analyze --local --recent 10\n\n# Slice sessions since install time and compare With vs. Without agy-fast\nnode dist\u002Fbenchmark.mjs analyze --local --since 2026-11-19T12:51:00+08:00 --split-usage\n\n# Compare two task runs (before vs. after)\nnode dist\u002Fbenchmark.mjs compare --before .\u002Frun-before\u002Ftranscript.jsonl --after .\u002Frun-after\u002Ftranscript.jsonl\n```\n\n## The 5 MCP Tools\n\n| Scenario | Preferred Tool | Why |\n| :--- | :--- | :--- |\n| Run ≥2 text, regex, glob, fuzzy, or read-only git queries | **`batch_search`** | 1 call for up to 20 concurrent queries (`\u003C70 ms` local) |\n| Map unknown large files (`>300` lines) | **`quick_outline`** *(or **`read_slices`**)* | Flat `paths`-only symbol outlines across up to 40 files without full-file dumps |\n| Read small files (`\u003C300` lines) or known line ranges | Built-in `read_file` | Locally allowlisted (`~7 ms`, `46 KB\u002Fcall`, 0 remote check) |\n| Edit ≥2 hunks\u002Ffiles in one turn, or edit + verify | **`apply_edits`** | Atomic or `bestEffort` multi-file edits + optional inline `verify` |\n| Run ≥2 independent build, lint, test, or diagnostic commands | **`run_checks`** | Concurrent execution with head-tail folded error-focused output |\n\n### 1. `batch_search` — Concurrent Code, Path & Read-Only Git Search\n- **Up to 20 mixed queries per call:** `text`, `regex`, `glob`, `fuzzy`, and read-only `git` (`status`, `diff`, `log`, `show`, `branch`, `rev-parse`, `ls-files`, `blame`, `shortlog`, `describe`, `tag --list`, `remote -v`), including cross-repo lookups via per-query `path`.\n- **Precision controls:** Filter by `fileType` (e.g., `typescript`, `python`, `gdscript`) or `glob`, switch `outputMode` (`content` | `files_with_matches` | `count`), enable cross-line `multiline: true` (where `count` reports occurrences per file), use `type: \"fuzzy\"` for case-insensitive path matching, or pass `sortBy: \"mtime\"` on `glob` queries for newest-first results.\n- **Resilient & inline-safe:** Uses `rg` when installed with automatic Node.js fallback, auto-recovers common LLM `glob` mistakes (`|` alternation and bare keywords), and enforces the `≤8.8 KB` UTF-8 cap.\n\n### 2. `apply_edits` — Atomic Multi-Hunk & Multi-File Edits + Verify\n- **Up to 50 files per call:** Validates every hunk and overlap in memory before touching disk (`0` files modified on error), or pass `bestEffort: true` on larger batches so valid files commit atomically per file while failed files return closest-line \u002F drifted-line snippets for targeted retry.\n- **Faithful file handling:** Preserves CRLF line endings, file permissions, and symlinks; supports `startLine`\u002F`endLine`, `replaceAll`, `create`\u002F`overwrite`, and `dryRun`.\n- **Inline `verify`:** Optionally runs a build\u002Ftypecheck\u002Ftest command right after writing, stripping noisy logs (e.g., Pino\u002FBunyan info JSON, Maven footers) so root causes stay within budget.\n\n### 3. `quick_outline` — Flat Multi-Language Symbol Outlines\n- **Up to 40 files per call** *(10–20 recommended per batch)*: Takes a flat `paths: string[]` array to extract exact `[startLine, endLine]` symbol\u002Fsection maps for **TypeScript \u002F JavaScript** *(incl. Fastify\u002FExpress routes & test blocks)*, **HTML \u002F Vue \u002F Svelte**, **CSS \u002F SCSS \u002F Less**, **Python**, **Godot GDScript (`.gd`)**, **Go**, **Rust**, **Java \u002F Kotlin \u002F C# \u002F Swift \u002F C \u002F C++**, **Shell**, **Markdown**, and **JSON \u002F YAML**—making outline-first exploration effortless before parallel built-in `read_file`.\n\n### 4. `read_slices` — Symbol Outlines + Targeted Line Slices\n- **Outlines + piggybacked slices:** Supports the same 15-format outlines (with breadth-first water-filling per file) plus optional tiny `[startLine, endLine]` slices in one call under the `≤8.8 KB` UTF-8 budget, while steering bulk range reads (`>150` lines) to parallel built-in `read_file`.\n\n### 5. `run_checks` — Concurrent Build, Lint, Test & Diagnostic Runner\n- **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\u002Faliases untouched.\n- **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\u002Fstack tails survive the `≤8.8 KB` inline cap; `full` preserves stdout for diagnostic or audit scripts with Head-Tail folding when capped.\n\n\u003Cdetails>\n\u003Csummary>Example batched MCP calls (JSON payloads)\u003C\u002Fsummary>\n\n**`batch_search` — 3 heterogeneous queries in one call:**\n```json\n{\n  \"queries\": [\n    { \"type\": \"regex\", \"pattern\": \"export (async )?function\", \"fileType\": \"typescript\", \"outputMode\": \"files_with_matches\" },\n    { \"type\": \"fuzzy\", \"pattern\": \"mcp server\" },\n    { \"type\": \"git\", \"pattern\": \"status --short\" }\n  ]\n}\n```\n\n**`apply_edits` — Multi-file edit + inline typecheck in one call:**\n```json\n{\n  \"edits\": [\n    { \"path\": \"src\u002Fa.ts\", \"hunks\": [{ \"target\": \"oldCall()\", \"replacement\": \"newCall()\" }] },\n    { \"path\": \"src\u002Fb.ts\", \"hunks\": [{ \"target\": \"v1\", \"replacement\": \"v2\", \"startLine\": 10, \"endLine\": 25 }] }\n  ],\n  \"bestEffort\": true,\n  \"verify\": \"npm run typecheck\"\n}\n```\n\n\u003C\u002Fdetails>\n\n## Updates, Diagnostics, and Uninstall\n\n### Day-to-Day CLI Reference\n\n| Task | Command |\n| :--- | :--- |\n| **Health check** *(Node, `rg`, live MCP handshake, `SessionStart` latency, manifest validation)* | `node ~\u002F.gemini\u002Fconfig\u002Fplugins\u002Fagy-fast\u002Fscripts\u002Finstall.mjs doctor` |\n| **Check for updates** *(read-only)* | `node ~\u002F.gemini\u002Fconfig\u002Fplugins\u002Fagy-fast\u002Fscripts\u002Finstall.mjs update --check` |\n| **Update now** *(stages & runs MCP smoke test before swapping)* | `node ~\u002F.gemini\u002Fconfig\u002Fplugins\u002Fagy-fast\u002Fscripts\u002Finstall.mjs update` |\n| **Configure auto-update** *(`auto` \\| `notify` \\| `off`)* | `node ~\u002F.gemini\u002Fconfig\u002Fplugins\u002Fagy-fast\u002Fscripts\u002Finstall.mjs config --auto-update notify --interval 24` |\n| **Switch MCP tool loading** *(`eager` \\| `lazy`, preserved across updates)* | `node ~\u002F.gemini\u002Fconfig\u002Fplugins\u002Fagy-fast\u002Fscripts\u002Finstall.mjs config --tool-loading lazy` |\n| **Uninstall cleanly** | `node ~\u002F.gemini\u002Fconfig\u002Fplugins\u002Fagy-fast\u002Fscripts\u002Finstall.mjs uninstall` |\n\n> From a local repository clone, `.\u002Finstall.sh \u003Ccommand>` (macOS\u002FLinux) and `.\\install.ps1 \u003Ccommand>` (Windows) accept the same subcommands (`doctor`, `update`, `config`, `uninstall`).\n\n### Zero-Latency Background Auto-Updater\n\n- **0 ms session startup cost:** Every **4 hours**, `SessionStart` spawns a detached background process (`dist\u002Fupdater.mjs`) *after* emitting the workspace snapshot.\n- **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\u002FAGENTS.local.md` (add `---\\ntrigger: always_on\\n---` YAML frontmatter so Antigravity loads it; gitignored for `git clone` installs).\n- **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.\n\n\u003Cdetails>\n\u003Csummary>Environment variable overrides &amp; applying updates\u003C\u002Fsummary>\n\n| Environment Variable | Values \u002F Default | Purpose |\n| :--- | :--- | :--- |\n| `AGY_FAST_AUTO_UPDATE` | `auto` *(default)* \\| `notify` \\| `off` | Overrides saved auto-update mode |\n| `AGY_FAST_UPDATE_INTERVAL_HOURS` | `12` *(default; `1..720`)* | Background check interval in hours |\n| `AGY_FAST_UPDATE_CHANNEL` | `release` *(default)* \\| `main` | Track stable semver release tags or `main` |\n| `AGY_FAST_REPO` | Git URL | Use a custom mirror or fork |\n| `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) |\n| `AGY_FAST_HOST` | e.g. `cli@1.5.14`, `ide@2.7.0`, `desktop@2.34.0` | Overrides auto-detected Antigravity host surface & version |\n\n**Applying updates:** Updated `rules\u002FAGENTS.md` and `dist\u002Fsession-start.mjs` take effect automatically on the next new session. In Antigravity Desktop 2.0 \u002F IDE, reload or restart the window once to refresh the resident MCP server process.\n\n\u003C\u002Fdetails>\n\n## Policy Compliance and Safety\n\n- **Official interfaces only:** Built exclusively on documented Antigravity extension APIs (`plugin.json`, `mcp_config.json`, `hooks.json`, `rules\u002FAGENTS.md`).\n- **Non-invasive by design:** Never alters or interferes with Antigravity's native UI, **diff viewer\u002Fwindow**, **modified-files list**, checkpoints, or built-in tools.\n- **No safety or binary tampering:** Does not patch client binaries, alter authentication, or bypass Antigravity's built-in safety evaluations.\n- **Zero per-step blocking hooks:** Registers no `PreToolUse`, `PostToolUse`, `PreInvocation`, `PostInvocation`, or `Stop` hooks.\n- **Fail-open startup hook:** On unreadable directories or malformed stdin, `SessionStart` returns `{}` and exits cleanly—never blocking a session.\n- **Local-first & auditable:** All 5 MCP tools and the benchmark CLI run 100% locally with zero code or transcript uploads; shipped `dist\u002F*.mjs` bundles are unminified ESM so every executed line is directly auditable.\n\n## FAQ\n\n### Does `agy-fast` affect Antigravity's native UI, diff viewer, or modified-files list?\nNo. `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\u002Fwindow, modified-files list, checkpoints, built-in tools, or safety checks.\n\n### Does `agy-fast` save token quota and upload bandwidth in addition to reducing latency?\nYes. 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%**.\n\n### Does `agy-fast` replace Antigravity's built-in `read_file` or `edit_file` tools?\nNo — it complements them in a hybrid workflow. Built-in `read_file` is locally allowlisted (`~7 ms`, `46 KB\u002Fcall`, 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\u002Fmulti-file edits with inline `verify`, and concurrent checks via MCP.\n\n### Which Antigravity editions and operating systems are supported?\n`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`\u002F`rg` with automatic pure-Node.js fallback).\n\n### Does `agy-fast` send any code or transcript data to external servers?\nNo. 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`.\n\n### How do I verify the speedup or uninstall `agy-fast` cleanly?\nRun `node dist\u002Fbenchmark.mjs analyze --local --split-usage` to benchmark your own local transcripts completely offline. To remove `agy-fast` at any time, run `node ~\u002F.gemini\u002Fconfig\u002Fplugins\u002Fagy-fast\u002Fscripts\u002Finstall.mjs uninstall`.\n\n## Development\n\n```bash\nnpm install\nnpm run typecheck   # Strict TypeScript check\nnpm run build       # Bundle src\u002F*.ts -> dist\u002F*.mjs with esbuild\nnpm test            # Run unit, MCP protocol, hook, benchmark, and installer tests\nnpm run bench:stress # Run 12-scenario end-to-end stress & performance benchmark\nnpm run validate    # Run `agy plugin validate --strict .`\n```\n\n## MCP Directory\n\n\u003Ca href=\"https:\u002F\u002Fglama.ai\u002Fmcp\u002Fservers\u002FINK-Q\u002Fagy-fast\">\n  \u003Cimg width=\"380\" src=\"https:\u002F\u002Fglama.ai\u002Fmcp\u002Fservers\u002FINK-Q\u002Fagy-fast\u002Fbadge\" alt=\"agy-fast MCP server on Glama\" \u002F>\n\u003C\u002Fa>\n\n## Star History\n\n\u003Ca href=\"https:\u002F\u002Fwww.star-history.com\u002F#INK-Q\u002Fagy-fast&Date\">\n  \u003Cpicture>\n    \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"https:\u002F\u002Fapi.star-history.com\u002Fsvg?repos=INK-Q\u002Fagy-fast&type=Date&theme=dark\" \u002F>\n    \u003Csource media=\"(prefers-color-scheme: light)\" srcset=\"https:\u002F\u002Fapi.star-history.com\u002Fsvg?repos=INK-Q\u002Fagy-fast&type=Date\" \u002F>\n    \u003Cimg alt=\"Star History Chart\" src=\"https:\u002F\u002Fapi.star-history.com\u002Fsvg?repos=INK-Q\u002Fagy-fast&type=Date\" \u002F>\n  \u003C\u002Fpicture>\n\u003C\u002Fa>\n\n## License\n\n[MIT](LICENSE)\n","2026-11-24 04:54:38","CREATED_QUERY"]