Google Antigravity AI Coding:从零开始构建我的作品集网站

发布: (2025年12月6日 GMT+8 22:00)
3 min read
原文: Dev.to

Source: Dev.to

Introduction

Google 刚在 2025 年 11 月 18 日发布了 Antigravity,这是一款以 AI 代理为核心的 IDE,工作方式类似资深工程师的副驾驶。我是 Samuel Adekunle,一名高级 Flutter 开发者,在本文中我将带你完成 Google Antigravity 的安装与配置,探讨其核心概念,并演示一个真实的使用案例——我的站点 techwithsam.dev

Installation & Configuration

  • Availability: Public preview (free).
  • Supported platforms: macOS, Windows, Linux.
  • Download: Obtain the installer from the official Antigravity page.
  • Rate limits: Gemini 3 Pro (resets every 5 hours).
  • Model compatibility: Works with Claude Sonnet 4.5 and OpenAI’s GPT‑OSS.

下载后,运行对应操作系统的安装程序并按照屏幕提示进行操作。安装完成后,启动 Antigravity 并使用 Google 账户登录,以激活预览功能。

Key Concepts

  • Agent Manager: Central hub for creating, monitoring, and managing AI agents.
  • Editor: Integrated code editor where you can issue natural‑language commands to agents.
  • Browser: Live preview pane that reflects changes in real time, allowing agents to interact with the rendered UI.

Use Case: My Portfolio Site

为说明 Antigravity 的工作流程,我将使用它来改进我的 Flutter 作品集站点 techwithsam.dev 上的响应式网格。

  1. 在 Antigravity 的编辑器中打开项目文件夹。

  2. 在终端或编辑器提示符中输入:

    /agent Fix this Flutter responsive grid for iOS Safari.
  3. 代理会分析代码,应用必要的布局调整,并在 Proof‑of‑Work 视图中记录更改。

  4. 查看修改内容,在 Browser 预览中测试,并在需要时使用 “Refine” 按钮进行微调。

Features Overview

  • Agent Interface – Issue tasks via natural language in the editor, terminal, or browser preview (e.g., /agent ).
  • Multi‑Model Support – Switch between Gemini 3, Claude, or other supported models via Settings > Models > Select.
  • Proof‑of‑Work Tracing – Automatic audit trail that records why each change was made, useful for team reviews.
  • Async Feedback Loop – Agents iterate based on your feedback; click Refine and describe the desired tweak.
  • Cross‑Platform Magic – Runs locally with no cloud lock‑in; optional VS Code extensions enable hybrid workflows.
Back to Blog

相关文章

阅读更多 »

我放弃做 FinOps 咨询

几个月前,我开始支持不同的客户实施资源和基础设施优化策略。这是一个复杂的决定……