with one click
antigravity-cli
Operate the Antigravity CLI (agy): plugins, auth, sandbox.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Operate the Antigravity CLI (agy): plugins, auth, sandbox.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Guides Cloudflare One Zero Trust and SASE work across Access, Gateway, WARP, Tunnel, Cloudflare WAN, DLP, CASB, device posture, and identity. Use when designing, configuring, troubleshooting, or reviewing Cloudflare One deployments. Retrieval-first: use current Cloudflare docs/API schemas instead of embedded product docs.
Use when scheduling recurring polls, read-only monitors, or background jobs that must survive shell session boundaries.
Discover, register, and maintain Hermes skills from non-default paths (plugin directories, external repos, shared vaults). Use when skills are missing from `skills_list()`, when the user mentions plugin skills, when symlinking skills, or when reconciling duplicate/overlapping skills between the default tree and external sources.
Tune HERMES_STREAM_RETRIES for mid-stream reconnect resilience.
Manage parallel Hermes sessions in Telegram topics.
Run a startup checklist via a gateway:startup hook on every boot.
| name | antigravity-cli |
| description | Operate the Antigravity CLI (agy): plugins, auth, sandbox. |
| version | 0.1.0 |
| author | Tony Simons (asimons81), Hermes Agent |
| license | MIT |
| platforms | ["linux","macos","windows"] |
| metadata | {"hermes":{"tags":["Coding-Agent","Antigravity","CLI","Auth","Plugins","Sandbox"],"related_skills":["grok","codex","claude-code","hermes-agent"]}} |
agy)Operator guide for the Antigravity CLI, invoked as agy. Run all agy
commands through the Hermes 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 Hermes itself.
agy binaryagy --print / agy -p one-shotsAntigravity has two layers — keep them distinct or the guidance will be wrong:
agy help, agy install, agy plugin,
agy update, agy changelog. Run these through the terminal tool./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.
agy binary on PATH. Verify through the terminal tool:
command -v agy && agy --version.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.
agy~/.gemini/antigravity-cli/~/.gemini/antigravity-cli/settings.json~/.gemini/antigravity-cli/keybindings.json~/.gemini/antigravity-cli/log/cli-*.log~/.gemini/antigravity-cli/conversations/~/.gemini/antigravity-cli/brain/~/.gemini/antigravity-cli/history.jsonl~/.gemini/antigravity-cli/plugins/<plugin_name>/agy changelogagy helpagy installagy plugin / agy pluginsagy update--add-dir--continue / -c--conversation--dangerously-skip-permissions--print / -p--print-timeout--prompt--prompt-interactive / -i--sandbox--log-file--versionagy plugin --help)list, import [source], install <target>, uninstall <name>,
enable <name>, disable <name>, validate [path], link <mp> <target>,
helpagy install --help)--dir, --skip-aliases, --skip-path/resume (/switch), /rewind (/undo),
/rename <name>, /clear, /fork, /reset, /new/config, /settings, /permissions, /model,
/keybindings, /statusline, /tasks, /skills, /mcp, /open <path>,
/usage, /logout, /agents@ path autocomplete, esc esc clears the prompt (when
not streaming), ! runs a terminal command directly, ? opens helpsettings.json)allowNonWorkspaceAccesscolorSchemepermissions.allowtrustedWorkspacesrequest-review, always-proceed, strict, proceed-in-sandbox.
enableTerminalSandbox is a boolean in settings.json; default false.--sandbox, --dangerously-skip-permissions) can
supersede persistent settings for the current session./logout removes saved credentials.A fresh SSH-launched agy models can report signed out while a long-lived authenticated Agy TUI continues refreshing models with in-memory OAuth state. Before asking the user to sign in again:
pgrep -fl '(^|/)agy|antigravity' and safe auth lines in the latest CLI log.herdr agent list and locate the registered agy pane.herdr agent read agy --source visible --lines 40 --format text.herdr agent send and herdr pane send-keys; never copy keyring/token material or write directly to the TTY./model EXACT DISPLAY NAME. The picker may require one additional enter to confirm.working; if text remains in the editor, send one additional enter, not repeated blind keystrokes.Use the herdr-agy-adjudication skill for the complete review-and-receipt workflow.
~/.gemini/antigravity-cli/plugins/<plugin_name>/.agy plugin list returning no imported plugins is a valid empty state.--print prompts, and do not assume stdin-only prompting. In Antigravity CLI 1.1.2, --print / -p is a value-taking flag. A live negative control using subprocess.run(["agy", "--print"], input=prompt, ...) exits 2 with flag needs an argument: -print; cat prompt | agy --print is therefore not a valid adapter contract. The 1.1.2 changelog phrase “stdin is consumed by a piped prompt” does not establish a prompt-less --print form.
Fix: Avoid tmux send-keys and shell interpolation. Invoke Agy directly with a fixed argv list from Python/subprocess, passing the prompt as the value after --print:
subprocess.run(
[agy_bin, "--sandbox", "--model", exact_model,
"--print-timeout", "120s", "--print", prompt],
cwd=dedicated_workspace, capture_output=True, text=True,
timeout=150, check=False,
)
This prevents shell-quoting corruption but the prompt is briefly visible in the child process argv. Bound and classify prompts accordingly; for sensitive prompts, use an authenticated TUI/Herdr or supported SDK transport instead of one-shot --print. Never advertise stdin-only privacy unless a future installed version passes a real negative/positive control.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.~/.gemini/antigravity-cli/log/cli-*.log
(read with read_file).error getting token source: You are not logged into Antigravity before silent keyring auth completes. Do not call that an
auth/model-access outage if the same run later shows ChainedAuth: authenticated via keyring, OAuth: authenticated successfully,
fetchAvailableModels, or streamGenerateContent./tmp or
a long-lived project: d=$(mktemp -d /tmp/agy-smoke-XXXXXX); cd "$d"; agy --print-timeout 60s --model 'Gemini 3.5 Flash (High)' --print 'Do not inspect files. Reply exactly: AGY_OK'./usr/bin:/bin:/usr/sbin:/sbin, and Homebrew may be
rooted at /opt/homebrew on one host but ~/homebrew on another. Resolve
agy during provisioning (command -v agy / shutil.which) and persist the
absolute result in service configuration; never copy a hard-coded Homebrew
path across machines. Verify headless execution from the actual GUI launchd
domain with --sandbox --model "<exact display name>" --print, a unique
nonce, a timeout, and exact stdout/exit-code checks.--print response as session/workspace contamination, even when exit code is 0. Before granting write tools, run from a fresh temp workspace with a unique nonce and require the response to echo that nonce. If the output discusses unrelated files, commits, or prior tasks, exclude it from evidence, verify any claimed side effects independently, and restart from a fresh workspace/conversation. Do not let a contaminated run modify the target repository.--model gemini-3.1-pro fails with "model not recognized." The correct form
is --model "Gemini 3.1 Pro (High)" (case-sensitive, with quotes). Run
agy models (or trigger an invalid model name) to list available models and
their exact display strings. Known models as of 2026-07-14:
Gemini 3.5 Flash (Medium|High|Low), Gemini 3.1 Pro (Low|High),
Claude Sonnet 4.6 (Thinking), Claude Opus 4.6 (Thinking),
GPT-OSS 120B (Medium).--mode plan when exact boundary markers are part of the output
protocol. Antigravity 1.1.2 prefixes the submitted prompt with /plan in
this mode and can append /plan to an otherwise exact nonce, breaking strict
marker parsing. For a read-only bridge, prefer a dedicated empty workspace
with --sandbox --model "Gemini 3.1 Pro (High)" in the default
request-review mode; never send approval keystrokes, and fail closed on any
tool/trust/permission modal.--print sessions and produce off-prompt output. The
mandates-loader plugin (and similar skill-injecting plugins) intercept the
prompt before the model sees it, causing agy -p to write daily notes, commit
to git, and run permission checks instead of answering the actual question.
The exit code is 0 and the output looks "successful" but it's contaminated —
the architect query was never answered.
Fix: Disable plugins before running one-shot architect/review queries:
agy plugin disable mandates-loader
agy -p --dangerously-skip-permissions --model "Gemini 3.1 Pro (High)" "prompt"
agy plugin enable mandates-loader
Re-enable after. The disable/enable cycle is safe and non-destructive.
This is distinct from the existing "workspace contamination" pitfall —
that was about prior session state; this is about active plugin
interception of the prompt itself.~/.gemini/antigravity-cli/bin/agentapi is a thin wrapper to agy agentapi..antigravitycli
project marker.Confirm the install is real and usable, all through the terminal tool (read
files with read_file):
terminal(command="command -v agy")terminal(command="agy --version")terminal(command="agy help")terminal(command="agy plugin list")read_file on ~/.gemini/antigravity-cli/settings.jsonread_file on the latest ~/.gemini/antigravity-cli/log/cli-*.logread_file on ~/.gemini/antigravity-cli/keybindings.jsonreferences/cli-docs.md — condensed notes from the getting-started, usage,
and features docs.