setup

A command that checks whether the Antigravity command-line tool is installed, available on the system path, and responding.

In plain words
What is it for?
Use it before other Antigravity commands to check the agy CLI, PDF support, semantic search support, media support, and graph support.
Why use it?
It quickly shows whether the required tool is ready and reports related optional components that may be missing.

Command

Part of the antigravity plugin — 2 skills, 22 commands, 1 agent shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/marcosnahuel/antigravity-plugin-cc/setup
Clone the repo
git clone --depth 1 https://github.com/MarcosNahuel/antigravity-plugin-cc

Or install antigravity, the plugin that ships this one along with the rest of its 2 skills, 22 commands, 1 agent.

Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 583 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00021 $0.00583
Opus 5 $0.00010 $0.00292
Sonnet 5 $0.00004 $0.00117
Haiku 4.5 $0.00002 $0.00058

Measured 3d ago against content hash 5ba97f12cf6f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

setup scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

- **macOS / Linux (bash):** `curl -fsSL https://antigravity.google/cli/install.sh | bash`

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **macOS / Linux (bash):** `curl -fsSL https://antigravity.google/cli/install.sh | bash`
plugins/antigravity/commands/setup.md · 56 lines

What it actually says

Phase 0 — Stack check (ONE Bash call, no agy)

First report the whole agent stack — what's installed, what's missing, how to fix each — so the user knows which /agy:* capabilities are ready:

python "${CLAUDE_PLUGIN_ROOT:-$PWD}/plugins/antigravity/scripts/stack_check.py"

It checks: agy CLI (required), PyMuPDF/fitz (required for /agy:notebook PDFs), sqlite-vec (optional — /agy:notebook --semantic), ffmpeg (optional — long media for /agy:transcribe), and graphify (optional — /agy:graph). Present the table and the fix line for anything missing. Prints STACK n/5 present.

Phase 1 — agy health ping

Route this to the antigravity:agy-rescue subagent in MODE: setup.

Pass this header block to the subagent:

MODE: setup
INTENSITY:
MODEL:
RESUME: false
WRITE_FILE:
USER_TEXT:

The subagent will:

  1. Resolve the agy binary (PATH, then AGY_BIN, then per-OS fallback paths).
  2. Try agy changelog to read the current version.
  3. Run a 30s ping: a minimal --print call expecting "pong" back.
  4. Report binary path, version, and ping status.

Output rules:

  • Present the final setup output to the user as-is.

  • If the binary is missing, tell the user to install Antigravity:

    • Windows (PowerShell): irm https://antigravity.google/cli/install.ps1 | iex
    • macOS / Linux (bash): curl -fsSL https://antigravity.google/cli/install.sh | bash

    After install, restart the shell so the binary lands on PATH.

  • If the binary exists but ping times out (empty stdout + exit 0), the symptom is ambiguous in agy 1.0.x:

    1. Tool-call loop (most common in v0.1.1+): the model entered an agentic loop and consumed the timeout before flushing. Re-run with a higher --print-timeout or a stricter "do not use tools" prompt.
    2. OAuth missing: verify with ls ~/.gemini/antigravity-cli/installation_id. If absent or empty, run agy once interactively in a regular terminal to complete the Google OAuth login.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 56 lines · 21 tokens per session scan C 5ba97f12cf6f

Subscribe to this mod's changes

setup is a command published in the GitHub repository MarcosNahuel/antigravity-plugin-cc (26 stars, last pushed 18d ago), licensed MIT. It adds 21 tokens to every session and 583 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.