Skip to content
Back to skills

Collaborating With Antigravity

ASecurity

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/.

  • 22 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 3, 2026
ai-agentspythongoshellbashsecurity

Works with

  • claude code
  • cli
  • mcp

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned October 3, 2026

npx -y skills add Boulea7/agy-mcp --skill collaborating-with-antigravity --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Collaborating With Antigravity?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Collaborating With Antigravity
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/boulea7-collaborating-with-antigravity-agy-mcp/badge)](https://www.skillsdirectory.com/skills/boulea7-collaborating-with-antigravity-agy-mcp)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: collaborating-with-antigravity
description: 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/.
---

# Collaborating with Antigravity (Codex edition)

`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`.

## When to use

- You want a **second opinion** from Antigravity / Gemini on a tricky
  bug, design call, or code review.
- You want to **prototype** a change in an isolated worktree before
  touching the main checkout.
- You want a **long-running agent loop** to run in the background while
  Codex continues other work.

Avoid for trivial single-step questions — the round-trip is overkill.

## Quick start

```bash
python 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`).

## Modes

| 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 |

## Multi-turn

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."
```

## Detached long jobs

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 protocols

- `--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.

## Safety

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.

## Review prompt profile

For ordinary code review, call `agy(..., mode="review")` with a narrow
scope and ask for P0/P1/P2 findings first. For high-risk changes, use
the adversarial review prompt profile in `references/prompt-patterns.md`:
ask Antigravity to attack correctness, security boundaries, concurrency,
state persistence, rollback, and missing tests. Treat it as a stricter
prompt, not a separate bridge mode.

## Detailed references

- `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.

Files in this skill

  • SKILL.md3.8 KB
  • references/prompt-patterns.md4.3 KB
  • references/security.md4.7 KB
  • references/usage.md4.9 KB
  • scripts/agy_bridge.py4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…