/external-agents:antigravity [run <prompt>|review --base <ref>|status [<job>]|result <job>|cancel <job>|update]from external-agents
Hands tasks, investigations, and reviews to Google's Antigravity CLI (agy, Gemini models) as background jobs. Supports running prompts, reviewing branches, checking job status, retrieving results, and canceling jobs.
Ships in external-agents. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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.
| 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 |
review: agy reviews this branch, read-only | external-agents review antigravity --base <ref> [--brief-file <file>] | reference/run.md |
status, result, cancel | external-agents status [<job>], result <job>, cancel <job> | reference/jobs.md |
update: readiness, CLI facts, version and routing check | external-agents update antigravity | reference/update.md |
| Choosing a model or effort | --model, --effort for one run; config keys otherwise | reference/routing.md |
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.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.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.
Before a write task, decide its fence (details in reference/run.md):
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.
Run every run and review with the Bash tool's run_in_background: a run can last up to
antigravity.timeout_seconds, longer than a foreground Bash call may wait, 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.
/review:council for a ranked, multi-reviewer review of the same change, with agy as one member.
antigravity.uses.task.mode: write in <home>/external-agents.yaml or .local.yaml (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.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. 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.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.--unsandboxed auto run the
command checks agy's own log for the run behind agy's auto-mode warning
(observation). 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.notice: when a reviewed change touches .agents/; relay it before the
findings.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.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).update captured (agy.txt in its cli facts: folder), not this skill and not
memory.What SKILL.md sets; muted values are Claude Code's defaults
bashThree short reads, in order
npx claudepluginhub melodic-software/claude-code-plugins --plugin external-agents2 skills in this plugin
Other plugins' skills for the same job