An Antigravity skill that enables agents to programmatically spawn real, top-level user conversation sessions in the desktop sidebar, with automatic bidirectional messaging back to the coordinator chat.
Unlike standard subagents that run hidden in background processes, spawn-session creates independent root conversations:
- Visible in the left sidebar: Created with
nesting_depth = 0and an emptyparent_conversation_id, making each spawned thread appear directly in the user's sidebar. - Bi-directional communication: The spawned session automatically receives the coordinator's ID and can send reports back using
send_message. - Zero file polling: The coordinator receives replies through Antigravity's reactive message delivery without reading foreign transcript files.
- Cross-platform: Includes both PowerShell (
spawn.ps1) for Windows and Python (spawn.py) for macOS, Linux, and Windows.
Clone or copy this repository into your global Antigravity skills directory:
Windows (PowerShell):
git clone https://github.com/aihehye/antigravity-spawn-session.git "$env:USERPROFILE\.gemini\config\skills\spawn-session"macOS / Linux:
git clone https://github.com/aihehye/antigravity-spawn-session.git ~/.gemini/config/skills/spawn-sessionClone into your repository's local skill folder:
git clone https://github.com/aihehye/antigravity-spawn-session.git .agents/skills/spawn-sessionAsk the agent in natural language:
"Spawn a new sidebar session named 'Benchmark Suite' to run performance tests and report back."
PowerShell:
powershell -ExecutionPolicy Bypass -File "scripts/spawn.ps1" -Title "Data Migration" -Model "flash" -Prompt "Analyze schema changes and verify indexes."Python:
python scripts/spawn.py "Analyze schema changes and verify indexes." --title "Data Migration" --model "flash"- The script resolves the active Antigravity Language Server via
$env:ANTIGRAVITY_AGENTAPI_EXEor$env:ANTIGRAVITY_LS_ADDRESS. - It invokes
agentapi new-conversation(or Connect-RPCStartCascade) without parent lineage flags. - The server generates a unique UUID, writes the record to
conversation_summaries.db, and pushes an update to the Electron UI. - The spawned agent executes its instructions, and upon completion, uses
send_messagetargeting the parent conversation ID to notify the coordinator.
MIT