[Feature]: Antigravity CLI support
Problem or motivation
Google replaces Gemini CLI with Antigravity CLI
Proposed solution
Add Antigravity CLI support
Alternatives considered
No response
Before submitting
- [x] I have searched existing issues and feature requests for duplicates.
Guys, you have an awesome product, and I use it. Please add support for Antigravity, since Google will stop supporting Gemini CLI on June 18
🔌 Connecting Antigravity (agy) to Ductor via a gemini CLI Wrapper
To connect Ductor with the local agy agent, you can mock the official gemini CLI with a translator script that handles input arguments and streams the output back in NDJSON format.
1. Create /usr/local/bin/gemini
#!/usr/bin/env python3
import sys, subprocess, json
# Parse arguments passed by Ductor
args = sys.argv[1:]
model, resume, output_format = None, None, "text"
i = 0
while i < len(args):
arg = args[i]
if arg in ("-m", "--model"): model, i = args[i+1], i + 2
elif arg in ("-r", "--resume"): resume, i = args[i+1], i + 2
elif arg in ("-o", "--output-format"): output_format, i = args[i+1], i + 2
else: i += 1
if "-v" in args or "--version" in args:
print("1.0.0"); sys.exit(0)
# Forward prompt to agy
prompt = sys.stdin.read().strip()
agy_cmd = ["agy", "--dangerously-skip-permissions"]
if model: agy_cmd += ["--model", model]
if resume == "latest": agy_cmd += ["--continue"]
elif resume: agy_cmd += ["--conversation", resume]
agy_cmd += ["--print", prompt]
process = subprocess.Popen(agy_cmd, stdout=subprocess.PIPE, text=True, bufsize=1)
# Stream output in NDJSON (stream-json) format
if output_format == "stream-json":
print(json.dumps({"type": "system", "subtype": "init", "session_id": resume or "latest"}), flush=True)
while True:
char = process.stdout.read(1)
if not char and process.poll() is not None: break
if char and output_format == "stream-json":
print(json.dumps({"type": "message", "role": "assistant", "content": [{"type": "text", "text": char}]}), flush=True)
process.wait()
sys.exit(process.returncode)
Make it executable:
chmod +x /usr/local/bin/gemini
2. Configuration in config.json
Select gemini provider and use a dummy string for the API key:
"provider": "gemini",
"gemini_api_key": "dummy"
```***
Shipped in v0.18.0 — Antigravity (agy) is now a first-class provider: dynamic model list from agy models, working model switching, and reliable headless answers. 🎉
Release notes: https://github.com/PleasePrompto/ductor/releases/tag/v0.18.0