AI编码
dev.to ·
@42Nekit123
为远程向 Google Antigravity 发提示词,我构建了一个开源桥接工具
开发者因不想守在显示器前查看 Antigravity 长任务进度或补发提示词,构建了一个 Python 桥接工具:利用 Antigravity 作为 Electron 应用暴露的本地 DevTools 端口(DevToolsActivePort),通过 Chrome DevTools Protocol(CDP)连接,并以 Telegram 机器人作为交互界面。该工具在后台运行,不占用鼠标,支持切换工作区项目、新建会话、从手机发送提示词以及接收回复和通知,采用 MIT 许可开源。作者表示 CDP 自动化层与机器人逻辑解耦,便于改造成 Discord 或其他 Electron 类 AI 工具(如 Cursor、Claude Code、Codex)。
AI推荐理由 作者开源了一个通过 Chrome DevTools Protocol 连接 Google Antigravity(Electron 应用)本地 DevTools 端口、经 Telegram 机器人远程发送提示词和接收回复的 Python 桥接工具,MIT 许可,CDP 自动化层与机器人逻辑解耦,作者称可较容易改造成 Discord 或其他 Electron 类 AI 工具。属于个人开发者项目,无性能数据或第三方验证,价值在于提供了一种不依赖屏幕捕获/模拟点击的远程交互思路,但实际可用性未经验证。
62
正文
Got tired of having to sit in front of my monitor just to check if Antigravity finished a long task or to send a quick follow-up prompt while I'm in another room or away from my desk.
Most remote setups I looked at were doing screen capture or fake mouse clicking, which is super clunky and takes over your actual cursor.
Since Antigravity runs on Electron, it exposes a local DevTools port (DevToolsActivePort). So I ended up throwing together a small Python bridge that connects to it via Chrome DevTools Protocol (CDP) and routes messages through a Telegram bot interface.
It runs completely in the background, doesn't mess with your mouse, and lets you:
Switch between workspace projects
Create new chats
Send prompts directly from your phone
Receive responses and notifications
The whole thing is open source under MIT:
GitHub Repo: https://github.com/42Nekit123/antigravity-telegram-bridge
The CDP automation layer is decoupled from the bot logic, so it should be pretty straightforward to adapt this for Discord or other Electron-based AI tools like Cursor, Claude Code, or Codex if anyone wants to fork it.
Let me know what you think or if there's anything obvious I should add to it!