LazyGravity – 我让我的手机控制反重力,这样我就永远不需要离开床。

1作者: masaTokyo大约 1 个月前原帖
<p><pre><code>我在远离桌子的时候总能想到最好的编码创意——通常是在我快要入睡的时候。我厌倦了失去这种灵感,所以我开发了LazyGravity。 这是一个本地的Discord机器人,可以将Antigravity与您的手机连接起来。我可以在床上、火车上或任何地方发布修复、启动长时间的实施任务,或开始整个功能。只需在Discord中发送一条消息,Antigravity就会在您的家用电脑上执行,结果会以丰富的嵌入形式返回,您可以回复以获取后续指令。 它的工作原理是:通过WebSocket直接使用Chrome DevTools协议驱动Antigravity UI(在Electron壳的DOM上运行Runtime.evaluate)。没有私有API的黑客行为——不像那些逆向工程专有API的工具那样存在账户被封的风险。 我关心的几个方面: - 本地优先:您的代码永远不会离开您的机器。没有暴露的端口,没有云中继,没有中间服务器。 - 安全:基于白名单的访问——只有您的Discord ID可以触发命令。(我建议使用专用服务器以保持私密性。) - 上下文线程:回复任何结果嵌入以继续对话,完整上下文得以保留。 您实际上可以通过手机做的事情: - 将本地项目路由到Discord类别,将会话路由到频道——自动工作区管理 - 使用/model和/mode切换LLM模型或模式(计划/编码/架构) - /screenshot实时查看桌面上发生的事情 - 一键提示模板用于常见任务 - 自动检测并批准/拒绝来自Discord的文件更改对话框 仍处于早期alpha阶段(v0.1.0),但对我的工作流程已经产生了重大影响。希望有人来试用,批评架构,添加新功能并帮助修复bug。 npm install -g lazy-gravity lazy-gravity setup 演示视频在Readme中: https://github.com/tokyoweb3/LazyGravity</code></pre>
查看原文
<p><pre><code> I get my best coding ideas when I&#x27;m nowhere near my desk — usually right as I&#x27;m falling asleep. I got tired of losing that momentum, so I built LazyGravity. It&#x27;s a local Discord bot that hooks up Antigravity to your phone. I can ship fixes, kick off long implementation tasks, or start whole features from bed, the train, wherever. Send a message in Discord, Antigravity executes it on your home PC, results come back as rich embeds you can reply to for follow-up instructions. How it works: it drives the Antigravity UI directly via Chrome DevTools Protocol over WebSocket (Runtime.evaluate on the Electron shell&#x27;s DOM). No private API hacking — no risk of account bans like with tools that reverse-engineer proprietary APIs. A few things I care about: - Local-first: your code never leaves your machine. No exposed ports, no cloud relays, no intermediate server. - Secure: whitelist-based access — only your Discord ID can trigger commands. (I recommend a dedicated server to keep things private.) - Context threading: reply to any result embed to continue the conversation with full context preserved. What you can actually do from your phone: - Route local projects to Discord categories, sessions to channels — automatic workspace management - Toggle LLM models or modes (Plan&#x2F;Code&#x2F;Architect) with &#x2F;model and &#x2F;mode - &#x2F;screenshot to see exactly what&#x27;s happening on your desktop in real-time - One-click prompt templates for common tasks - Auto-detect and approve&#x2F;deny file change dialogs from Discord Still early alpha (v0.1.0), but it&#x27;s been a game-changer for my own workflow. Looking for folks to try it out, roast the architecture, , add new features and help squash bugs. npm install -g lazy-gravity lazy-gravity setup Demo video in Readme: https:&#x2F;&#x2F;github.com&#x2F;tokyoweb3&#x2F;LazyGravity</code></pre>