antigravity-cli-runtim…
Internal helper contract for calling the antigravity companion runtime from Claude Code
How to interpret Antigravity companion output — successful responses, quota/auth/backend errors, and applying file changes
$ npx -y skills add Idun-Group/antigravity-plugin-cc --skill antigravity-result-handling --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/antigravity-result-handlingContext preview
The summary Claude sees to decide when to auto-load this skill.
How to interpret Antigravity companion output — successful responses, quota/auth/backend errors, and applying file changes
name: antigravity-result-handling description: "How to interpret Antigravity companion output — successful responses, quota/auth/backend errors, and applying file changes" user-invocable: false
The companion (`scripts/antigravity.mjs`) wraps the `agy` binary and returns Markdown on stdout. Your job is to read that output and turn it into something useful for the developer. This is what to do for each case.
Two things to remember before anything else:
---
The common case: Gemini 3.5 answered.
1. **Lead with Gemini's answer.** Put the substance first. Don't bury it under your own preamble or restate the contract. The developer asked Antigravity a question — give them the answer. 2. **If it touched files, verify before you summarize.** Run `git diff` (or `git status` for new/deleted files) and describe what actually changed, not what the output claims changed. If the diff is large, summarize by file and intent. If a change looks wrong or risky, say so plainly and point at the exact hunk. 3. **If it ran commands**, note what ran and the outcome. 4. **Surface the conversation id footer.** Tell the developer they can continue this thread with `/antigravity:resume` (or `agy --conversation <id>` directly). This matters most when the task is half-done or worth iterating on.
If `delegate` ran with `--read-only` or `--sandbox`, there are no on-disk changes to verify — the response is advisory only. Say that, so the developer knows nothing was applied.
---
On the preview tier, `agy` exits 0 with **empty stdout** when quota runs out. The companion catches this by scanning the log file and surfaces a line like:
RESOURCE_EXHAUSTED (429) ... Resets in <dur>
When you see this:
There is no API key and no paid override for the preview tier, so don't suggest one.
---
Auth is Google OAuth via keyring/browser — there's no key the plugin can set, and the plugin never logs anyone in. If the output indicates the user has never signed in (or `setup` reported `authedGuess: false` and a call produced an auth error):
Don't try to authenticate for them and don't ask for credentials.
---
Other failures — backend errors, network issues, or a print run that hit `--print-timeout` before finishing — should be surfaced verbatim, not swallowed.
---
When the companion can recover a conversation id (it pulls this from `agy`'s log even when stdout is empty), it prints it in a footer. Treat it as the thread handle:
Pass the id along whenever the work isn't obviously finished — it's the cheapest way for the developer to keep going with the same context.
---
| Signal in output | What it means | What you do | |---|---|---| | Answer text + (maybe) diff | Normal response | Lead with the answer; `git diff` to verify any file edits; surface conversation id | | `RESOURCE_EXHAUSTED (429) ... Resets in <dur>` | Preview quota gone | Report reset window; suggest wait or switch account; note Claude can continue | | Auth error / never signed in | Not logged into Google | Tell them to run `! agy` once, then re-run | | Backend error / timeout | Run failed or ran out of time | Surface verbatim; suggest higher `--print-timeout` or `--background` | | Conversation id footer | Thread handle | Offer `/antigravity:resume` or `agy --conversation <id>` |
Always remember `delegate` writes by default — when in doubt, check `git diff`.
Drive Google's Antigravity CLI (agy, powered by Gemini 3.5) without leaving Claude Code. A Claude Code plugin that hands work to agy — Google's Antigravity CLI — and brings the result back into your session.
Repo: Idun-Group/antigravity-plugin-cc
Internal helper contract for calling the antigravity companion runtime from Claude Code
How to write effective prompts for Google Antigravity / Gemini 3.5 agents (used when delegating to or reviewing with the antigravity plugin)