İçeriğe geç
Kurulum

antigravity-cli

Antigravity CLI (agy)

Antigravity CLI'ını (agy) eklenti, kimlik doğrulama ve sandbox ayarlarıyla kullanır.

UyarlandıMITv1.0.0

KURULUM

hermes skills install well-known:https://skills.hamaratlabs.com/.well-known/skills/antigravity-cli

Ham dosyaSKILL.md önizlemesi

1 GERÇEK ÖRNEK

Ne istendi, ne çıktı

NE İSTENDİ · 7 KASIM 2026

googlelab › Antigravity (agy) ve Gemini'nin ajan'e bağlanması; ödeme riski olmadan görsel üretim denemesi.

NE ÇIKTI · 2 DOSYA

agy üzerinden görsel üretim denemeleri yapıldı (masa sahnesi, çay/kahve posteri); harcama tavanı ve proje doğrulandı.

KAYNAK VE LİSANS

Tür
Başkasının skill'inden uyarlandı
Yazar
NousResearch
Orijinal
Orijinal depoyu aç ↗
Lisans
MIT (lisans metni orijinal depoda)
Ham dosya
SKILL.md

DEĞERLENDİRME

  • 3ajan profilinde kullanıldı
  • 85kayıtlı yükleme
  • 1belgelenmiş örnek2 çıktı dosyası

Sayılar ajan kayıtlarından gelir. Puanlama henüz yok.

SÜRÜM

Sürüm
v1.0.0
Siteye ilk yayın
1 Aralık 2026
Oluşturma
1 Ekim 2026
Son kullanım
21 Kasım 2026
Paket
4 dosya · SKILL.md 323 satır

YORUMLAR

Yorumlar yakında

Bu skill hakkındaki yorumlar ve puanlar burada görünecek. Bölüm henüz açılmadı.

SKILL.MDÖnizleme323 SATIR

AJAN AÇIKLAMASI Operate the Antigravity CLI (agy): plugins, auth, sandbox.

Antigravity CLI (agy)

Operator guide for the Antigravity CLI, invoked as agy. Run all agy commands through the ajan terminal tool; inspect its config and logs with read_file. This skill is reference + procedure - it does not wrap a network API, so there is nothing to authenticate from ajan itself.

When to Use

  • Installing, updating, or smoke-testing the agy binary
  • Driving non-interactive agy --print / agy -p one-shots
  • Debugging Antigravity auth, sandbox, permissions, or plugin state
  • Reading Antigravity settings, keybindings, conversations, or logs

Mental model

Antigravity has two layers - keep them distinct or the guidance will be wrong:

  1. Shell wrapper commands - agy help, agy install, agy plugin, agy update, agy changelog. Run these through the terminal tool.
  2. Interactive in-session slash commands - /config, /permissions, /skills, /agents, etc. These only exist inside a running agy TUI session, not on the shell wrapper.

agy help shows the shell wrapper surface, NOT the in-session slash commands.

Prerequisites

  • The agy binary on PATH. Verify through the terminal tool: command -v agy && agy --version.
  • No env vars or API keys required by this skill - Antigravity manages its own auth via the OS keyring / browser sign-in (see Authentication below).

How to Run

Invoke every agy command through the terminal tool. Examples:

terminal(command="agy --version")
terminal(command="agy help")
terminal(command="agy plugin list")
terminal(command="agy --print 'Summarize the repo in 3 bullets'", workdir="/path/to/project")

For an interactive multi-turn TUI session, launch agy with pty=true (and tmux for capture/monitoring), the same pattern the codex / claude-code skills use. For one-shot smoke tests and scripted prompts, prefer agy --print (non-interactive).

To inspect Antigravity's own files, use read_file on the paths under Core paths below - do not cat them through the terminal.

Delegation patterns

agy is a coding-agent backend in the same family as codex / claude-code, so the same delegation shapes apply. Use these when handing real work (features, fixes, reviews, second opinions) to Antigravity rather than just smoke-testing.

One-shot (preferred for scripted prompts and second opinions)
terminal(command="agy -p 'Review this diff for bugs and security issues' --model 'Gemini 3.1 Pro (High)'", workdir="/path/to/repo", timeout=300)

-p is non-interactive: it runs the prompt and exits. Pick the engine with --model (run agy models for the exact display strings, e.g. 'Gemini 3.1 Pro (High)', 'Claude Opus 4.6 (Thinking)'). Add extra context roots with repeatable --add-dir.

Long / bounded runs (tests, builds, multi-file changes)

Background it and get notified on completion, the same as the codex skill:

terminal(command="agy -p 'Implement the change described in TASK.md and run the tests'", workdir="/path/to/repo", background=true, notify_on_complete=true)
# add --dangerously-skip-permissions only with the user's explicit approval, inside a disposable worktree
# then: process(action="poll"/"log"/"wait", session_id=<id>)
Interactive multi-turn (PTY + tmux)

For a conversational session, launch agy -i (or bare agy) under pty=true with tmux for capture-pane / send-keys, exactly the pattern documented in the codex / claude-code skills. Resume later with --continue / -c or a specific --conversation <id>.

Parallel instances (batch sub-issue / worktree fan-out)

Create one git worktree per task and launch an independent agy -p in each (background), then collect results - same worktree fan-out the codex skill uses for batch issue fixing. Bound concurrency to what the machine and your review capacity can absorb.

Output + bounding caveat (differs from Claude Code)
  • agy -p prints plain text by default. For scripted runs pass --output-format json: the envelope carries status (SUCCESS), response (the report text) and denied_actions; check status and that response is non-empty before trusting the run. Put long prompts in a file and pass them as -p "$(cat prompt.md)".
  • There is no --max-turns. A print run is bounded by --print-timeout (default 5m). Raise it for long tasks: --print-timeout 20m. Pair with the terminal timeout= so the outer call doesn't cut the run short.
Orchestration boundary

Antigravity is a worker execution backend or third-opinion reviewer - an execution detail owned by the agent/profile running a task, NOT a first-class orchestration primitive. Do not put agy on a kanban board as its own card or treat it as a coordination layer; route work through the normal task graph and let the assigned worker choose agy (vs. codex/claude-code/direct tools) as its method. Reach for it explicitly only when the user asks, when a worker is configured to wrap it, or when you want a Gemini-family cross-check against another agent's plan or diff.

Core paths

  • Binary / entrypoint: agy
  • App data dir: ~/.gemini/antigravity-cli/
  • Settings file: ~/.gemini/antigravity-cli/settings.json
  • Keybindings file: ~/.gemini/antigravity-cli/keybindings.json
  • Logs: ~/.gemini/antigravity-cli/log/cli-*.log
  • Conversations: ~/.gemini/antigravity-cli/conversations/
  • Brain artifacts: ~/.gemini/antigravity-cli/brain/
  • History: ~/.gemini/antigravity-cli/history.jsonl
  • Plugin staging: ~/.gemini/antigravity-cli/plugins/<plugin_name>/

Quick Reference

Wrapper commands
  • agy changelog
  • agy help
  • agy install
  • agy plugin / agy plugins
  • agy update
Useful flags
  • --add-dir
  • --continue / -c
  • --conversation
  • --dangerously-skip-permissions
  • --print / -p
  • --print-timeout
  • --prompt
  • --prompt-interactive / -i
  • --sandbox
  • --log-file
  • --version
Plugin subcommands (agy plugin --help)
  • list, import [source], install <target>, uninstall <name>, enable <name>, disable <name>, validate [path], link <mp> <target>, help
Install flags (agy install --help)
  • --dir, --skip-aliases, --skip-path
In-session slash commands
  • Conversation control: /resume (/switch), /rewind (/undo), /rename <name>, /clear, /fork, /reset, /new
  • Settings & tools: /config, /settings, /permissions, /model, /keybindings, /statusline, /tasks, /skills, /mcp, /open <path>, /usage, /logout, /agents
  • Prompt helpers: @ path autocomplete, esc esc clears the prompt (when not streaming), ! runs a terminal command directly, ? opens help

Settings and permissions

Common settings keys (settings.json)
  • allowNonWorkspaceAccess
  • colorScheme
  • permissions.allow
  • trustedWorkspaces
Permission modes

request-review, always-proceed, strict, proceed-in-sandbox.

Sandbox behavior
  • enableTerminalSandbox is a boolean in settings.json; default false.
  • Launch-time overrides (--sandbox, --dangerously-skip-permissions) can supersede persistent settings for the current session.

Authentication behavior

  • The CLI tries the OS secure keyring first.
  • With no saved session, it falls back to browser-based Google sign-in.
  • Locally it opens the default browser; over SSH it prints an authorization URL and expects the auth code pasted back.
  • /logout removes saved credentials.

MCP servers for agy

  • Give agy runs a local tool by registering its stdio MCP server once: agy mcp add <name> <absolute-binary> [args...]; agy mcp list must show it enabled. Every later agy -p run can use it (e.g. an Aseprite MCP for pixel-art work); name the tool in the prompt so the model reaches for it.
  • Unattended creative experiment: give it its own folder with a GOREV.md (goal, allowed folder, no deletion, save new versions as _v2), cd there and launch agy -p "GOREV.md'yi oku ve yap" --print-timeout 90m in the background. Add --dangerously-skip-permissions only with the user's explicit approval for this run and only inside a disposable worktree or container; never as the default. A running agy -p read GOREV.md once at start and never re-reads it: an idea appended as an "EK" mid-run is missed. Append it anyway (so the file stays the record), then when the run ends check the output against the EK and launch a short targeted agy -p in the same folder that names the EK, the exact defect and the new file names (_v3).
  • The Pro-tier Gemini quota (e.g. gemini-4-argon-*) is one pool for every consumer on the same Google account: research runs, their audits, another profile's image generation and your own experiments all drain it, and a reset can be ~2 days away. Spend it on research and audits; start long creative/tool-driving trials on a Flash tier from the beginning, and before a fan-out count every agent that routes through agy.

Plugins

  • Plugins stage under ~/.gemini/antigravity-cli/plugins/<plugin_name>/.
  • They can bundle skills, agents, rules, MCP servers, and hooks.
  • agy plugin list returning no imported plugins is a valid empty state.

Pitfalls

  • A more specific write_file(subpath) allow rule does NOT override a broader write_file(parentpath) deny rule in permissions.deny/permissions.allow - deny wins on any path match regardless of specificity. To grant write access to one subfolder while keeping its siblings protected, narrow the deny rule down to exactly the sibling paths that must stay blocked; do not rely on a specific allow to out-rank a broad deny. Verify with two real write attempts: one inside the newly-opened folder (must succeed) and one in an adjacent folder that must stay blocked (must still fail).

  • To tell a real quota exhaustion from benign log noise, grep ~/.gemini/antigravity-cli/log/*.log for RESOURCE_EXHAUSTED, rateLimitExceeded, or quota.*exceeded specifically - a bare grep -i quota also matches harmless module names (quota_manager.go) and startup lines, wildly overcounting.

  • A RESOURCE_EXHAUSTED / "Individual quota reached" error is scoped to the SPECIFIC model that just ran, not necessarily the whole account - agy models lists several independent families (Gemini, Claude via Antigravity, GPT-OSS), each with its own quota pool. Before telling the user "all quota is gone" or waiting out the full reset window, fire one cheap one-line agy -p call on a DIFFERENT model family (e.g. switch from claude-opus-5-5-high to gemini-3.8-flash-low) - if that succeeds, only the original model's pool is exhausted and work can continue immediately on the other family instead of idling.

  • A long unattended agy -p run (permission bypass only if the user explicitly approved it for a disposable worktree/container) that dies mid-task from quota exhaustion loses nothing if it was working inside its own git worktree (per the Parallel instances pattern below): the partial files, downloaded toolchains, and branch state are all still on disk. Resume by re-launching agy -p with the SAME workdir (the worktree path) and a different model, explicitly telling it to continue from the existing files rather than restart - do not re-create the worktree or re-run the original task text verbatim from scratch.

  • The Antigravity IDE desktop app (Antigravity IDE.app, data in ~/Library/Application Support/Antigravity IDE/) is a separate program from the agy CLI: stopping or restarting the IDE does not touch running agy -p jobs. Its extension-host helper can keep spinning at ~90% CPU for days after the IDE window closes. Before killing it, prove it is idle: the newest logs/<session>/window1/exthost/exthost.log ends with renderer closed, no log file has been written for hours, and lsof -nP -p <pid> | grep -E 'TCP|sock' shows no connection. Then kill -TERM <pid>, and kill -KILL if it is still alive after ~5 s; a leftover Z (zombie) at 0% CPU is harmless and clears when the IDE quits. Confirm with agy --version that the CLI is unaffected. If the user worries the IDE might be doing important work, show this evidence before acting.

  • agy help shows wrapper commands, not interactive slash commands.

  • agy --version is the safe non-interactive version check; agy version is interactive and can fail without a real TTY.

  • First place to look for failures: ~/.gemini/antigravity-cli/log/cli-*.log (read with read_file).

  • Don't confuse persistent JSON settings with launch-time overrides.

  • ~/.gemini/antigravity-cli/bin/agentapi is a thin wrapper to agy agentapi.

  • On WSL, token storage is file-based, so auth issues are usually local-file / session-state problems, not browser-only problems.

  • Workspace identity can depend on launch directory and the .antigravitycli project marker.

  • Without --output-format json the output is plain text with no envelope; request json whenever a script must read the status or the report. For programmatic quota checks, ~/.local/bin/agy --print-timeout 30s --output-format json -p=/usage returns structured usage groups under command.data.groups[] (Gemini Models 5h + weekly, Gemini 4 Argon model-scoped weekly, and Claude and GPT models 5h + weekly), where each bucket in buckets[] provides window ("5h" / "weekly"), remaining_fraction (0.0–1.0), and ISO reset_time.

  • Bound print runs with --print-timeout (default 5m), not --max-turns (which does not exist on agy). The value is a Go duration and REQUIRES a unit suffix (30s, 10m) - a bare integer (--print-timeout 30) is rejected outright with invalid value "30" for flag -print-timeout: time: missing unit in duration, not silently rounded or defaulted.

  • Different model families in agy models carry different built-in tool sets, not just different capability/quota - one family can lack a page-fetch tool (e.g. a Gemini tier that can web_search but has no page-read/read_url_content equivalent) while another in the same roster has it. A model that silently can't open pages degrades research to search-snippet depth with no error raised; if a batch of parallel research dispatches comes back thin on sourced detail from one specific model while others are fine, suspect a missing page-read tool on that model before suspecting prompt quality, and move that leg of the chain to a model/family confirmed to have it.

  • agy models is not a fixed list - new model tiers (e.g. a stronger Gemini generation) can appear between sessions without any update action on your part, AND existing identifiers can be REMOVED/renamed between CLI versions (a hardcoded model string that worked for months can silently stop resolving). A script/cron job with a hardcoded --model <id> is therefore not a set-once config - if it starts failing with a generic "status != SUCCESS" or "invalid model selection" error, run agy models FIRST to check whether the configured identifier still exists before assuming an auth/network/code regression. Don't rely on a model list you fetched earlier in a long conversation or remembered from a prior session; re-run agy models before concluding "the strongest available model is X" or before picking a model for a new dispatch, especially after a quota-exhaustion event where you're about to pick a fallback model anyway.

  • agy/Antigravity's own model roster (Gemini/Claude/GPT-OSS families in agy models) does NOT include every capability Google ships under the Gemini brand - e.g. "Gemini Omni" (gemini-omni-1.1-flash, a dedicated video generation/editing model announced alongside Antigravity) is a Gemini Developer API product, reached through the separate gemini-api-cli tool (binary gemini-api, auth via its own GEMINI_API_KEY, paid tier for Omni) - not through agy at all. If a task needs a Gemini capability missing from agy models, check whether it's a Developer-API-only feature before concluding it's unavailable.

  • The "Connect custom app" / "Local MCP" / "Cloud MCP" dialog inside a consumer AI chat app's own settings (Gemini app, similar panels in other chat products) lets THAT app's chat consume outside MCP tools - it is not a way to expose that app's own underlying models/capabilities to external callers like agy or ajan. Don't treat "set up an MCP connector in the Gemini app" as a path to let our own agents call a Gemini-exclusive model; the correct direction for that is always a dedicated API/CLI for the target capability (see the Omni/gemini-api-cli entry above), never an MCP connector configured inside the consumer app itself.

  • For a non-interactive agy -p/--print call that only needs to READ/research (web search, summarize, analyze, no file edits), do NOT use --dangerously-skip-permissions. --sandbox can fail for real research (zero stdout plus jetski: no output produced ... a tool required the "command" permission that headless mode cannot prompt for, so it was auto-denied) because agy's web-research tool shells out and a headless run cannot answer that prompt. The fix is a narrow permissions.allow rule for exactly the command the research tool needs, added only with the user's approval, or let the coordinator do the web fetching with its own tools and pass the text to agy for analysis. Whatever mode you use, verify it produced an actual report (not just exit 0) before trusting it in a cron/unattended script: a silent zero-output exit 0 is possible and easy to miss.

Verification

Confirm the install is real and usable, all through the terminal tool (read files with read_file):

  1. terminal(command="command -v agy")
  2. terminal(command="agy --version")
  3. terminal(command="agy help")
  4. terminal(command="agy plugin list")
  5. read_file on ~/.gemini/antigravity-cli/settings.json
  6. read_file on the latest ~/.gemini/antigravity-cli/log/cli-*.log
  7. If needed, read_file on ~/.gemini/antigravity-cli/keybindings.json

Support files

  • references/cli-docs.md - condensed notes from the getting-started, usage, and features docs.

AJAN İŞLETİMİ

İlişkili skill'ler

İSTEK

MVP bitene kadar doğru sırada ilerle, kontrol noktalarında ilgili ajanlar değerlendirip planı revize etsin.

role-based-agent-orchestration

Kapsamı belirlenmiş çalışma alanlarıyla ajanları rol bazlı koordine eder.

HamaratLabs2 ÖRNEK
İSTEK

Claude entegrasyonunun temiz biçimde yeniden kurulması, karışıklığın temizlenmesi.

agent-integration-operations

Yerel yapay zekâ CLI'larını, cron işlerini ve ajan kancalarını birbirine bağlar.

HamaratLabs1 ÖRNEK
İSTEK

Bir anahtar köprüsünün değerlerinin terminal aracına ulaşmaması sorununun kanıtlanması.

claude-code

Kodlama işlerini (özellik, PR) Claude Code CLI'ına devreder.

Uyarlandı2 ÖRNEK
İSTEK

SOUL/USER/MEMORY ve 4 rehberdeki bilgi kaybı ve yetki genişleme risklerinin salt okunur incelenmesi.

agent-context-memory-layers

Ajanların hafızasını, bağlam dosyalarını ve skill'lerini denetler.

HamaratLabs1 ÖRNEK