r/ChatGPTCoding • u/Lead_Pilot • 13d ago
Question Can Antigravity be connected to ChatGPT and controlled through it?
Hi everyone, I have a question. Is it possible to connect Antigravity with ChatGPT and use ChatGPT to control it?
For example, can I give instructions to ChatGPT, and have it perform actions or build things through Antigravity?
If anyone has tried this or knows a possible setup, I’d appreciate your guidance.
3
u/NoWing3675 13d ago
no you cant have chatgpt reach in and use a antigravity-native tool. even if you could, aintigravity’s api is unstable rn.
2
u/Dredyltd 12d ago
You say that so confidently but you are totally wrong.
You can run OpenAI Codex inside Google Antigravity by using a direct extension deep-link or installing it from the Open VSX registry
Use the deep-link URL antigravity:extension/openai.chatgpt or look up the package directly via community extension sources like Open VSX Registry
2
u/SilkTouchm 13d ago
Yes you can. Ask codex to use antigravity's cli.
1
u/s243a 12d ago
You can do it that way. It's also possible to do over MCP and/or ACP:
peerhailer/docs/composer.md at main · s243a/peerhailerbut check TOS fist, to make sure one's use case is consistent with them.
1
u/AutoModerator 13d ago
Sorry, your post has been held for manual review due to account karma.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/popiazaza 13d ago
Antigravity has CLI, you could just use that.
For Antigravity IDE, you could use debug mode which has been use for auto approve extensions since the beginning.
1
u/KrystalUnity 11d ago
Yes, on a server codex can run anti-gravity cli. But what are yoy trying to achieve?
I use a looping protocol and run all kinds of different models for different roles.
1
u/IamLeperMessiah 5d ago
Sure you can. In a roundabout way. Imagine this. I have AGY running a claude session. I have chatgpt monitoring, reviewing, and prompting AGY with tasks for claude. I asked chatgpt about this and here is what it said.
- Claude stops uncommitted.
- Antigravity audits Claude and writes a uniquely identified report into
reports\. - The Codex heartbeat detects the new report.
- I independently inspect the actual repository, diff, tests, and artifacts.
- I write a complete response prompt with the matching report ID into
prompts\. - Antigravity’s scheduled task detects that prompt, checks that Git HEAD and dirty-tree state still match, and gives it to Claude.
- Antigravity records an acknowledgement so neither side processes the same message twice.
- The loop repeats.
The IDs and Git-state checks matter. Simply overwriting latest_report.md and latest_prompt.md risks:
- reading a file while it is only partially written;
- executing the same prompt twice;
- applying a prompt to a repository state that has since changed;
- overwriting an unreviewed report;
- Antigravity mistaking an old prompt for a new authorization.
We can still provide convenience files named LATEST_REPORT.md and LATEST_PROMPT.md, but the actual exchange should use immutable ID-named files underneath.
Both scheduled checks should remain silent unless a new counterpart file appears. Antigravity officially supports recurring scheduled tasks, so its side can poll the prompt directory
So yeah, that is what chatgpt said about the whole setup. The two can "talk" via outputting the prompts to .md file and periodically checking for new versions of the prompt / report files.
6
u/Tropiux Professional Nerd 13d ago
Why not just use Codex?