Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Antigravity SDK for the Java Developer

Antigravity SDK for the Java Developer

Antigravity is a family of agentic tools, comprising Antigravity 2.0 (the agent manager desktop application), Antigravity CLI (to work in the terminal), Antigravity IDE (a smart VSCode fork), and the lesser known Antigravity SDK. In this short talk, we're going to focus on the SDK, that allows you to create all sorts of agent automations. Although the SDK is initially available only in Python, Guillaume Laforge created a custom unofficial Antigravity Java SDK, for JVM developers.

Avatar for Guillaume Laforge

Guillaume Laforge

September 22, 2026

More Decks by Guillaume Laforge

Other Decks in Technology

Transcript

  1. Guillaume Laforge Developer Advocate at Google Cloud Committer on ADK

    Java and LangChain4j glaforge glaforge.dev @glaforge Java Champion & Apache Groovy co-founder @glaforge.dev Cast Codeur podcast co-founder @[email protected] …and maintainer of the unofficial Antigravity Java SDK and Gemini Interactions Java API
  2. The Antigravity family!  Antigravity (2.0)  Antigravity IDE &

    Extensions   Antigravity CLI Antigravity SDK
  3. github.com/glaforge/antigravity-java-sdk  Core & Models  Tools & Agents •

    Idiomatic type-safe & fluent Java API • • Sync calls or streaming (callbacks, reactive streams) • Multimodal inputs, structured outputs • Works with Gemini, and local models (Ollama, LM Studio) Local tools with @Tool / @Param annotations • Built-in tools out of the box • Agent skills, MCP servers & slash commands • Subagents & background triggers  Control & Lifecycle • Security policies (deny by default) • Lifecycle hooks (inspect, decide, transform) • Session persistence (conversation ID) • Token usage tracking & budget caps
  4. Typical use cases  OVERVIEW SDK Production Scale Autonomous AI

    agent runtime powering software engineering, enterprise governance, & platform automation.  4. Enterprise Compliance • IAM governance with ory-antigravity • Observe vs. Enforce real-time control modes 04 d source    1. CI/CD & Security Auditing 2. Control Planes & Observability 3. Multi-Agent & Subagents • Headless PR audits in GitHub Actions & pipelines • Agent operations hubs for background agent monitoring • Context window isolation via child subagents • Zero-Trust policies (policy.deny_all()) • Real-time telemetry streaming over WebSockets 02 • Granular security limits (max_depth) 01   5. Algorithmic Trading 6. "Build with Google" • Automated quant strategy research & backtesting • Firebase backend & Android Virtual Devices • Microservice conversion (reduced 40d to 5d) • Web Puppeteer audits & Unity MCP integration 06 05 03  7. Community IDE Extensions • TypeScript antigravity-sdk extension • Custom IDE agent panel UI & status monitoring 07
  5. [ DEMO ] Antigravity SDK in action  Basic example

    Core API setup & simple invocation  Custom Java tools @Tool & @Param annotations   Agent skills Multiturn chats Loading & applying skills Session persistence & context github.com/glaforge/agy-java-sdk-samples   Streaming Security policies Reactive streams & callbacks Deny by default execution rules  Built-in capabilities Out-of-the-box system tools  MAIN DEMO GitHub PR comparator End-to-end intelligent code review agent