Skip to content
Development
Skill

/collaborating-with-antigravity

Delegate tasks to Google's Antigravity CLI (agy) for prototyping, debugging, code review, and research. Supports multi-turn sessions via SESSION_ID. Successor to the retired Gemini CLI.

From plugin
agent-designer
1335 skills

Claude Code

$ npx -y skills add appautomaton/agent-designer --skill collaborating-with-antigravity --agent claude-code

SKILL.md

collaborating-with-antigravity.SKILL.md
name: collaborating-with-antigravity
description: Delegate tasks to Google's Antigravity CLI (agy) for prototyping, debugging, code review, and research. Supports multi-turn sessions via SESSION_ID. Successor to the retired Gemini CLI.
metadata:
  short-description: Delegate to Antigravity CLI (agy)

Collaborating with Antigravity (agy)

Use the Antigravity CLI (`agy`) as an independent collaborator while the calling agent stays responsible for verification, synthesis, and final user-facing decisions. Antigravity CLI is Google's replacement for the **retired Gemini CLI** (hosted auth shut off 2026-06-18).

The bridge script (`scripts/agy_bridge.py`) wraps `agy -p` (headless print mode), returns structured JSON, and manages session continuity via `SESSION_ID`. **Always go through the bridge** — raw `agy -p` surfaces no conversation ID and no structured output (see below).

Why the bridge is mandatory

  • **agy won't reveal the conversation ID** (no `--session-id`, never printed). The bridge recovers it

from agy's cache, returns it as `SESSION_ID`, and resumes via `--conversation`. It also serializes calls with a file lock — **don't run bridge calls concurrently.**

  • **agy has no structured output.** The bridge shapes plain text into JSON, streams live progress to

stderr, and enforces its own wall-clock kill as the real timeout.

Mechanics, upstream issue numbers, and the verified flag surface: [references/agy-cli.md](references/agy-cli.md).

Commands below write `<skill_dir>` for the absolute path of the directory containing this SKILL.md. Your harness usually reports that path when it loads the skill. If it does not, use this SKILL.md's own location. Substitute it before running, for example `~/.claude/skills/collaborating-with-antigravity`.

Safety

`agy` can read and write files and run tools in the workspace. To constrain it:

  • `--sandbox` is **on by default** in the bridge — it applies agy's terminal restrictions.

**Recommended for review/consultation.** Use `--no-sandbox` only when you deliberately want edits/shell.

  • Include `OUTPUT: Unified Diff Patch ONLY. Do not modify any files.` in the prompt when requesting

code changes. This is a convention, not enforced.

  • `--skip-permissions` maps to agy's `--dangerously-skip-permissions` (auto-approves every tool). Only

use it with explicit user consent, ideally in an isolated worktree.

  • Never hand `agy` secrets, private keys, or production data.

Host-side approval (the bridge call itself)

Everything above governs the child agy. The **host** agent's own permission layer gates the `python3 … agy_bridge.py` Bash call first — and under classifier-gated auto-approval (Claude Code `auto`/`dontAsk`, Codex non-interactive runs), a long-running script that spawns another agent over the codebase pattern-matches "high-risk" and can be **denied silently**: the delegation never starts. A host permission error instead of bridge JSON means the host blocked the bridge, not that agy failed.

  • **Pre-authorize the bridge instead of relying on the classifier.** Claude Code host: add `"Bash(python3 *collaborating-with-antigravity*bridge.py*)"` to `permissions.allow` in your `settings.json`. The wildcard form keeps matching wherever the skill is installed. Sandboxed hosts also need `"python3 *collaborating-with-antigravity*bridge.py*"` in `sandbox.excludedCommands`, because sandbox network policy blocks the child CLI's API traffic even after the command is allowed. Install and approval runbooks: [docs/setup/](https://github.com/appautomaton/agent-designer/tree/main/docs/setup) in the source repo.
  • **Codex host: the sandbox is the second gate.** The child `agy` CLI needs network for Google auth and inference, which the host sandbox blocks in `read-only` and `workspace-write`. Run the bridge call through an approved escalation, or knowingly grant network for that call.
  • **Never degrade silently.** If the host denies the bridge call, report it and propose the allowlist fix — don't substitute your own answer for the independent second opinion that was requested.

When to use

  • Second opinion on design tradeoffs, edge cases, or test gaps.
  • Web search / research (Antigravity has built-in grounding).
  • Reviewing a diff or proposing changes as a unified diff.
  • Screenshot / image analysis.

When not to use

  • Trivial one-shot tasks — do them directly.
  • Tasks requiring file edits — the calling agent edits, agy advises.
  • Anything involving secrets, private keys, or prod data.

Quick start

⚠️ Backticks / `$VARS` in prompts trigger shell expansion — use a single-quoted heredoc, or `--prompt-file` for large/generated prompts. See [references/shell-quoting.md](references/shell-quoting.md).

PROMPT="$(cat <<'EOF'
Review src/auth.py around login() and propose fixes.
OUTPUT: Unified Diff Patch ONLY.
EOF
)"
python3 <skill_dir>/scripts/agy_bridge.py \
  --cd "." --model "Gemini 3.5 Flash (Low)" --PROMPT "$PROMPT"

**Returns** (stdout JSON): `{ "success": true, "SESSION_ID": "...", "agent_messages": "...", "model": "...", "warnings": [...] }`. Live progress streams to **stderr**; the bridge exits non-zero on failure. Run non-trivial calls in the host's background-command mode and watch the stderr progress.

Multi-turn sessions

Capture `SESSION_ID` from the first call and pass it back (use the same `--cd`):

# Turn 1
python3 <skill_dir>/scripts/agy_bridge.py \
  --cd "." --PROMPT "Analyze the bug in foo()."

# Turn 2 — resume by ID
python3 <skill_dir>/scripts/agy_bridge.py \
  --cd "." --SESSION_ID "<id>" --PROMPT "Propose a fix as a unified diff."

# Or continue the most recent conversation
python3 <skill_dir>/scripts/agy_bridge.py \
  --cd "." --continue --PROMPT "What about edge cases?"

`--SESSION_ID` and `--continue` are mutually exclusive; `--continue` resumes agy's most-recent conversation *globally* (not per-`--cd`), so prefer `--SESSION_ID` for deterministic resume. Sessions persist as SQLite un

Read more
@appautomaton
Ships withagent-designer

A catalog of installable skills for AI coding agents: Claude Code, Codex, Antigravity, and Grok. Structured, reusable skills that give your agents clear workflows, safe defaults, and multi-turn collaboration capabilities.

Stars on GitHub

Momentum

stars in total
133
Star history of appautomaton/agent-designer on GitHub, a chart by star-history.com

Other skills on agent-designer.

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills11d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2d252k
@facebook@facebookInstall Skill

Questions about collaborating-with-antigravity.

Which coding agents can use collaborating-with-antigravity?
collaborating-with-antigravity installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.