A free, local-first, zero-dependency developer productivity toolkit for Google Antigravity, any MCP client (Claude Desktop, Cursor, Windsurf, Cline), or standalone use — featuring a Prompt Library, AI Strategic Roadmap Planner, Codebase Ideation & Security Auditor, and Agency Agents Integration Hub.
Try it in 30 seconds (no API key or IDE setup required):
git clone https://github.com/spyshow/antigravity-tools.git && cd antigravity-tools && npm install && npm run build && npm run uiOr install directly into Google Antigravity with one command:
npm run install-plugin(preview first withnode dist/cli.js install-plugin --dry-run).
- Why Antigravity Tools?
- Core Modules & Features
- Installation
- Configuration, AI Modes & Local Data Storage
- Usage Guide
- Architecture & Directory Structure
- Development & Testing
- Troubleshooting
- Community & Contributing
- License
Antigravity Tools brings four engineering productivity workflows into a single local-first TypeScript/Node.js plugin with zero third-party runtime dependencies:
- Four Surfaces, One Core: Use the interactive Antigravity Sidecar Aux Pane, call any of 23 MCP tools from your AI agent, run the Standalone Web Dashboard (
http://localhost:4321), or automate via the CLI. - Zero Runtime Dependencies: Built exclusively on Node.js (
18+) and TypeScript (5.7+) — works across Windows, macOS, and Linux without external package bloat. - Read-Only Project Scanning & Workspace Isolation: Per-project discovery, competitor insights, roadmaps, and ideation reports are saved inside
~/.gemini/antigravity-toolkit/workspaces/<slug>_<hash>/. Scanning a repository never creates or modifies files inside that repo unless you explicitly click Export (ROADMAP.md/IDEATION.md) or run Agency Integration. - Silent Background Workers: Codebase scans run inside isolated Node.js
worker_threads(src/modules/ai/scan-worker.ts), keeping the sidecar HTTP server responsive without spawning extra visible conversations in your Antigravity sidebar. - Offline-First with Optional Gemini AI: Works immediately offline using built-in Deep Code Comprehension, or upgrades automatically when a Gemini API key is configured (
GEMINI_API_KEY) or an AI agent saves reports directly via MCP. - Sandboxed Sidecar Clipboard Bridge: Copying prompts inside restricted sidecar iframes routes through
POST /api/clipboard(src/web/server.ts) and native OS utilities (Set-Clipboard/clip.exeon Windows,pbcopyon macOS,wl-copy/xclip/xselon Linux).
┌─────────────────────────────────────────────────────────────────────────────────────────┐
│ ANTIGRAVITY TOOLS │
├──────────────────────┬──────────────────────────┬───────────────────────┬───────────────┤
│ 📚 PROMPT LIBRARY │ 🗺️ STRATEGIC ROADMAP │ 💡 CODEBASE IDEATION │ 🤖 AGENCY HUB │
├──────────────────────┼──────────────────────────┼───────────────────────┼───────────────┤
│ • {{var}} Templates │ • Codebase Introspection │ • Feature Ideas (ci) │ • 280+ Agents │
│ • {{var:default}} │ • Competitor Benchmarks │ • Perf Audits (perf) │ • /pipeline │
│ • Live Preview Modal │ • 3-Phase MoSCoW Plan │ • Security (sec / CWE)│ • [CALL_AGENT]│
│ • Native OS Paste │ • Status & Delete Ctrl │ • Quality & Tech Debt │ • Registry MD │
│ • JSON Import/Export │ • Export ROADMAP.md │ • 0-100 Health Scores │ • Quick Prompts│
│ • 8 MCP Tools │ • 7 MCP Tools │ • 5 MCP Tools │ • 3 MCP Tools │
└──────────────────────┴──────────────────────────┴───────────────────────┴───────────────┘
- Smart Template Variables: Write reusable prompts with
{{variable}}or fallback defaults{{variable:defaultValue}}. Variables are auto-detected on save and rendered in an interactive split-pane modal with a live preview and character counter. - One-Click System Clipboard Paste: Fill placeholders and inject rendered prompts straight into your OS clipboard (
Ctrl+Vready in chat or editor), backed by the server-side clipboard bridge inside Antigravity sidecar iframes. - Curated Starter Seeds: Ships with 5 pre-seeded engineering prompts (
code-review-senior,systematic-debugging,tdd-feature-implement,clean-refactoring,architecture-rfc). - Search, Organization & Backup: Instant search (
Ctrl+K), category pills, tags, ⭐ favorites toggle, usage counter, and JSON import/export withmergeorreplacemodes.
Inspired by the autonomous planning architecture in AndyMik90/Aperant:
- Automated Project Discovery (
🔬 Scan): Inspects manifests (package.json,pyproject.toml,Cargo.toml,go.mod, etc.), source files, and documentation to detect primary language, frameworks, project type, target personas, existing capabilities, and feature gaps. - Competitor Intelligence (
🥊 Rivals): Benchmarks direct and indirect market alternatives, extracting pain points with severity/impact ratings (CP-xx) and market differentiation gaps (GAP-xx). - 3-Phase MoSCoW Roadmap (
⚡ Generate Roadmap): Synthesizes discovery and competitor gaps into a phased Must / Should / Could / Won't board:- Phase 1: Foundation & Core Experience
- Phase 2: Competitor Differentiation & Workflow Power
- Phase 3: Scale, Ecosystem & Autonomous Intelligence
- Interactive Feature Controls: Update feature status (
idea,planned,in_progress,completed), filter by MoSCoW priority, review user stories and acceptance criteria, copy ready-to-run AI implementation prompts (Copy Prompt for Feature), delete individual features (🗑️ Delete), or clear the workspace's roadmap, discovery, and competitor data (🗑️ Delete in the toolbar). - Publication-Ready Export (
📄 Export): Writes a structuredROADMAP.mddirectly to the active project root.
A 4-pillar static analysis and opportunity discovery engine:
- 🚀 Code-Revealed Feature Discoveries (
ci-xxx): Feature ideas grounded in your project's real modules and extension points. - ⚡ Performance Optimizations (
perf-xxx): Flags blocking synchronous I/O, caching opportunities, and runtime/bundle bottlenecks. - 🛡️ Security Hardening (
sec-xxx): Audits for path traversal (CWE-22), hardcoded credentials (CWE-798), permissive CORS (CWE-942), unsafe eval/DOM patterns, and authorization gaps. - 🧹 Code Quality & Tech Debt (
cq-xxx): Identifies oversized files, duplication, typing gaps, and missing test coverage.
Additional Ideation capabilities:
- 0–100 Health Scores Strip: Live quantitative scores across Security, Perf, Quality, and Ideas, recalculated automatically after audits or item deletions.
- Promote to Roadmap: Convert any finding (
ci-xxx,perf-xxx,sec-xxx,cq-xxx) into an active feature card on your MoSCoW roadmap with ➕ Promote to Roadmap. - Prompt Copying, Deletion & Export: Copy an implementation/remediation prompt for any finding (Copy Prompt), remove individual findings (🗑️ Delete), clear the workspace report (🗑️ Delete), or export
IDEATION.md(📄 Export IDEATION.md).
Native TypeScript bridge for the 280+ specialist skills from Agency Agents:
- Auto-Discovery (
🔄 Re-Scan): Scans~/.gemini/config/skills,~/.gemini/antigravity/skills,.agents/skills, andskills/to index installedagency-*skills and parse their frontmatter metadata. - 1-Click Integration (
⚡ Integrate Agency): Generates:docs/agency-registry.md— master table of detected specialist agents, descriptions, and skill paths..agents/workflows/agency-pipeline.md—/agency-pipelinemulti-agent squad router..agents/rules/inter-agent-calling.md—[CALL_AGENT]delegation protocol rule.agency-readme.md— end-to-end guide with ready-to-use scenarios.- Injects 5 curated Agency workflow prompts into your Prompt Library.
- Searchable Specialist Directory: Search all detected specialists by slug or description, copy agent identifiers (📋 Copy ID), copy pre-formatted
[CALL_AGENT]handoff blocks (✨ Call Agent), or launch Quick Prompt shortcuts (🚀 New Project, ✨ Add Feature, 🔬 Research, 🛡️ Reality Check).
- Displays the active project name and path in the persistent 📁 Project header bar.
- Sync: Queries Antigravity conversation metadata via
/preload.jsand/api/workspaceto snap to the active conversation's repository. - Change: Point Antigravity Tools to any folder path on disk; Roadmap, Ideation, and Agency views refresh immediately using isolated workspace storage.
- Node.js:
v18.0.0or higher (node -v) - npm:
v9.0.0or higher (npm -v) - Git: for cloning the repository
- Google Antigravity IDE: required for Sidecar Aux Pane and Plugin mode (Antigravity Plugins Docs)
- Linux only (for clipboard copy): at least one clipboard CLI installed —
wl-copy(Wayland),xclip, orxsel
git clone https://github.com/spyshow/antigravity-tools.git
cd antigravity-tools
npm install
npm run build
npm run install-pluginnpm run install-plugin automatically copies the plugin bundle into ~/.gemini/config/plugins/antigravity-tools and registers both the plugin and sidecar inside ~/.gemini/config/config.json (preserving all existing plugins and settings). Pass --dry-run (node dist/cli.js install-plugin --dry-run) to preview paths before writing anything.
(Optional) Verify everything compiles and passes all 34 tests:
npm testRestart Google Antigravity (or start a new session), click the Plugins icon in the right-hand Auxiliary Pane, and open Antigravity Tools.
Manual installation steps (if you prefer copying files and editing config.json yourself)
Windows (PowerShell):
$target = "$env:USERPROFILE\.gemini\config\plugins\antigravity-tools"
New-Item -ItemType Directory -Path $target -Force | Out-Null
Copy-Item -Path "dist", "src", "skills", "rules", "sidecars", "assets", "bin", "plugin.json", "mcp_config.json", "package.json", "README.md" -Destination $target -Recurse -ForcemacOS / Linux (Bash):
TARGET="$HOME/.gemini/config/plugins/antigravity-tools"
mkdir -p "$TARGET"
cp -R dist src skills rules sidecars assets bin plugin.json mcp_config.json package.json README.md "$TARGET"Then ensure ~/.gemini/config/config.json contains:
{
"plugins": {
"antigravity-tools": {
"enabled": true
}
},
"sidecars": {
"antigravity-tools/prompt_library": {
"projectId": "default",
"resolvedPermissions": null,
"schemaVersion": 1
}
}
}If you only want the 23 MCP tools in Antigravity or another MCP-compatible client, clone and build the repo first (npm install && npm run build), then add an entry to your MCP configuration pointing to dist/mcp-server.js:
{
"mcpServers": {
"antigravity-toolkit": {
"command": "node",
"args": ["/absolute/path/to/antigravity-tools/dist/mcp-server.js"]
}
}
}On Windows, use an escaped path such as "C:\\path\\to\\antigravity-tools\\dist\\mcp-server.js".
You can run the full 4-tab Web UI and CLI directly from your local clone without Antigravity:
# Start the local web dashboard (opens http://localhost:4321 automatically)
npm run ui
# Custom port or headless mode
node dist/cli.js ui --port 8080 --no-openOn Windows, you can also invoke the CLI via bin\agy-tools.cmd (or add ./bin to your PATH / run npm link).
cd antigravity-tools
git pull
npm install
npm run build
npm run install-pluginThen restart Google Antigravity.
- Deep Code Comprehension (Default — Offline / Zero Config): Works out of the box with no API key. Parses manifests, file trees, symbols, routes, and security patterns to produce codebase-specific Roadmaps and Ideation reports.
- Gemini API Mode (Optional): When
GEMINI_API_KEYorGOOGLE_API_KEYis configured (or saved via~/.gemini/antigravity-toolkit/ai-settings.json/POST /api/ai/settings), Roadmap and Ideation synthesis uses Gemini (gemini-2.5-flashby default) to generate deep code-aware JSON reports. - Agent-Authored MCP Mode: Your Antigravity AI agent can inspect files directly and persist custom findings via
roadmap_save_generatedandideation_save_generated.
| Variable | Default | Purpose |
|---|---|---|
GEMINI_API_KEY / GOOGLE_API_KEY |
(unset) | Enables optional Gemini REST calls for Roadmap and Ideation synthesis. |
AGY_AI_MODEL |
gemini-2.5-flash |
Overrides the Gemini model used for AI generation. |
AGY_AI_SETTINGS_PATH |
~/.gemini/antigravity-toolkit/ai-settings.json |
Custom JSON file path for stored AI settings. |
AGY_PROMPTS_PATH |
~/.gemini/antigravity-toolkit/prompts.json |
Custom JSON storage path for your Prompt Library. |
ANTIGRAVITY_SIDECAR_WEB_PORT / AGY_TOOLKIT_PORT |
4321 |
Preferred port for the Web/Sidecar HTTP server (automatically binds a free port if occupied). |
All plugin state lives under ~/.gemini/antigravity-toolkit/:
~/.gemini/antigravity-toolkit/
├── prompts.json # Saved & seed prompt templates
├── ai-settings.json # Optional Gemini API key & model config
└── workspaces/
└── <projectSlug>_<sha1Hash10>/
├── discovery.json # Project Discovery analysis
├── competitors.json # Competitor intelligence & pain points
├── roadmap.json # 3-phase MoSCoW roadmap & feature statuses
└── ideation.json # 4-pillar ideation & health score report
Open Plugins → Antigravity Tools in the right-hand Auxiliary Pane:
- Workspace Bar (
📁 Project): Verify the active repository path, click Sync to match your open conversation workspace, or click Change to target any project folder. - 📚 Prompts Tab:
- Search (
Ctrl+K) or filter by category/⭐ Favorites/tags. - Click Paste on any prompt card — fill
{{variables}}in the modal (if present) and click Copy & Paste to Clipboard. - Use + New Prompt, Import, and Export above the toolbar to manage your library.
- Search (
- 🗺️ Roadmap Tab:
- Click ⚡ Generate Roadmap to run full discovery, competitor analysis, and MoSCoW synthesis in a silent background worker, or run 🔬 Scan and 🥊 Rivals individually.
- Expand Project & Market Intelligence to inspect detected tech stack, gaps, and competitor pain points.
- Filter by MoSCoW priority (
All,🔴 Must,🟡 Should,🟢 Could,⚪ Won't), change feature statuses, click Copy Prompt for Feature, delete single features (🗑️ Delete), exportROADMAP.md(📄 Export), or clear the workspace's roadmap data (🗑️ Delete).
- 💡 Ideation Tab:
- Review the live Security / Perf / Quality / Ideas score strip.
- Click 💡 Run Ideation Audit to run a fresh 4-pillar codebase audit.
- Filter by
🚀 Features,⚡ Perf,🛡️ Security, or🧹 Quality. - Click ➕ Promote to Roadmap, Copy Prompt, or 🗑️ Delete on any card, 📄 Export IDEATION.md to save to disk, or 🗑️ Delete in the toolbar to clear the report.
- 🤖 Agency Tab:
- View detected specialist count and integration file checklist (
registry.md,pipeline.md,rules.md,readme.md). - Click ⚡ Integrate Agency to bootstrap Agency Agents files into your active workspace, or 🔄 Re-Scan after installing new skills.
- Launch Quick Prompts or search the directory to 📋 Copy ID / ✨ Call Agent.
- View detected specialist count and integration file checklist (
Antigravity Tools registers 23 MCP tools via mcp_config.json:
| Module | Tool Name | Description |
|---|---|---|
| Prompts (8) | prompt_list |
List prompts with optional filters (category, tag, search, favoriteOnly). |
prompt_get |
Fetch full template, metadata, and declared variables by ID or exact title. | |
prompt_search |
Quick keyword search across titles, descriptions, and templates. | |
prompt_render |
Interpolate {{variables}} without touching the clipboard. |
|
prompt_paste |
Render template with variables and copy directly to the OS clipboard. | |
prompt_save |
Create or update a prompt; auto-detects {{var}} and {{var:default}}. |
|
prompt_delete |
Delete a prompt from the library by ID. | |
prompt_categories |
List all categories, tags, and prompt counts. | |
| Roadmap (7) | roadmap_analyze_project |
Run codebase discovery (stack, personas, existing capabilities, gaps). |
roadmap_analyze_competitors |
Benchmark competitors, user complaints, and market gaps. | |
roadmap_generate |
Run the full roadmap pipeline and save roadmap.json for the workspace. |
|
roadmap_get |
Retrieve the saved roadmap, phases, features, and progress. | |
roadmap_update_feature |
Update feature status (idea, planned, in_progress, completed). |
|
roadmap_export_markdown |
Write formatted ROADMAP.md to the workspace root. |
|
roadmap_save_generated |
Persist an AI-authored { discovery, competitors, roadmap } payload. |
|
| Ideation (5) | ideation_analyze |
Run the 4-pillar audit (features, performance, security, code quality). |
ideation_get |
Retrieve the current ideation report and health scores (generates if missing). | |
ideation_promote_to_roadmap |
Promote a finding (ci-xxx, perf-xxx, sec-xxx, cq-xxx) to the roadmap. |
|
ideation_export_markdown |
Write formatted IDEATION.md to the workspace root. |
|
ideation_save_generated |
Normalize and persist an AI-authored ideation report with calculated scores. | |
| Agency (3) | agency_integrate |
Generate docs/agency-registry.md, pipeline workflow, rules, readme, and prompts. |
agency_list_agents |
List all installed agency-* specialist skills with paths and descriptions. |
|
agency_status |
Inspect Agency integration status, generated files, and agent count. |
Example Prompts to Give Your Antigravity Agent:
- "Inspect this repository and save a code-aware roadmap via
roadmap_save_generated." - "Audit the codebase for security and performance issues and export
IDEATION.md." - "Promote
sec-001from ideation into the roadmap and markFEAT-01asin_progress." - "Find the
code-review-seniorprompt in my library and paste it withlanguage=TypeScript." - "Integrate my installed Agency Agents into this workspace."
# Default port 4321 (auto-opens browser)
npm run ui
# Custom port without opening a browser automatically
node dist/cli.js ui --port 8080 --no-openThen visit http://localhost:4321 (or your chosen port) in any modern browser. Use the Change button in the 📁 Project bar to inspect any project directory on disk.
# List all prompts (optionally filter by category)
node dist/cli.js list
node dist/cli.js list Review
# Render a prompt with variables and copy to OS clipboard
node dist/cli.js paste code-review-senior --var language=TypeScript --var target_code="src/web/server.ts"
# Print full prompt JSON definition
node dist/cli.js get systematic-debugging
# Start Web Dashboard, install plugin, or run stdio MCP Server
node dist/cli.js ui --port 4321
node dist/cli.js install-plugin --dry-run
node dist/cli.js mcp
# Show CLI help
node dist/cli.js helpConforms to the Antigravity Plugins Specification:
antigravity-tools/
├── plugin.json # Antigravity plugin manifest
├── mcp_config.json # MCP server stdio definition
├── package.json # Package metadata, bin, and npm scripts
├── tsconfig.json # TypeScript compiler config (ESM + ES2022)
├── assets/ # Plugin logo & icon assets (PNG/SVG)
├── bin/
│ └── agy-tools.cmd # Windows CLI wrapper
├── skills/ # Built-in Antigravity agent skills
│ ├── ai-roadmap/SKILL.md
│ ├── ideation/SKILL.md
│ └── prompt-library/SKILL.md
├── rules/
│ └── prompt-library.md # Agent behavioral rules for prompt reuse
├── sidecars/
│ └── prompt_library/ # Sidecar Aux Pane definition & static assets
│ ├── sidecar.json # Sidecar process & entrypoint registration
│ ├── ui.html # Aux Pane HTML shell (loads /preload.js)
│ ├── index.html # Dashboard HTML mirror
│ ├── app.js # Client UI controller
│ ├── styles.css # Dark-theme UI styles
│ └── dist/server.js # Sidecar launcher importing ../../../dist/
└── src/
├── types.ts # Shared PluginModule & MCP contracts
├── index.ts # Public package exports
├── cli.ts # CLI entrypoint (ui, mcp, list, paste, get)
├── mcp-server.ts # JSON-RPC 2.0 MCP server over stdio
├── config.ts # Storage paths & port resolution
├── modules/
│ ├── registry.ts # Dynamic PluginModule & HTTP/MCP router
│ ├── workspace.ts # URI normalization & isolated storage dirs
│ ├── prompts/ # Module 1: Prompt library, seeds, OS clipboard
│ ├── roadmap/ # Module 2: Discovery, competitors, MoSCoW planner
│ ├── ideation/ # Module 3: 4-pillar scanner, health scores, bridge
│ ├── agency/ # Module 4: Agency Agents detector & generator
│ └── ai/ # Worker threads runner, Gemini client, context builder
├── web/
│ ├── server.ts # HTTP server, /api/* dispatcher, /preload.js & clipboard bridge
│ └── public/ # Canonical web assets (synced to dist/web/public & sidecars/)
└── tests/ # Automated node:test suite (30 tests across 7 files)
├── agency.test.ts
├── ideation.test.ts
├── interpolator.test.ts
├── roadmap.test.ts
├── service.test.ts
├── storage.test.ts
└── workspace.test.ts
All capabilities implement PluginModule and are wired into ModuleRegistry:
- Create
src/modules/<your-module>/index.tsimplementingPluginModule(getTools,handleToolCall, and optionalhandleHttpRequest). - Register it inside
ModuleRegistryinsrc/modules/registry.ts:this.register(new YourModule());
- Run
npm run build(andnpm test). Your MCP tools and/api/*endpoints are exposed automatically across MCP, CLI, Web UI, and Sidecar modes.
# Compile TypeScript -> dist/ and copy static assets -> dist/web/public/
npm run build
# Watch mode during backend TypeScript development
npm run build:watch
# Build and run the full node:test suite (30 tests)
npm testFrontend asset note:
src/web/public/holds the canonical frontend files (ui.html,index.html,app.js,styles.css). If you edit frontend files, mirror them tosidecars/prompt_library/and runnpm run buildso both standalone and sidecar views stay in sync.
- Sidecar pane fails to load in Antigravity: Confirm
npm run buildsucceeded and that you copieddist/alongsidesidecars/into~/.gemini/config/plugins/antigravity-tools/. - "Failed to copy to clipboard" on Linux: Install a native clipboard binary (
sudo apt install wl-clipboardon Wayland orsudo apt install xclipon X11) soPOST /api/clipboardcan write to the system clipboard. - Port
4321is already in use: The server automatically falls back to an available ephemeral port (EADDRINUSEhandling), or you can setAGY_TOOLKIT_PORT=4500/ pass--port 4500tonode dist/cli.js ui. - Showing the wrong project in the sidecar: Click Sync in the 📁 Project header bar to re-read your active Antigravity conversation workspace, or click Change to enter the folder path manually.
Antigravity Tools is free, open-source software built in the open. Contributions of all sizes are welcome:
- Share a Prompt Pack: Browse or contribute curated
{{variable}}packs incommunity-prompts/(no TypeScript required). - Ask Questions & Share Workflows: Use GitHub Discussions for setup help, MCP configurations, and Show & Tell.
- Contribute Code or Modules: Read
CONTRIBUTING.mdfor development guidelines and our zero-runtime-dependency guardrails. - Code of Conduct: All community spaces follow
CODE_OF_CONDUCT.md.
Licensed under the Apache-2.0 License.
