Skip to content
Back to skills

Antigravity

ASecurity

Delegate a task, investigation, or read-only review to Google's Antigravity CLI (agy, Gemini) as a background job (status, result, cancel, update); delegate only when asked for Gemini or Antigravity. Use when: 'ask Gemini', 'run this through agy', 'Antigravity review'. Not for a multi-reviewer panel: /review:council.

  • 34 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 22, 2026
ai-agentsgoshellbashgit

Works with

  • claude code
  • terminal
  • cli

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned November 29, 2026

npx -y skills add melodic-software/claude-code-plugins --skill antigravity --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Antigravity?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Antigravity
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/melodic-software-antigravity/badge)](https://www.skillsdirectory.com/skills/melodic-software-antigravity)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: "Delegate a task, investigation, or read-only review to Google's Antigravity CLI (agy, Gemini) as a background job (status, result, cancel, update); delegate only when asked for Gemini or Antigravity. Use when: 'ask Gemini', 'run this through agy', 'Antigravity review'. Not for a multi-reviewer panel: /review:council."
argument-hint: "[run <prompt>|review --base <ref>|status [<job>]|result <job>|cancel <job>|update]"
user-invocable: true
disable-model-invocation: false
allowed-tools:
  - "Bash(external-agents run antigravity:*)"
  - "Bash(external-agents review antigravity:*)"
  - "Bash(external-agents status:*)"
  - "Bash(external-agents result:*)"
  - "Bash(external-agents cancel:*)"
  - "Bash(external-agents update antigravity:*)"
shell: bash
metadata:
  workflow-stage: implement
  summary: Hand tasks, investigations and reviews to the Antigravity CLI and read back its jobs
---

# Antigravity

**Arguments.** `[run <prompt>|review --base <ref>|status [<job>]|result <job>|cancel <job>|update]`.
A bare request that is not one of the other actions is `run`.

This skill drives the plugin's `external-agents` command, which is on the Bash `PATH` while the
plugin is enabled. The command is the only thing that starts agy; never call `agy` yourself, and
never look up the plugin's install path. Delegate only when the user asks for Gemini or
Antigravity.

## Actions

| Action | Command | Read |
|---|---|---|
| `run` (default): a task (may write) or an investigation (read-only) | `external-agents run antigravity --use task --mode write [--add-dir <dir>]... [--unsandboxed auto] --prompt-file <file>`, or `--use investigate` | [reference/run.md](reference/run.md) |
| `review`: agy reviews this branch, read-only | `external-agents review antigravity --base <ref> [--brief-file <file>]` | [reference/run.md](reference/run.md#review) |
| `status`, `result`, `cancel` | `external-agents status [<job>]`, `result <job>`, `cancel <job>` | [reference/jobs.md](reference/jobs.md) |
| `update`: readiness, CLI facts, version and routing check | `external-agents update antigravity` | [reference/update.md](reference/update.md) |
| Choosing a model or effort | `--model`, `--effort` for one run; config keys otherwise | [reference/routing.md](reference/routing.md) |

## Reporting a run

- **First reply line:** `Mode: <mode> (<use>)`, taken from the job, never from what was asked: the
  `mode:` line of `external-agents status <job>` (the job id is the `job: <id>` line on stderr).
  A review is always `Mode: read-only (review)`. When the mode ceiling lowered a write request, say
  so and name the config key the notice names. When the run passed `--model` or `--effort`, add
  the `model:` and `effort:` lines from the same status output and why they were chosen.
- Then the command's first stdout line, then agy's final message verbatim. That message is agy's
  answer, not yours: relay it, and add your own reading only below it, labeled as yours.
- Exit codes (`scripts/lib/runner.mjs:12`): `0` ok, `1` failed, `2` usage or refused, `3` blocked
  by the mode, `4` agy unavailable or skipped. On `1`, `2` or `4`, report the first line and the
  CLI's error and stop: never do the task yourself in agy's place. On `4`, point the user to
  `external-agents update antigravity`.

## Prompts

Write the prompt with the Write tool to a file in a gitignored scratch folder (this repository's
convention, else the session scratchpad) and pass it with `--prompt-file`; the command keeps its
own copy in the job folder. Name the files and paths agy should read; never paste file contents,
diffs or logs into the prompt. For an investigation, name the paths: a read-only agy run reads
files by path and cannot search or list directories. Unless the `hold_rule` config key turns it
off (`hold_rule.enabled: false`), the command opens every prompt with the hold rule (`holdRuleFor`
in [scripts/lib/runner.mjs](../../scripts/lib/runner.mjs)), naming the labels in
`hold_rule.labels`. While it is on, never ask agy for what it forbids: hold labels, merges and
review threads stay with you.

Before a write task, decide its fence (details in [reference/run.md](reference/run.md#run)):
every directory outside the worktree it will write, each passed with `--add-dir` and named in the
prompt (none when the worktree is enough), and whether it needs a command outside agy's sandbox,
such as network access or a system service. Pass `--unsandboxed auto` only then, and say why in
the prompt.

## Background runs

Run every `run` and `review` with the Bash tool's `run_in_background`: a run can last up to
`antigravity.timeout_seconds`, which can outlast a foreground Bash call (how long one may wait:
[timeout and output limits](https://code.claude.com/docs/en/tools-reference#timeout-and-output-limits)), and a call cut off by
its own timeout leaves the job without its result. You are notified when it exits, so do not poll. The job id prints only at the end, so while it runs, find it with bare
`external-agents status`. Stop a run with `external-agents cancel <job>`, which stops agy's whole
process tree; stopping the background Bash task alone may leave agy running.

## Next

`/review:council` for a ranked, multi-reviewer review of the same change, with agy as one member.

## Gotchas

- **Write is opt-in.** Every use runs read-only until the user sets
  `antigravity.uses.task.mode: write` in `<home>/external-agents.yaml` or `.local.yaml`, or once
  per machine through the plugin option `antigravity_uses_task_mode`, which those files override
  (ADR 0119 decision 2). Pass `--mode write` with a task that should change files: under a read-only ceiling
  it runs read-only and prints a notice naming that key, and an `--add-dir` or `--unsandboxed` on
  it is refused. Relay the notice, and never set the key yourself.
- **A refused action makes the run `blocked-by-mode`, even with a full answer.** agy keeps going
  after a refusal and may still answer well; the command records the run `blocked-by-mode`, exits
  `3` and prints the answer. Relay the answer, name the refused actions from the first line, and
  never report a task done.
- **`--unsandboxed auto` lifts the fence for the whole run.** Treat the run as able to reach the
  disk and network beyond the worktree, unbounded by `--add-dir`; how agy decides on such a
  command is in
  [Terminal sandbox § CLI permissions integration](https://antigravity.google/docs/sandbox#cli-permissions-integration). Never ask agy, fenced or not, to push, open or
  merge pull requests, or run `gh` or `az`; Claude Code stays the only actor for those.
- **A refused out-of-sandbox command is `blocked-by-mode`, not a reason to opt out.** Relay the
  refused command. Rerun with `--unsandboxed auto` only when the task truly needs it (the
  decision above), and say so in the reply.
- **Read the auto-mode notice as the command words it.** On an `--unsandboxed auto` run the
  command checks agy's own log for the run behind agy's auto-mode warning
  ([observation](https://github.com/melodic-software/claude-code-plugins/issues/18213)). A notice
  containing `its log shows the mode was applied` means auto mode ran; `notice: the CLI warned: --mode
  auto is not available` alone means the run fell back. Either way, check that the task's files
  exist before reporting it done.
- **Run a build or test that writes output on WSL, not Windows**: on Windows, a write task's
  commands could not write files
  ([probe record](https://github.com/melodic-software/claude-code-plugins/issues/17786#issuecomment-7072008655)).
- **Workspace configuration from the branch loads into agy**
  ([Hooks § Managing hooks in Antigravity CLI](https://antigravity.google/docs/hooks/#managing-hooks-in-antigravity-cli)).
  The command prints a `notice:` when a reviewed change touches `.agents/`; relay it before the
  findings.
- **The breaker refuses runs after an unavailable-class failure** until the time it prints.
  `external-agents update antigravity` closes it once agy is ready again; do not retry in a loop.
- **`antigravity.binary_path` is read only from an untracked personal file**
  (`<home>/external-agents.local.yaml`, absolute path, file named `agy`, or `agy.exe` on
  Windows). Set anywhere else, it is ignored with a `notice: config:` line; relay that notice.
- **Plugin data directory.** Job files, logs, the breaker and the CLI-facts cache live in this
  plugin's data directory, which the command works out for itself; never pass or set
  `CLAUDE_PLUGIN_DATA`. A `notice:` saying another plugin's `CLAUDE_PLUGIN_DATA` is not used is
  expected. A checkout that is not installed refuses to run until `CLAUDE_PLUGIN_DATA` names a
  directory starting with `external-agents-` (see the plugin README's Job files section).
- **CLI flags come from the CLI.** When a question turns on what an agy flag or subcommand does,
  read the help `update` captured (`agy.txt` in its `cli facts:` folder), not this skill and not
  memory.

Files in this skill

  • SKILL.md7.2 KB
  • evals/evals.json3.9 KB
  • reference/jobs.md1.7 KB
  • reference/routing.md1.8 KB
  • reference/run.md3.5 KB
  • reference/update.md2.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.