跳至內容
遠端控制
選擇您的 Antigravity2-0Antigravity 應用程式開始使用選擇您的 Antigravity Antigravity App 開始使用Antigravity 應用程式

選擇您的 Antigravity

「選擇您的 Antigravity」章節

Antigravity 在專為此設計的產品介面中提供原生代理式協助,具備動態推理控制、多代理編排與企業級安全。從 Agent Manager 演進為獨立桌面指揮中心(Antigravity 應用程式),並搭配原生終端機、編輯器與程式化 SDK 介面,Antigravity 同時支援同步互動式結對程式設計,以及獨立於單一 IDE 的非同步背景代理工作流程。選取下方任一介面,探索即時介面預覽、核心工作流程與快速入門路徑:

more_vert
Add promo code validation and expired coupon checks to the checkout endpoint.
Worked for 11schevron_right

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 Request with a clear message for expired codes.

Shall I run the checkout test suite to verify?

terminalAntigravity CLI
more_horiz
Antigravity CLI 1.2.14
Gemini 3.8 Flash (High)
~/projects/checkout-service
>Run the test suite and fix the failing discount rounding test
▸Thought for 2s, 114 tokens
Running unit tests to reproduce the rounding failure
Bash(npm test -- src/discounts.test.ts)(ctrl+o to expand)
▸Thought for 3s, 142 tokens
Updating currency rounding in calculateDiscount
Edit(src/pricing/discounts.ts)(ctrl+o to expand)
>
? for shortcutsGemini 3.8 Flash · high
arrow_backarrow_forward
folderspring-petclinicexpand_more
splitscreenview_sidebar
folder_copysearchfork_rightauto_awesomeextension
settings
ANTIGRAVITYVS Code
spring-petclinic / Project Analysis And Reporting
addmore_vert

Please review this project. Investigate how it works and build a report showing important files and data flows.

  • BaseEntity, NamedEntity, and Person serve as base classes.
  • Owner, Pet, Visit, Vet, Specialty, and PetType define business models.
Key System Controllers:
  • OwnerController: Manages owner creation, lookup, and pagination.
  • PetController: Handles pet updates/creation using PetValidator.
  • VetController: Provides HTML vet list and cached JSON endpoint.
Ask anything, @ to mention, / for actions
Project ReviewReview ▾
Spring PetClinic - Architectural Review & Technical Analysis

This document provides an architecture review and technical investigation of the Spring PetClinic application (spring-projects/spring-petclinic).

1. Project Overview & Tech Stack

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
2. Core Domain Model & Entity Hierarchy

The domain model follows standard Object-Relational Mapping (ORM) principles with common base class inheritance.

fork_right main⊗ 0 ⚠ 2 ⓘ 1Java: Ready
Gradle: Build Error
agent_pipeline.pyPython 3.10+
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 與自動化驗證迴圈:

psychology前沿 Gemini 模型
Gemini 4 & 3.8

與 Google DeepMind 共同訓練。以 Gemini 4 Argon、Gemini 3.8 Flash 與 Gemini 3.1 Pro 提供前沿速度、可設定的推理層級與大型情境容量,為所有本機代理提供動力。

group_work非同步子代理
平行執行

將複雜的背景任務委派給在隔離的 Git worktree 上運作的並行子代理,且不阻塞您的作用中終端機或編輯器工作階段。

splitscreen視覺產出物
驗證迴圈

透過結構化視覺報告追蹤並驗證代理輸出,包括互動式實作計畫、統一多檔案差異與瀏覽器工作階段錄製。

shield設計內建安全性
有界存取

透過細緻的工具核准閘道、工作區目錄範圍、本機 Proxy 與企業 VPC 服務控制,強制執行本機執行防護。

hub
Google 平台整合

與 Google 各產品團隊共同設計的技能、MCP 伺服器與擴充功能精選套組,包括 Firebase、Android、Modern Web、Chrome DevTools、Flutter、Google Cloud Data、Maps、Science 與 Antigravity SDK。

檢視所有組合arrow_forward

前沿模型與動態推理

「前沿模型與動態推理」章節

Antigravity 運用 Google DeepMind 的前沿 Gemini 模型與動態推理控制。可依對話回合調整推理努力,或將長期任務委派給自主代理群:

psychology

互動式模型與思考層級選擇器

請直接在下方體驗模型選擇器。Antigravity 可讓您依對話回合動態調整推理深度與模型速度。

模型規格與限制arrow_forward

比較 Antigravity 各介面的主要功能與執行環境:

功能
desktop_windows應用程式
terminalCLI
extensionIDE 擴充功能
code_blocksSDK
桌面應用程式checkclosecloseclose
終端機使用者介面 (TUI)closecheckcloseclose
編輯器擴充功能(VS Code、JetBrains、VS、Zed、Xcode)closeclosecheckclose
程式化 Python SDKclosecloseclosecheck
遠端控制 & 無頭執行checkcheckcloseclose
工作區 & Git 工作樹隔離checkcheckclosecheck
多代理群體 (/teamwork-preview)checkcheckcloseclose
深度推理模式(/boost)checkcheckcloseclose
互動式視覺產出物 & 差異checkcheckcheckclose
沙箱化 Chromium 瀏覽器自動化checkclosecloseclose
自訂技能(SKILL.md) & 規則檔案checkcheckcheckcheck
Model Context Protocol (MCP) 用戶端checkcheckcheckcheck
排程任務 & cron 側車checkcheckcloseclose
企業 SSO & BYOID(Workforce Identity)checkcheckcheckcheck
區域資料落地(US & EU)checkcheckcheckcheck
VPC Service Controls (VPC-SC)checkcheckcheckcheck
要求、回應 & 遙測記錄checkcheckcheckcheck

使用者與企業版層級

「使用者與企業版層級」章節

Antigravity 透過 Google Cloud 安全、區域資料落地與 VPC Service Controls,支援個人開發者與企業工程組織:

verified_user部署層級
個人開發者

專為需要前沿自主程式設計協助的軟體工程師、研究人員與開源貢獻者設計,可在本機工作站上執行。

免費方案 · Pro & Ultra 方案
desktop_windows
桌面版 & 終端機用戶端

完整存取原生 Antigravity 應用程式桌面應用程式與高速 agy 命令列介面。

extension
所有 IDE 擴充功能

整合 VS Code、JetBrains IDE、Xcode、Zed 與 Visual Studio,具備專屬代理面板、互動式計畫與內嵌 diff 審查。

toll
彈性個人方案 & AI 點數

從每月 0 美元的免費方案開始,或升級至 Google AI Plus、Pro 或 Ultra 以獲得更高的速率限制與可選的 AI 點數超額。

build
技能、MCP & 規則

撰寫專案層級自訂技能(SKILL.md),連接 stdio/SSE MCP 伺服器,並定義行為規則集。


探索六大核心架構支柱的文件: