The Official Peer AI Collaboration & Tandem Sync Plugin for Google Antigravity (AGY).
Connects remote Antigravity AI agents across Linux and Windows for live pair-programming, tandem vibecoding, cryptographic conflict prevention, and autonomous cross-machine task execution.
When two developers pair-program on separate machines across the internet, their respective AI coding assistants typically have zero awareness of each other. This leads to:
- Overwritten Code: Both AIs editing the same file simultaneously, causing massive git merge conflicts.
- Platform Blindspots: A Linux AI cannot compile WinMM/DirectInput or test Windows batch scripts; a Windows AI cannot test systemd or evdev drivers.
- Context Fragmentation: Manual copy-pasting of test logs, terminal outputs, and system specs between team members.
Antigravity Link solves this completely. It plugs directly into Antigravity (AGY CLI, Antigravity IDE, PyCharm, VS Code) as a native customization plugin, creating an encrypted background bridge where both AI agents work in tandem.
+------------------------------------+ +------------------------------------+
| Lead Node (Linux / macOS) | | Contributor Node (Windows) |
| Ubuntu 24.04 LTS / Unix | | Windows 10 / 11 Native |
| | | |
| +----------------------------+ | | +----------------------------+ |
| | Antigravity AGY TUI | | | | Antigravity AGY TUI | |
| | /link, /peer, /inbox | | | | /link, /peer, /inbox | |
| +--------------+-------------+ | | +--------------+-------------+ |
| | | | | |
| +--------------v-------------+ | | +--------------v-------------+ |
| | PreInvocation Hook | | | | PreInvocation Hook | |
| | PreToolUse Conflict Gate | | | | PreToolUse Conflict Gate | |
| +--------------+-------------+ | Cloud | +--------------+-------------+ |
| | | Relay | | |
| +--------------v-------------+ | HTTPS/443 | +--------------v-------------+ |
| | agy_link.py Companion |<===================>| agy_link.py Companion | |
| | HMAC-SHA256 Signed | (ntfy.sh / | | HMAC-SHA256 Signed | |
| +----------------------------+ | TCP) | +----------------------------+ |
+------------------------------------+ +------------------------------------+
- Strict AGY TUI Isolation: All peer interactions, task summaries, status updates, and reports render directly inside your existing AGY terminal session. Zero external terminal popups.
- Cryptographic Conflict Prevention: When one AI is working on a file, it broadcasts an active lock. If the other AI attempts to modify that file, the plugin's
PreToolUsehook intercepts the action and requires owner confirmation. - Autonomous Task Summoning (
@ai): Dispatch tasks to the remote peer AI on demand. The remote AI executes the prompt locally, collects the logs/diffs, and delivers a structured report back to your session. - Human-in-the-Loop (HITL) Security Gate: Incoming remote task summons trigger a native OS modal dialog (
zenityon Linux,MessageBoxon Windows) before executing, preventing unauthorized remote code execution. - HMAC-SHA256 Packet Integrity: Every message, diff, and state update is cryptographically signed using a shared room key. Spoofed or tampered packets are automatically dropped.
- Zero-Pip Axiom: 100% Python Standard Library (
ctypes,hmac,hashlib,urllib,socket). Nopip install, no virtualenv activation, zero bloat.
Install the Antigravity Link plugin, agent skills, and terminal CLI tool with a single command:
curl -fsSL https://raw.githubusercontent.com/ImNotMrReaper/antigravity-link/main/install.sh | bashgit clone https://github.com/ImNotMrReaper/antigravity-link.git ~/.gemini/config/plugins/antigravity-link
agy plugin install ~/.gemini/config/plugins/antigravity-linkgit clone https://github.com/ImNotMrReaper/antigravity-link.git .agents/plugins/antigravity-linkWhat happens automatically:
- Automatic Lifecycle: Antigravity launches
mcp_server.pyon session start; the background listener and cloud relay automatically activate without any external daemons or manual script execution. - Embedded Web Dashboard: Visit
http://127.0.0.1:7891(or use PyCharm's built-inView -> Tool Windows -> Web Browser) for real-time mesh telemetry. - Conflict Prevention: Hooks intercept concurrent file modifications, prompting for confirmation before conflicts occur.
- Verification: Run
agy plugin validate ~/.gemini/config/plugins/antigravity-link.
The plugin conforms 100% to the Google Antigravity Plugin Specification:
| Component | Path | Description |
|---|---|---|
| Skills | skills/agy-link/SKILL.md |
Provides the agent with full operating rules, delegation CLI commands, and synchronization runbooks. |
| Agents | agents/peer-ai.mdagents/senpai-ai.md |
Remote peer AI and Windows Lead subagents for autonomous cross-machine handoffs. |
| Commands | commands/link.mdcommands/peer.mdcommands/senpai.mdcommands/inbox.md |
Native AGY slash commands (/link, /peer, /senpai, /inbox) directly inside the chat interface. |
| MCP Server | mcp_server.pymcp_config.json |
Exposes 7 stdio tools: link_status, link_summon, link_send, link_sync, link_inbox, link_open, link_gui. |
| Lifecycle Hooks | hooks.jsonhooks/pre_invocation_sync.pyhooks/pre_tool_guard.py |
PreInvocation injects active peer locks into turn context; PreToolUse blocks concurrent writes to locked files. |
Verify anytime with:
agy plugin validate ~/.gemini/config/plugins/antigravity-linkOutput:
[ok] ~/.gemini/config/plugins/antigravity-link
β skills : 1 processed
β agents : 2 processed
β commands : 4 processed (converted to skills)
β mcpServers : 1 processed
β hooks : 1 processed
Antigravity Link is completely hands-offβno background terminal scripts or system services required. Everything executes directly inside your Antigravity chat:
- Zero-Touch Startup: Open your project in PyCharm and run
agy. Antigravity spawnsmcp_server.py, which silently activates background transport listeners (Direct TCP and Cloud Relay). - Check Status (
/link status): Instantly view connection health, active locks, and remote station telemetry. - Peer Messaging (
/link send <message>): Dispatch technical notes directly to your partner's IDE session with native OS desktop alerts. - Remote Task Delegation (
/peer <task>): Dispatch cross-platform validation or compile jobs. The remote machine owner confirms via native OS security prompt ([Yes / No]), and results stream directly back to your chat. - Conflict Prevention: Tell your AI "Lock file.py while I work on this feature". If the remote AI tries to touch the file, Antigravity's
PreToolUsehook intercepts and blocks the write. - Embedded PyCharm Dashboard (
/link gui): Dockhttp://127.0.0.1:7891in PyCharm's built-in Web Browser tool window (View -> Tool Windows -> Web Browser) for real-time telemetry and one-click file navigation.
Antigravity Link operates entirely inside the Antigravity TUI terminal and compatible IDEs (PyCharm, VS Code):
/link status Check connectivity and active file locks
/link sync --task "<Task>" --files "<File>" Broadcast task progress and lock files
/link summon "<Task>" Summon both AIs to work autonomously
/peer "<Task or message>" Delegate task directly to remote peer AI
/senpai "<Task or message>" Delegate task specifically to Windows Lead AI
/inbox Read latest messages and task handoffs
/link open <file> [--line <n>] Open file in PyCharm editor tab
/link gui Display embedded collaborative web GUI URL
# Check peer status and active locks
python3 agy_link.py status
# Interactive live terminal chat with peer
python3 agy_link.py chat
# Pair session credentials
python3 agy_link.py pair
# Configure Human-in-the-Loop security gate mode:
python3 agy_link.py security prompt # (Default) GUI modal confirmation for every remote task
python3 agy_link.py security session_trusted # Auto-approves tasks from paired peer for this session
python3 agy_link.py security deny # Hard-rejects all incoming remote execution requestsAntigravity Link includes a zero-dependency test suite running on Python's built-in unittest runner:
python -m unittest discover -s tests -vtests/test_protocol.py: Wire packet structure, HMAC-SHA256 signature generation, validation, spoofing detection, and tamper detection.tests/test_security.py: Security gate decision tree (prompt,autonomous,deny), role hierarchies, and sandboxed execution boundaries.tests/test_plugin_hooks.py:PreInvocationlock injection andPreToolUseconcurrent file-write prevention with Windows/Linux path normalization.
Every commit and pull request is automatically tested across Linux and Windows runners on Python 3.10, 3.11, 3.12, and 3.13 via GitHub Actions.
-
Project Lead & Linux Architect: @Mr-Reaper
Host System: Dell Inspiron 16 5640 Β· Ubuntu 24.04 LTS (Noble Numbat) Β· GNOME 46 Wayland
Authority: Canonical architecture,mainbranch owner, Linux daemon engine, security framework. -
Platform Lead & Windows Specialist: @Senpai59
Host System: Custom PC Β· Windows 11 Home (Build 26200) Β· AMD Ryzen 5 3600
Authority: Windows engineering,windowsbranch owner, PowerShell installers, Win32/WinMM integration.
Licensed under the MIT License. Free for open-source and commercial pair-programming.