/workflow:collaborating-with-antigravityfrom workflow
Delegate plan, prose, spec, architecture, product, and marketing review to the Google Antigravity (agy) CLI, through the agy MCP tools from Claude Code or a JSON-bridge script from other harnesses. Also covers sandboxed execution in a worktree and long agent loops that should not block the main conversation. Not for code review, which goes to the opencode CLI reviewers or the codex CLI. agy spend is budget-gated, so get explicit user approval once per session before dispatching.
Ships in workflow. 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; scripts run unread.
The agy bridge (scripts/agy_bridge.py) is a thin JSON wrapper around the
Google Antigravity (agy) CLI plus an optional gemini CLI fallback. It
produces stable BridgeResponse envelopes so this skill can drive
Antigravity sessions deterministically.
This skill serves one artifact class: plan, prose, spec, architecture, product, and marketing review. agy handles human language more naturally than Anthropic and Anthropic-inspired models, and those artifacts are judged on exactly that.
Work outside that class is not this skill's to place. Hand it back to
the delegating-work router when a board process installs one; with no
router present, follow the repo's review-tooling document. Code review
in particular is out of scope here, and its destinations are the
OpenCode CLI reviewers (opencode-cli) and the codex CLI (codex-cli).
Naming a destination is not the same as picking the lane, and picking
the lane stays the router's job. Where a repo's review-tooling document
routes prose review somewhere else, that document decides, not this
file.
Both steps run before this session's first dispatch, in this order.
agy_doctor probe and read its report. It confirms the
agy version, the auth state, whether the gemini CLI fallback is
present, and the session-store path. Do not trust any install-state
claim written into this file; where the two disagree, the report is
authoritative.Outcome rule: a probe reporting auth trouble, an exhausted quota, or config that is missing means the reviewer is unreachable. The dispatch does not happen. The gate it would have served stays open as a deferral, and that deferral is surfaced at the next user gate.
Two frontends, one backend. Pick by what your harness can reach:
agy_start returns a job id immediately, then agy_status,
agy_read, agy_result, and agy_cancel work against that id. Every
call takes an explicit timeout, and jobs are recorded in an on-disk
session store. That job record is why agy stays reliable where a
client-side wait would strand the work.scripts/agy_bridge.py from harnesses that cannot reach Claude
Code's MCP servers: an OpenCode or codex session, or a plain shell
script.Both drive the same agy-mcp backend, so this is a transport choice, not a capability difference.
Do not use for trivial one-shot questions - the round-trip overhead is not worth it. Prefer direct work for those.
# One-shot synchronous call (ask mode, no write):
python scripts/agy_bridge.py \
--cd "/path/to/project" \
--PROMPT "Explain the auth flow in src/auth/"
Output is a single JSON line on stdout: {"success": true, "SESSION_ID": "...", "agent_messages": "...", "adapter": {...}, ...}.
--mode controls the agent persona and downstream safety policy:
| Mode | Use it for | Worktree? | Writes? |
|---|---|---|---|
ask (default) | Q&A, code reading, design discussion | no | no |
plan | Multi-step planning, breakdown | no | no |
prototype | Generate diffs to hand back (execution delegation, not review) | optional | no |
review | Review of a plan, prose, or spec artifact | no | no |
execute | Make file edits in the workspace | opt-in | requires --allow-write |
browser | Interactive browsing / research | no | no |
long | Multi-hour agent loop, expect to poll status | no | no |
execute needs --allow-write to opt in to mutations. Keep
worktree_default off in ~/.config/agy-mcp/config.toml unless a run
genuinely needs isolation, and turn it on per call with --worktree true when it does. A machine-wide default-on leaves a branch and a
directory behind after every execute run, whether or not that run
wanted one (see references/security.md for the settings).
When a run does create a worktree, nothing auto-cleans it; references/prompt-patterns.md carries the cleanup duty next to the execute prompt scaffold.
Capture SESSION_ID from the first response, then pass it back:
# Turn 1
python scripts/agy_bridge.py --cd "/proj" --PROMPT "Analyse src/auth/"
# → {"SESSION_ID": "abc-123", "agent_messages": "..."}
# Turn 2 (continues the same conversation)
python scripts/agy_bridge.py --cd "/proj" --SESSION_ID abc-123 \
--PROMPT "Now propose a refactor."
For tasks that exceed a single Claude turn, use the supervisor surface
via the MCP tools agy_start / agy_status / agy_result /
agy_read / agy_cancel.
See references/usage.md for full examples.
The bridge advertises adapter capabilities in every response under
"adapter". Trust those over your prior assumptions - agy does not
stream tokens, so supports_streaming=false is normal; gemini does,
so the fallback path returns finer-grained events.
--output-protocol claude (default) emits events shaped like Claude
Code stream-json. --output-protocol codex emits OpenAI Codex
exec-json. --output-protocol raw returns the canonical event envelope
unchanged. Pick the one that matches your downstream parser.
SafetyPolicy.--allow-write is required for any mutation; safety policy denies
destructive prompts even with the flag.exit_code and timing on the JobRecord returned
by agy_status.references/usage.md - full CLI flag reference, MCP tool surface,
long-job patterns, exit codes.references/prompt-patterns.md - proven prompt scaffolds for ask,
plan, prototype, review, and execute modes.references/security.md - threat model, secret handling, denylist,
worktree behaviour, audit log layout.What SKILL.md sets; muted values are Claude Code's defaults
11 skills in this plugin
/codex-cliDrive the codex CLI from an external harness (Claude Code, OpenCode, a
script) for a second-model read. Use when the user says "codex review",
"second opinion via codex", "adversarial review", "drive codex", "codex
exec", or names codex as the reviewer for a diff, plan, or card.
Contains the sandboxed invocation, caller-owned deadlines, the prompt
contract that makes a review gradeable, the validity rule for a
delegated review, and the staging recipe for material outside the
working repo. Pins no model on purpose. Where a repo ships a
review-tooling document, that document decides which role codex serves.
/gate-probesUse before git commit, gh pr create, or when the user says "ready to commit",
"review this diff", "check before I push", or "run the gates". Also use when
the user says "ensure proper gates", "verifiable checks", "ready for
implementation", "plan with gates", or "scope this change". Run these
universal gates before language-specific review skills (python-review,
rust-review). Checks scope control, duplication, reviewability, verification,
and residual risks.
Other plugins' skills for the same job
/git-commitUse when writing a commit message or preparing a git commit. Covers conventional commit format, message structure, prose quality, and mandatory user review before committing. If a github-workflow skill is available, pair with it for branch naming and PR conventions.npx claudepluginhub shearerbeard/agent-skills --plugin workflow