Logo: Collaborating With Antigravity

Collaborating With Antigravity

Organisatioun
appautomaton
collaborating-with-antigravity

Delegéiert Aufgaben un d'Antigravity CLI (agy) vu Google fir Prototyping, Debugging, Code-Review a Recherche. Ënnerstëtzt Sessiounen iwwer méi Ronnë mat SESSION_ID. Nofollger vun der net méi ënnerstëtzter Gemini CLI.

Add to TypingMind

Iwwersiicht

Editeurappautomaton
Repositoryagent-designer
Skill-Nummcollaborating-with-antigravity
Stären
133
Forks
17
Matgeliwwert Dateien
4
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 4 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    appautomaton huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Collaborating With Antigravity an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/appautomaton/agent-designer/tree/main/skills/collaborating-with-antigravity
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/appautomaton/agent-designer.git /tmp/agent-designer
mkdir -p .claude/skills
cp -r /tmp/agent-designer/skills/collaborating-with-antigravity .claude/skills/collaborating-with-antigravity
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Collaborating With Antigravity an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Collaborating With Antigravity automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Collaborating With Antigravity net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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.

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

bash
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):

bash
# 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 under ~/.gemini/antigravity-cli/conversations/<id>.db. Save turn 1's SESSION_ID — agy can't pre-assign one and never reprints it, so an unsaved conversation can't be resumed.

Bridge flags

FlagPurposeDefault
--PROMPT / --prompt-filePrompt text, or read it from a file (mutually exclusive)—
--cdWorkspace root (required unless --list-models)—
--SESSION_IDResume a conversation by ID (→ agy --conversation)new conversation
--continueContinue the most recent conversation (→ agy -c)off
--modelModel from agy models, e.g. "Gemini 3.5 Flash (Low)", "Claude Sonnet 4.6 (Thinking)"CLI default
--sandbox / --no-sandboxagy terminal restrictionson
--skip-permissionsAuto-approve all tools (--dangerously-skip-permissions)off
--list-modelsPrint agy models as JSON and exit (no prompt/--cd)—
--no-validate-modelSkip validating --model against agy modelsoff
--add-dirAdditional workspace dir (repeatable)none
--print-timeoutagy print wait, e.g. 5m/90s (agy may ignore it)5m
--timeoutBridge wall-clock kill, seconds (the real cap)print-timeout + 120s
--log-fileOverride agy's log pathnone
--return-all-messagesInclude raw_output and the conversation .db pathoff

Set the host's timeout_ms to 600000 (10 min) when invoking via a command runner.

Models

Probe the live list — don't hardcode it:

bash
python3 <skill_dir>/scripts/agy_bridge.py --list-models
# -> { "success": true, "models": ["Gemini 3.5 Flash (Low)", "Claude Sonnet 4.6 (Thinking)", ...] }

Pass the exact string to --model. agy itself does not validate --model — a misspelled or unknown name silently runs the default — so the bridge validates against agy models and errors on an unknown name (--no-validate-model to skip). Rough guide: Flash (Low) for quick checks, Gemini Pro or Claude for hard tasks. Full snapshot in references/agy-cli.md.

Prompting

Use assets/prompt-template.md for structured starters. Key principles:

  • Point, don't paste — give file paths and line numbers, not code blocks.
  • One objective per prompt — competing goals produce noisy output.
  • Enforce output format — append OUTPUT: Unified Diff Patch ONLY. for code changes.
  • Leverage grounding — agy can search the web; ask for research when needed.

Screenshots

agy reads files inside the workspace. Copy screenshots in first, then reference the path (example for a Codex host — adapt the clipboard source path to your host):

bash
mkdir -p .codex_uploads && cp "${TMPDIR:-/tmp}"/codex-clipboard-*.png .codex_uploads/

Don't add the upload dir to .gitignore (agy, like Gemini, may refuse to read ignored paths). Delete screenshots when done.

Verification

  • Smoke: python3 <skill_dir>/scripts/agy_bridge.py --help
  • Syntax: python3 -m py_compile <skill_dir>/scripts/agy_bridge.py
  • Auth: run agy once and sign in with Google (token at ~/.gemini/antigravity-cli/).
  • Session test: run one prompt; confirm JSON has success: true and a SESSION_ID, then resume with --SESSION_ID and confirm continuity.

Collaboration State Capsule

Keep this block updated while collaborating:

[Antigravity Capsule] Goal: | SID: | Model: | Sandbox: | Files: | Last: | Next:

References

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Collaborating With Antigravity?

Delegéiert Aufgaben un d'Antigravity CLI (agy) vu Google fir Prototyping, Debugging, Code-Review a Recherche. Ënnerstëtzt Sessiounen iwwer méi Ronnë mat SESSION_ID. Nofollger vun der net méi ënnerstëtzter Gemini CLI.

Firwat Collaborating With Antigravity op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Collaborating With Antigravity besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Collaborating With Antigravity an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/appautomaton/agent-designer/tree/main/skills/collaborating-with-antigravity an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Collaborating With Antigravity benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Collaborating With Antigravity benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Collaborating With Antigravity domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Collaborating With Antigravity gratis?

appautomaton huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇