[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"article-35":3},{"id":4,"title":5,"title_en":6,"abstract":7,"abstract_en":8,"content":9,"content_en":10,"category":11,"banner_id":12,"banner_path":13,"tags":14,"is_recommend":16,"prev_article":17,"next_article":21,"created_at":25},35,"2026 终极指南：手把手带你玩转 Google DeepMind 的 Antigravity 智能编程助手","The Ultimate Guide to 2026: Help you play Google DeepMind's Antigravity Intelligent Programming Assistant","在人工智能爆发的今天，你可能用过 ChatGPT 帮你写代码片段，或者用过 GitHub Copil","Today, with the explosion of artificial intelligence, you may have used ChatGPT to help you write code snippets, or used GitHub Copil.","在人工智能爆发的今天，你可能用过 ChatGPT 帮你写代码片段，或者用过 GitHub Copilot 自动补全代码。但你是否体验过一个*\n*能自己看懂项目、自己设计方案、自己创建文件、甚至自己运行和调试代码**的“全自动” AI 助手？\n\n这就是 **Antigravity** —— 由 Google DeepMind 团队倾力打造的**新一代 Agentic AI（智能体）编程助手**。\n\n本篇指南将从零开始，手把手带你完成 Antigravity 的安装、配置，并分享如何高效指挥它为你工作的实战技巧。*\n*全文已进行脱敏处理，国内用户可放心阅读与分享！**\n\n---\n\n## 💡 第一部分：走进 Antigravity —— 为什么它与众不同？\n\n传统的 AI 助手是“问答式”的：你问一句，它回一段代码，你再手动复制到编辑器里。\n而 **Antigravity 是“任务驱动式”的智能体（Agent）**：\n\n* **自主感知**：它能直接读取你整个项目的目录结构和文件内容。\n* **规划能力**：面对复杂的任务（比如“帮我开发一个带后台的留言板”），它会先撰写一份《实施方案》（Implementation\n  Plan），让你审核通过后再动手。\n* **工具使用**：它拥有自己的“手和脚”——能够自动创建\u002F修改代码文件，甚至在终端运行测试和编译命令。\n* **安全可控**：它在执行任何敏感操作（如修改文件、运行命令）之前，**绝对会先弹窗征求你的批准（Approve）**，安全防线始终在你自己手里。\n\n---\n\n## 🛠️ 第二部分：准备工作\n\n在正式安装前，请确认你的电脑和网络环境满足以下条件：\n\n### 1. 兼容的操作系统\n\n* **macOS**：支持 Intel 和 Apple Silicon (M1\u002FM2\u002FM3) 芯片。\n* **Windows**：Windows 10 及以上系统。\n* **Linux**：主流发行版均支持。\n\n### 2. 网络环境准备\n\n由于 Antigravity 依赖 Google 的全球云端 AI 服务：\n\n* **请确保你的电脑网络能够顺畅访问海外的主流学术与技术资源**。\n* 如果在首次登录或下载时遇到页面无法加载，请自行检查并开启你的网络辅助工具。因平台合规要求，具体配置方法请自行探索（相信大家都懂的\n  😉）。\n\n### 3. 准备 Google 账号\n\n* Antigravity 需要绑定你的 Google 账号来激活 AI 模型（推荐准备一个 Gmail 邮箱）。\n* 如果你还没有账号，请在畅通的网络环境下，自行通过常规渠道前往 Google 官网注册。\n\n---\n\n## 📥 第三部分：版本选择 —— 桌面版 vs IDE 插件版\n\nAntigravity 提供了两种形态，它们的核心能力是一样的，但使用场景有所不同：\n\n| 特性       | 桌面版 (Desktop App) 🌟（推荐）                                   | IDE 版                                          |\n|:---------|:-----------------------------------------------------------|:-------------------------------------------------------------------|\n| **适合人群** | 编程新手、产品经理、日常轻度开发者                                          | 专业程序员、习惯在编辑器中工作的开发者                                                |\n| **安装难度** | 极低（像安装普通软件一样双击安装）                                          | 较低（像安装普通软件一样双击安装）                                             |\n| **独立性**  | 独立窗口运行，UI 界面更美观、易交互                                        | 嵌入在编辑器侧边栏中，编写代码时更连贯                                                |\n| **下载地址** | [点击访问桌面版下载页面](https:\u002F\u002Fantigravity.google\u002Fdownload) | [点击访问 IDE 版下载页面](https:\u002F\u002Fantigravity.google\u002Fdownload) |\n\n---\n\n## ⚙️ 第四部分：手把手安装与避坑指南\n\n### 1. 桌面版安装步骤\n\n#### 🍏 macOS 安装\n\n1. 点击下载对应的 `.dmg` 格式安装包。\n2. 双击打开 `.dmg` 文件，将 **Antigravity** 图标拖拽到右侧的 **Applications（应用程序）** 文件夹中。\n3. **避坑指南**：首次打开时，如果系统提示“无法打开，因为无法验证开发者”，请不要慌。打开 Mac 的 **“系统设置” -> “隐私与安全性”\n   **，向下滑动找到安全性部分，点击 **“仍要打开”** 即可。\n\n#### 💻 Windows 安装\n\n1. 点击下载 `.exe` 安装程序。\n2. 双击运行，根据安装向导一路点击“下一步”即可完成。\n3. **避坑指南**：如果 Windows Defender 弹出“阻止了未识别的应用启动”，点击 **“更多信息”**，然后选择 **“仍要运行”**。\n\n---\n\n## ⚙️ 第五部分：核心配置（如何正确设置“大脑”和“手”）\n\n安装完成后，打开软件，我们需要进行三项关键配置：\n\n### 步骤 1：账号登录\n\n1. 启动 Antigravity，点击界面上的 **\"Sign in with Google\"**。\n2. 系统会自动跳转到你的默认浏览器，选择你的 Google 账号并完成授权。\n3. 授权成功后，浏览器会提示你返回客户端，此时 Antigravity 界面将被成功激活。\n\n### 步骤 2：选择你的 AI 模型 (Model Selection)\n\nAntigravity 支持切换不同的 Gemini 模型。点击软件左下角的**设置齿轮 (Settings)**，找到 **Model Selection**：\n\n* **Gemini 3.1 Pro (High) 🌟（强烈推荐）**：它是最聪明的“全能大脑”，擅长处理逻辑复杂、需要深度规划和编写多文件协作的代码任务。\n* **Gemini 3.5 Flash (Medium)**：响应速度极快，适合日常简单的代码问答、修改个别错字或快速查阅文档。\n\n### 步骤 3：合理设置“工作区 (Workspace)”\n\n**工作区是 AI 大显身手的舞台，配置它非常关键：**\n\n1. 建议在你的电脑里（如“文档”或“用户”目录下）新建一个专用的文件夹，命名为 `MyAIProjects`。\n2. 在 Antigravity 中点击 **\"Open Folder\"**，选择这个文件夹作为当前的工作区。\n3. ⚠️ **安全警告**：**千万不要**将电脑的根目录（如 C 盘、D 盘）或者你的整个用户主目录设置为工作区。因为 AI\n   助手有文件修改权限，如果工作区范围过大，可能会误读或影响到你的系统个人文件。\n\n---\n\n## 💡 第六部分：实战指南 —— 如何指挥 AI 为你工作\n\n配置好工作区后，你就可以开始输入你的第一个指令了。这里介绍 Antigravity 的核心工作流程：\n\n### 1. 提出宏大的目标 (Goal)\n\n你可以像对真人程序员说话一样下达命令：\n> ✍️ *“帮我用 HTML + CSS + JS 写一个精致的个人待办事项（To-Do\nList）网页，要求支持暗黑模式，并且任务可以缓存在浏览器里，刷新页面不丢失。”*\n\n### 2. 方案确认（Planning Mode）\n\n当你输入复杂任务后，Antigravity 不会盲目写代码，而是会自动进入**规划模式**：\n\n* 它会生成一个 `implementation_plan.md`（实施方案文档）。\n* 文档中会列出它准备新建哪些文件（如 `index.html`, `style.css`, `app.js`），以及具体的设计逻辑。\n* **你需要做什么**：仔细阅读这个方案，如果觉得可行，直接在聊天框中回复“同意”或点击批准。\n\n### 3. 安全审批（Command & File Approvals）\n\n在编写代码和运行项目时，AI 会调用系统工具：\n\n* 当它要**写入\u002F修改文件**时，界面上会弹出绿色\u002F红色的代码差异对比（Diff），并让你确认。\n* 当它要在终端**运行调试命令**（如启动本地网页服务器）时，会向你申请命令行运行权限。\n* **安全提示**：请养成良好的审核习惯，仔细确认它要执行的命令行是否安全，确认无误后再点击 **Approve**。\n\n---\n\n## 🚀 第七部分：进阶玩家技巧\n\n* **活用子智能体 (Subagents)**：在处理极其庞大的项目时，你可以让 Antigravity\n  派生出专门负责“调研文献”或“数据库调试”的子智能体（Subagent），它们会在后台并行工作，互不干扰，最后向主程序汇总报告。\n* **编写清晰的 Prompt**：给 AI 提需求时，尽量遵循 **“角色 + 上下文 + 目标 + 限制条件”** 的原则。例如：“\n  *你是一个前端专家，在当前工作区下，帮我重构 app.js 中的数据持久化逻辑，改用 LocalStorage，不要修改原有的 CSS 样式。*”\n\n---\n\n## ❓ 第八部分：常见故障排查 (Troubleshooting)\n\n**Q：登录时浏览器提示“无法连接到服务器”或“无法显示页面”？**\n> **A**：这通常是因为网络环境问题。请确认你的海外网络访问工具已经开启了“全局代理”模式，或者在系统设置中确认代理端口配置正确。\n\n**Q：AI 报错提示“权限不足 (Permission Denied)”？**\n> **A**：当 AI 尝试读取工作区以外的文件，或者尝试运行需要系统管理员（sudo）权限的命令时会报此错误。请确保你的工作区设置在普通用户目录下（如\n`\u002FUsers\u002F用户名\u002FDocuments\u002F`），且不要让 AI 运行高风险的系统级指令。\n\n**Q：如何查看 AI 运行的本地日志？**\n> **A**：Antigravity 会在系统后台静默保存日志，你可以在用户目录下的 `.gemini\u002Fantigravity` 目录中找到相关的 log\n> 文件，用于调试或查看详细的历史工作流。\n\n---\n🎉 **祝贺你！你已经掌握了 Antigravity 的全部奥秘。现在，打开你的工作区，向 AI 发送你的第一个开发指令吧！**\n","Today, with the explosion of artificial intelligence, you may have used ChatGPT to help you write code snippets, or used GitHub Copilot to automatically complete code. But have you ever experienced a *\n* A \"fully automated\" AI assistant that can understand projects, design their own solutions, create their own files, and even run and debug code yourself **?\n\nThis is **Antigravity** -** a new generation of Agent AI programming assistant ** created by the Google DeepMind team.\n\nThis guide will start from scratch, take you through the installation and configuration of Antigravity, and share practical skills on how to efficiently command it to work for you. *\n* The full text has been desensitized, so domestic users can read and share it with confidence!**\n\n---\n\n##Part1: Get into Antigravity -Why is it different?\n\nTraditional AI assistants are \"question-and-answer\": you ask, it replies a piece of code, and you manually copy it into the editor.\nAnd **Antigravity is a \"task-driven\" agent **:\n\n* ** Autonomous sensing **: It can directly read the directory structure and file content of your entire project.\n* ** Planning ability **: Faced with complex tasks (such as \"Help me develop a message board with background\"), it will first write an \"Implementation Plan\"\n  Plan), let you pass the review before doing it.\n* ** Tool usage **: It has its own \"hands and feet\"-it can automatically create\u002Fmodify code files, and even run test and compile commands on the terminal.\n* ** Safe and controllable **: Before it performs any sensitive operations (such as modifying files, running commands), ** will definitely pop up a window to ask for your approval **, and the security defense line is always in your own hands.\n\n---\n\n##ˇPart 2: Preparations\n\nBefore formal installation, please confirm that your computer and network environment meet the following conditions:\n\n### 1. compatible operating system\n\n* **macOS**: Supports Intel and Apple Silicon (M1\u002FM2\u002FM3) chips.\n* **Windows**: Windows 10 and above.\n* **Linux**: Supported by mainstream distributions.\n\n### 2. Network environment preparation\n\nBecause Antigravity relies on Google's global cloud AI services:\n\n* ** Please ensure that your computer network has smooth access to mainstream academic and technical resources overseas **.\n* If you encounter a page that cannot be loaded during the first login or download, please check yourself and turn on your network assistive tool. Due to platform compliance requirements, please explore specific configuration methods yourself (I believe everyone understands\n  😉）。\n\n### 3. Prepare your Google account\n\n* Antigravity requires binding to your Google account to activate the AI model (it is recommended to prepare a Gmail mailbox).\n* If you don't have an account yet, please go to Google's official website to register through regular channels in a smooth network environment.\n\n---\n\n##Part 3: Version Selection-Desktop Version vs IDE Plug-in Version\n\nAntigravity provides two forms. Their core capabilities are the same, but their usage scenarios are different:\n\n| characteristics       | Desktop App🌟 (recommended)                                   | IDE version                                          |\n|:---------|:-----------------------------------------------------------|:-------------------------------------------------------------------|\n| ** Suitable for the crowd **| Newcomer programming, product manager, daily light developer                                          | Professional programmers, developers who are accustomed to working in editors                                                |\n| ** Installation difficulty **| Very low (double click to install like ordinary software)                                          | Lower (double click to install like ordinary software)                                             |\n| ** Independence **| Running in a separate window, the UI interface is more beautiful and easy to interact                                        | Embedded in the editor sidebar for more coherent code writing                                                |\n| ** Download address **|[Click to visit the desktop version download page](https:\u002F\u002Fantigravity.google\u002Fdownload)|[Click to visit the IDE version download page](https:\u002F\u002Fantigravity.google\u002Fdownload)|\n\n---\n\n##ˇPart 4: Hands-on installation and pit avoidance guide\n\n### 1. Desktop installation steps\n\n####macOS installation\n\n1. Click to download the corresponding installation package in `.dmg` format.\n2. Double-click to open the `.dmg` file, and drag the **Antigravity** icon into the **Applications ** folder on the right.\n3. ** Trap Avoidance Guide **: When opening it for the first time, if the system prompts \"Unable to open it because the developer cannot be verified\", please don't panic. Open Mac's **\"System Settings\"->\"Privacy and Security\"\n   **, swipe down to find the security section, and click **\"Still want to open\"**.\n\n####Windows installation\n\n1. Click to download the `.exe` installer.\n2. Double-click to run, follow the installation wizard and click \"Next\" to complete.\n3. ** Trap avoidance guide **: If Windows Defender pops up \"Preventing Unrecognized Applications from Starting\", click **\"More Information\"**, and then select **\"Still Running\"**.\n\n---\n\n##ˇPart 5: Core configuration (how to correctly set \"brain\" and \"hands\")\n\nAfter the installation is complete and opening the software, we need to make three key configurations:\n\n###Step 1: Account login\n\n1. Launch Antigravity and click **\"Sign in with Google\"** on the interface.\n2. The system will automatically jump to your default browser, select your Google account, and complete authorization.\n3. After the authorization is successful, the browser will prompt you to return to the client, and the Antigravity interface will be successfully activated.\n\n###Step 2: Select your AI model (Model Selection)\n\nAntigravity supports switching between different Gemini models. Click the ** Settings ** in the lower left corner of the software to find the **Model Selection**:\n\n* **Gemini 3.1 Pro (High)(highly recommended)**: It is the smartest \"all-round brain\", good at handling code tasks that require complex logic and require in-depth planning and multi-file collaboration.🌟\n* **Gemini 3.5 Flash (Medium)**: Very fast response, suitable for daily simple code questions and answers, correcting individual typos, or quickly reviewing documents.\n\n###Step 3: Set up the \"Workspace\" reasonably\n\n** The workspace is a stage for AI to show its talents, and configuring it is very important: **\n\n1. It is recommended to create a new dedicated folder on your computer (such as under the \"Documents\" or \"Users\" directory) and name it `MyAIProjects`.\n2. Click **\"Open Folder\"** in Antigravity to select this folder as the current workspace.\n3.ˇ* * Security Warning **: ** Never ** set the root directory of your computer (such as drive C, drive D) or your entire user home directory as a workspace. because AI\n   The assistant has file modification permissions. If the workspace is too large, it may misread or affect your system's personal files.\n\n---\n\n##Part 6: Practical Guide-How to Command AI to Work for You\n\nAfter configuring the workspace, you can start entering your first command. Here is the core workflow of Antigravity:\n\n### 1. Propose ambitious goals\n\nYou can give orders like you would speak to a human programmer:\n>ˇ*\"Help me write an exquisite personal to-do list (To-Do) in HTML + CSS + JS\nList) web pages, required to support Diablo mode, and tasks can be cached in the browser, so that the page will not be lost when refreshed.\"*\n\n### 2. Protocol Validation (Planning Mode)\n\nWhen you enter complex tasks, Antigravity will not blindly write code, but will automatically enter ** planning mode **:\n\n* It generates an implementation_plan.md (implementation document).\n* The document will list which files it plans to create (such as `index.html`, `style.css`, `app.js`), as well as the specific design logic.\n* ** What you need to do **: Read this plan carefully, and if you think it is feasible, directly reply \"Agree\" in the chat box or click Approve.\n\n### 3. Security Approvals (Command and File Approvals)\n\nWhen writing code and running projects, AI calls system tools:\n\n* When it wants to ** write\u002Fmodify a file **, a green\u002Fred code difference comparison (Diff) will pop up on the interface and let you confirm it.\n* When it wants to run debugging commands ** on the terminal **(such as starting a local web server), it will apply for command line execution privileges from you.\n* ** Security Tips **: Please develop good auditing habits, carefully confirm whether the command line it wants to execute is safe, and then click **Approve* after confirming that it is correct.\n\n---\n\n##Part 7: Skills for Advanced Players\n\n* ** Utilize subagents **: When working on extremely large projects, you can use Antigravity\n  Subagents that are specifically responsible for \"research literature\" or \"database debugging\" are derived. They work in parallel in the background without interfering with each other, and finally report to the main program.\n* ** Write a clear Prompt**: When asking for AI, try to follow the principle of **\"Role + Context + Goals + Restrictions\"*. For example: \"\n  * You are a front-end expert. In the current workspace, help me reconstruct the data persistence logic in app.js and use LocalStorage instead of modifying the original CSS style. *\"\n\n---\n\n##Part 8: Troubleshooting\n\n**Q: When logging in, the browser prompts \"Unable to connect to the server\" or \"Unable to display page\"? **\n> **A**: This is usually due to network environment issues. Please confirm that your overseas network access tool has enabled \"Global Proxy\" mode, or confirm that the proxy port is configured correctly in the system settings.\n\n**Q: AI reported an error and prompted \"Permission Denied\"? *\n> **A**: This error is reported when the AI attempts to read a file outside the workspace, or when it attempts to run a command that requires system administrator (sudo) privileges. Make sure your workspace is set up in the general user directory (such as\n`\u002FUsers\u002Fusername\u002FDocuments\u002F`), and do not let the AI run high-risk system-level instructions.\n\n**Q: How to view the local log of AI operation? **\n> **A**: Antigravity will silently save logs in the background of the system. You can find related logs in the `.gemini\u002Fantigravity` directory under the user directory\n> Files for debugging or viewing detailed historical workflows.\n\n---\n🎉Congratulations to you! You have mastered all the secrets of Antigravity. Now, open your workspace and send your first development command to the AI!**\n","AI",18,"https:\u002F\u002Fblog4-1316398321.cos.ap-nanjing.myqcloud.com\u002Fblog5\u002F20250712142354__南瓜风景-艺术.png",[15],"Agent",false,{"id":18,"title":19,"title_en":20},34,"我用 LiveKit Agents 搭了一个全双工 AI 语音助理：从选型到落地的完整思考","I built a full-duplex AI voice assistant using LiveKit Agents: A complete reflection from selection to implementation",{"id":22,"title":23,"title_en":24},36,"从 SEO 到 GEO：我的博客系统 AI 检索优化与落地实践","From SEO to GEO: My Blog System AI Search Optimization and Implementation Practice","2026-06-08T22:02:11.960501+08:00"]