Skip to content

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

4.6 KB
Raw Blame

Security Policy

Supported Versions

Security fixes are applied to the latest release and the main branch:

Version Supported
main / latest 0.3.x :white_check_mark:
< 0.3.0 :x:

Security Model

agy-fast is designed to be auditable, reproducible, and minimally privileged:

  • Zero runtime dependencies — pre-built, unminified single-file ESM bundles in dist/ (package.json has zero dependencies, eliminating transitive node_modules supply-chain risk).
  • 100% local execution — the MCP server runs over local Stdio (node dist/mcp-server.mjs) and never sends source code, transcripts, or prompts to any third-party endpoint.
  • Workspace write boundary & .git guard — apply_edits defaults to refusing file writes and verify.cwd targets outside workspace cwd (including ../, out-of-workspace absolute paths, symlink/directory-symlink escapes, and .git internal metadata; opt out explicitly via AGY_FAST_ALLOW_OUTSIDE_CWD=1), and rules/AGENTS.md prohibits write tools in read-only Plan Mode.
  • Read-only Git allowlist & least-privilege mode — batch_search strictly restricts git queries to an allowlist of read-only subcommands and blocks flag injection (-c, --git-dir, --ext-diff, etc.). Users who want a strictly read-only MCP process can expose only --tools batch_search,quick_outline,read_slices.
  • Notify-by-default updater with anti-tag-hijacking & SHA-256 verification — background update checks default to notify-only (never silently overwriting local dist/*.mjs or rules unless you run update or explicitly opt in via config --auto-update auto; disable all network checks with config --auto-update off / AGY_FAST_AUTO_UPDATE=off). Checks only contact github.com / api.github.com / objects.githubusercontent.com / release-assets.githubusercontent.com over HTTPS, pin observed release tag → commit SHAs (knownTagCommits) to hard-refuse force re-tagged / hijacked tags, verify cloned HEAD matches the peeled commit SHA, verify GitHub Release SHA256SUMS.txt digests (strictly required when AGY_FAST_REQUIRE_CHECKSUMS=1), and run a live MCP smoke test in an isolated staging dir before atomic swap.
  • Immutable release pipeline & build provenance — v* tags are protected against deletion/updates, GitHub Actions workflows pin third-party actions to full 40-char commit SHAs, and releases publish SHA256SUMS.txt plus SLSA build provenance attestations (actions/attest-build-provenance).

2-Minute Independent Supply-Chain Audit

Any developer can independently verify agy-fast locally without trusting pre-built binaries:

  1. Confirm zero runtime dependencies: Inspect package.json — only 3 build-time devDependencies (esbuild, typescript, @types/node), zero dependencies.
  2. Verify reproducible bundles (dist/ == src/):
    git clone --branch v0.3.4 --depth 1 https://github.com/INK-Q/agy-fast.git
    cd agy-fast && npm ci && npm run build && git diff --exit-code -- dist/
    
    Exit code 0 proves every line of dist/*.mjs matches the readable TypeScript source byte-for-byte.
  3. Audit outbound network & process sinks:
    rg "fetch\(|https?://|http\.request|net\.connect|child_process" src/
    
    Confirm the only outbound network calls are optional GitHub Release checks inside src/utils/updater-core.ts.
  4. Verify Release checksums & SLSA provenance attestation (releases >= v0.3.4):
    # Linux (filter the 3 leading '#' metadata comment lines for --strict cleanliness)
    grep -v '^#' SHA256SUMS.txt | sha256sum -c -
    # macOS
    grep -v '^#' SHA256SUMS.txt | shasum -a 256 -c -
    gh attestation verify dist/mcp-server.mjs --repo INK-Q/agy-fast
    
  5. Lock down runtime surface (optional):
    • Air-gapped / 0 network: node ~/.gemini/config/plugins/agy-fast/scripts/install.mjs config --auto-update off
    • Strict checksum enforcement on updates: AGY_FAST_REQUIRE_CHECKSUMS=1
    • Read-only MCP: --tools batch_search,quick_outline,read_slices (or AGY_FAST_TOOLS)
    • Pinned install: clone a specific tag (git checkout v0.3.4 && ./install.sh) or run npx [email protected] instead of tracking main.

Reporting a Vulnerability

Please do not open a public GitHub issue for suspected security vulnerabilities.

Instead, report vulnerabilities privately via GitHub Security Advisories:

Include reproduction steps, affected file paths or commit SHA, and potential impact. You can expect an initial acknowledgment within 72 hours and a coordinated disclosure once a fix is verified and released.