Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Delegate analytical, sandboxed, or long-running work to the Google Antigravity (agy) CLI via a JSON-bridge wrapper. Use when you need a second opinion, sandboxed execution, or a detached long-running agent loop. Install location is .agents/skills/collaborating-with-antigravity/.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-16 | ✗→✓ | ▲ Improved | 48% | 0% |
| case-01 | ✗→✓ | ▲ Improved | 36% | 0% |
| case-17 | ✗→✓ | ▲ Improved | 28% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 281% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 32% | 0% |
agy-bridge is a thin JSON wrapper around the Google Antigravity (agy) CLI plus a gemini CLI fallback. The bridge returns stable BridgeResponse envelopes designed to drop cleanly into Codex's exec-json protocol via --output-protocol codex.
bug, design call, or code review.
touching the main checkout.
Codex continues other work.
Avoid for trivial single-step questions — the round-trip is overkill.
bashpython scripts/agy_bridge.py \ --cd "/path/to/project" \ --PROMPT "Find every place that calls db.commit() without a try/except." \ --mode review \ --output-protocol codex
The bridge prints one JSON line on stdout: {"success": true, "SESSION_ID": "…", "agent_messages": "…", "adapter": {…}}. With --output-protocol codex the event log conforms to Codex exec-json (thread.started, item.completed, turn.completed).
| Mode | Use it for | Worktree | Writes | |------|-----------|----------|--------| | ask (default) | Q&A, code reading | no | no | | plan | Multi-step planning | no | no | | prototype | Diff-only suggestions | optional | no | | review | Critique a staged change | no | no | | execute | Apply edits in a worktree | yes | requires --allow-write | | browser | Research with browsing | no | no | | long | Detached agent loop | no | varies |
Capture and reuse SESSION_ID:
bash# Turn 1 python scripts/agy_bridge.py --cd /proj --PROMPT "Find race conditions in src/queue/" # → {"SESSION_ID": "abc-123", ...} # Turn 2 python scripts/agy_bridge.py --cd /proj --SESSION_ID abc-123 \ --PROMPT "Propose a minimal fix for the worst one."
Codex projects that run long agent loops should prefer the MCP tool surface (agy_start / agy_status / agy_result / agy_read / agy_cancel / agy_sessions) over polling the CLI in a shell loop. The supervisor handles worker thread lifecycle, log spooling, and cross-platform process-group cleanup.
--output-protocol codex — Codex-shaped exec-json events(thread.started, item.completed, turn.completed).
--output-protocol claude — Claude Code stream-json (default).--output-protocol raw — internal canonical event envelope.The bridge scrubs secrets from every error / log / response, runs under SafetyPolicy, and refuses destructive prompts even with --allow-write. The doctor (agy_doctor MCP tool, or python -m agy_mcp.doctor) reports the environment without leaking secrets.
references/usage.md — full CLI flag reference + MCP tool surface +exit codes.
references/prompt-patterns.md — proven prompt scaffolds per mode.references/security.md — threat model, secret scrub, denylist,worktree, audit log layout.
Other measured skills in the registry, with their headline benchmark lift.