Antigravity CLI
Announcement: Begin with: "I'm using the antigravity-cli skill for cross-AI validation with Antigravity (agy)."
Use this wrapper for an explicit Antigravity second opinion or for research that
needs its provider-specific grounding. Read the shared lifecycle in
../codex-cli/references/cross-ai-run.md first.
Provider adapter
Check command -v agy, then agy --version. Read agy --help before using
print mode, output, timeout, model, or effort flags. If the binary or a
required capability is absent, report the prerequisite and stop.
For an explicit Gemini run, inspect agy models, choose an exact currently
listed gemini-* slug, and pass it as --model. Record the selected
provider and model. If no model was requested, omit --model and retain the
provider's configured default; an unreported default model is unverified and
does not establish model-level independence.
For review or research, resolve the loaded skill directory, run from the
target repository root, and use the runner with a fresh output directory:
ANTIGRAVITY_SKILL_DIR="/absolute/path/to/loaded/antigravity-cli"
python3 "$ANTIGRAVITY_SKILL_DIR/scripts/review.py" \
--prompt-file /tmp/agy-prompt.md \
--file path/to/file.py \
--file path/to/requirements.md \
--model '<exact slug from agy models>' \
--effort high \
--timeout 120 \
--output-dir /tmp/agy-review-unique
ANTIGRAVITY_SKILL_DIR must be the actual directory containing this loaded
skill; do not resolve it from the target repository's current directory.
--file is repeatable. --effort is optional and accepts low, medium,
or high. The runner verifies and pre-reads those files, then
inlines their contents so a denied provider file read cannot look like a
successful review. --model is optional and has no runner default; omit the
line when the configured provider default is intended. Use a new output
directory for every attempt and do not retry implicitly.
Read receipt.json, stdout.json, version.stderr.log, response.txt on
success, and stderr.log from the output directory. A valid completed
review requires process exit 0, payload
status: SUCCESS, a non-empty response, and no denied_actions. A
SUCCESS result with an
empty or visibly partial answer, or with any denied action, is PARTIAL and
must never be reported as a passed review. Inspect and retain stderr even on
exit 0. Return the shared receipt; the result never authorizes edits, shell
work, or publication.
The runner invokes the supported headless shape: agy -p --output-format json --print-timeout <duration>, with an explicit --model <slug> only when chosen
by the caller. The old --approval-mode and -o forms are incompatible with
the tested Antigravity CLI. Do not use permission-bypass flags, settings/auth
edits, or automatic model fallback.
For upstream behavior, use the official headless CLI docs,
migration guide, and
installation guide. Verify local
behavior first because flags, models, and output fields can change.
Prompt requirements
Include the repository root, task/requirements path when task-attached, files or
diff scope, and concrete questions. For web research, ask for source URLs and
separate sourced claims from repository observations. Resolve task evidence
through ../setup/references/task-context.md; standalone calls do not create a
task. Do not put unverified @path references in review prompts; pass verified
files through the runner's repeatable --file option.
When not to use
- The caller did not explicitly choose Antigravity or delegate to it
- A normal review or research tool already satisfies the request
- The request needs interactive refinement or file-writing work
References
../codex-cli/references/cross-ai-run.md — shared lifecycle and receipt
reference.md — local-help-first flags, models, output, and migration notes
templates.md — prompt shapes and runner examples
1---2name: antigravity-cli-23description: Run Google Antigravity CLI (agy) for web-grounded research, cross-AI review, or validation when those capabilities are explicitly needed or another skill delegates to agy. One-shot only; do not select it for an ordinary review without an explicit provider choice.4---56# Antigravity CLI78> **Announcement**: Begin with: "I'm using the **antigravity-cli** skill for cross-AI validation with Antigravity (agy)."910Use this wrapper for an explicit Antigravity second opinion or for research that11needs its provider-specific grounding. Read the shared lifecycle in12`../codex-cli/references/cross-ai-run.md` first.1314## Provider adapter15161. Check `command -v agy`, then `agy --version`. Read `agy --help` before using17 print mode, output, timeout, model, or effort flags. If the binary or a18 required capability is absent, report the prerequisite and stop.192. For an explicit Gemini run, inspect `agy models`, choose an exact currently20 listed `gemini-*` slug, and pass it as `--model`. Record the selected21 provider and model. If no model was requested, omit `--model` and retain the22 provider's configured default; an unreported default model is unverified and23 does not establish model-level independence.243. For review or research, resolve the loaded skill directory, run from the25 target repository root, and use the runner with a fresh output directory:2627 ```bash28 ANTIGRAVITY_SKILL_DIR="/absolute/path/to/loaded/antigravity-cli"29 python3 "$ANTIGRAVITY_SKILL_DIR/scripts/review.py" \30 --prompt-file /tmp/agy-prompt.md \31 --file path/to/file.py \32 --file path/to/requirements.md \33 --model '<exact slug from agy models>' \34 --effort high \35 --timeout 120 \36 --output-dir /tmp/agy-review-unique37 ```3839 `ANTIGRAVITY_SKILL_DIR` must be the actual directory containing this loaded40 skill; do not resolve it from the target repository's current directory.41 `--file` is repeatable. `--effort` is optional and accepts `low`, `medium`,42 or `high`. The runner verifies and pre-reads those files, then43 inlines their contents so a denied provider file read cannot look like a44 successful review. `--model` is optional and has no runner default; omit the45 line when the configured provider default is intended. Use a new output46 directory for every attempt and do not retry implicitly.474. Read `receipt.json`, `stdout.json`, `version.stderr.log`, `response.txt` on48 success, and `stderr.log` from the output directory. A valid completed49 review requires process exit 0, payload50 `status: SUCCESS`, a non-empty `response`, and no `denied_actions`. A51 `SUCCESS` result with an52 empty or visibly partial answer, or with any denied action, is `PARTIAL` and53 must never be reported as a passed review. Inspect and retain stderr even on54 exit 0. Return the shared receipt; the result never authorizes edits, shell55 work, or publication.5657The runner invokes the supported headless shape: `agy -p --output-format json58--print-timeout <duration>`, with an explicit `--model <slug>` only when chosen59by the caller. The old `--approval-mode` and `-o` forms are incompatible with60the tested Antigravity CLI. Do not use permission-bypass flags, settings/auth61edits, or automatic model fallback.6263For upstream behavior, use the official [headless CLI docs](https://antigravity.google/docs/cli/headless/),64[migration guide](https://antigravity.google/docs/cli/gcli-migration/), and65[installation guide](https://antigravity.google/docs/cli/install/). Verify local66behavior first because flags, models, and output fields can change.6768## Prompt requirements6970Include the repository root, task/requirements path when task-attached, files or71diff scope, and concrete questions. For web research, ask for source URLs and72separate sourced claims from repository observations. Resolve task evidence73through `../setup/references/task-context.md`; standalone calls do not create a74task. Do not put unverified `@path` references in review prompts; pass verified75files through the runner's repeatable `--file` option.7677## When not to use7879- The caller did not explicitly choose Antigravity or delegate to it80- A normal review or research tool already satisfies the request81- The request needs interactive refinement or file-writing work8283## References8485- `../codex-cli/references/cross-ai-run.md` — shared lifecycle and receipt86- `reference.md` — local-help-first flags, models, output, and migration notes87- `templates.md` — prompt shapes and runner examples