選擇您的 Antigravity
「選擇您的 Antigravity」章節Antigravity 在專為此設計的產品介面中提供原生代理式協助,具備動態推理控制、多代理編排與企業級安全。從 Agent Manager 演進為獨立桌面指揮中心(Antigravity 應用程式),並搭配原生終端機、編輯器與程式化 SDK 介面,Antigravity 同時支援同步互動式結對程式設計,以及獨立於單一 IDE 的非同步背景代理工作流程。選取下方任一介面,探索即時介面預覽、核心工作流程與快速入門路徑:
I updated checkout-service to validate discount codes before creating a payment intent:
- PromoValidator: Check expiration dates and minimum order totals.
- CheckoutController: Return
400 Bad Requestwith a clear message for expired codes.
Shall I run the checkout test suite to verify?
Please review this project. Investigate how it works and build a report showing important files and data flows.
BaseEntity,NamedEntity, andPersonserve as base classes.Owner,Pet,Visit,Vet,Specialty, andPetTypedefine business models.
OwnerController: Manages owner creation, lookup, and pagination.PetController: Handles pet updates/creation usingPetValidator.VetController: Provides HTML vet list and cached JSON endpoint.
This document provides an architecture review and technical investigation of the Spring PetClinic application (spring-projects/spring-petclinic).
Spring PetClinic is a reference application built to showcase modern Spring Boot patterns, clean domain-driven architecture, and Java best practices.
- Framework: Spring Boot 4.1.0, Spring MVC, Spring Data JPA, Spring Cache
- Java Toolchain: Java 17 (
build.gradle) - Database & Persistence: In-memory H2, MySQL, PostgreSQL
The domain model follows standard Object-Relational Mapping (ORM) principles with common base class inheritance.
Built with Spring Boot, Spring MVC, Thymeleaf, and Spring Data JPA (spring-projects/spring-petclinic).
Clone the repository and start the embedded server using the Maven or Gradle wrapper:
- Maven:
./mvnw spring-boot:run - Gradle:
./gradlew bootRun - Local Endpoint:
http://localhost:8080
Uses an in-memory H2 database by default, with Docker Compose profiles for mysql and postgres.
from google.antigravity import Agent, LocalAgentConfig
from google.antigravity.hooks.policy import allow, deny
# Configure stateful agent harness and safety policies
config = LocalAgentConfig(
policies=[allow("view_file"), deny("run_command")],
system_instructions="You are a senior software architect.",
)
# Execute multi-turn conversation in async context
async with Agent(config) as agent:
response = await agent.chat("Audit the repository architecture.")
print(await response.text())核心代理功能
「代理核心功能」章節每個 Antigravity 介面都執行在共享且高度最佳化的代理框架上,該框架與 Gemini 模型共同訓練,結合了同步的逐回合程式碼編輯與工具執行,以及非同步背景子代理、排程 cron sidecar 與自動化驗證迴圈:
與 Google DeepMind 共同訓練。以 Gemini 4 Argon、Gemini 3.8 Flash 與 Gemini 3.1 Pro 提供前沿速度、可設定的推理層級與大型情境容量,為所有本機代理提供動力。
將複雜的背景任務委派給在隔離的 Git worktree 上運作的並行子代理,且不阻塞您的作用中終端機或編輯器工作階段。
透過結構化視覺報告追蹤並驗證代理輸出,包括互動式實作計畫、統一多檔案差異與瀏覽器工作階段錄製。
透過細緻的工具核准閘道、工作區目錄範圍、本機 Proxy 與企業 VPC 服務控制,強制執行本機執行防護。
前沿模型與動態推理
「前沿模型與動態推理」章節Antigravity 運用 Google DeepMind 的前沿 Gemini 模型與動態推理控制。可依對話回合調整推理努力,或將長期任務委派給自主代理群:
互動式模型與思考層級選擇器
請直接在下方體驗模型選擇器。Antigravity 可讓您依對話回合動態調整推理深度與模型速度。
產品比較
「產品比較」章節比較 Antigravity 各介面的主要功能與執行環境:
| 功能 | desktop_windows應用程式 | terminalCLI | extensionIDE 擴充功能 | code_blocksSDK |
|---|---|---|---|---|
| 桌面應用程式 | check | close | close | close |
| 終端機使用者介面 (TUI) | close | check | close | close |
| 編輯器擴充功能(VS Code、JetBrains、VS、Zed、Xcode) | close | close | check | close |
| 程式化 Python SDK | close | close | close | check |
| 遠端控制 & 無頭執行 | check | check | close | close |
| 工作區 & Git 工作樹隔離 | check | check | close | check |
| 多代理群體 (/teamwork-preview) | check | check | close | close |
| 深度推理模式(/boost) | check | check | close | close |
| 互動式視覺產出物 & 差異 | check | check | check | close |
| 沙箱化 Chromium 瀏覽器自動化 | check | close | close | close |
| 自訂技能(SKILL.md) & 規則檔案 | check | check | check | check |
| Model Context Protocol (MCP) 用戶端 | check | check | check | check |
| 排程任務 & cron 側車 | check | check | close | close |
| 企業 SSO & BYOID(Workforce Identity) | check | check | check | check |
| 區域資料落地(US & EU) | check | check | check | check |
| VPC Service Controls (VPC-SC) | check | check | check | check |
| 要求、回應 & 遙測記錄 | check | check | check | check |
使用者與企業版層級
「使用者與企業版層級」章節Antigravity 透過 Google Cloud 安全、區域資料落地與 VPC Service Controls,支援個人開發者與企業工程組織:
專為需要前沿自主程式設計協助的軟體工程師、研究人員與開源貢獻者設計,可在本機工作站上執行。
完整存取原生 Antigravity 應用程式桌面應用程式與高速 agy 命令列介面。
整合 VS Code、JetBrains IDE、Xcode、Zed 與 Visual Studio,具備專屬代理面板、互動式計畫與內嵌 diff 審查。
從每月 0 美元的免費方案開始,或升級至 Google AI Plus、Pro 或 Ultra 以獲得更高的速率限制與可選的 AI 點數超額。
撰寫專案層級自訂技能(SKILL.md),連接 stdio/SSE MCP 伺服器,並定義行為規則集。
專為需要 Google Cloud 治理、區域資料落地、VPC 服務控制與企業身分識別管理的組織打造。
使用 Google Cloud SSO、透過 Workforce Identity Federation 的自攜身分 (BYOID)(例如 Okta),或 Application Default Credentials 進行驗證。
控制模型推論與資料處理在全球、美國多區域與歐盟多區域端點中的發生位置。
透過 Google Cloud VPC 服務控制(VPC-SC)與 IAM 角色治理,強制執行網路服務邊界與私人連線。
直接在您的 Google Cloud 專案中設定專案遙測與完整請求與回應記錄,以確保安全與法規遵循。
透過 Gemini Enterprise Agent Platform API 選擇依用量計費,或使用內含配額與託管超量額度的 Gemini Enterprise 授權。
受 Google Cloud 服務條款約束。您的提示詞、程式碼與對話紀錄絕不會儲存在您的私有環境之外,也不會用於訓練模型。
文件支柱
「文件支柱」章節探索六大核心架構支柱的文件:
安裝 Antigravity 應用程式、設定 CLI、整合 SDK,並設定 IDE 擴充功能。
掌握基礎概念,包括工作區、Git Worktree 與工作階段。
撰寫自訂技能(SKILL.md),連接 MCP 伺服器,並定義生命週期掛鉤。
企業 SSO & BYOID、區域資料落地、VPC Service Controls 與 Cloud Logging。
Firebase、Chrome DevTools、Android CLI、Dart & Flutter、科學與資料代理套件技能。
CLI 指令手冊、模型規格、設定結構描述與 API 參考資料。