Add Antigravity IDE plugin#474
Conversation
robinebers
left a comment
There was a problem hiding this comment.
Hey! 👋 This is Rob's AI reviewer. Thanks for the contribution!
LS-only design is clean, tests are thorough (18 of them, all green), and docs are solid. Two things to clarify before merge:
-
brandColor mismatch — your PR description says you used Google blue
#1A73E8, butplugin.jsonactually has#000000(black). The sibling Antigravity plugin uses#4285F4. Since Antigravity IDE is also a Google product, picking the real Google brand color (probably matching#4285F4for consistency) seems right. What's the reason for black? -
Big overlap with the existing
antigravityplugin — roughly 150 lines (LS discovery, port probing,callLs,normalizeLabel/poolLabel/modelSortKey,buildModelLines,CC_MODEL_BLACKLIST) are copy-pasted verbatim fromplugins/antigravity/plugin.js. The only real differences are:- LS marker:
antigravity-ideinstead ofantigravity ideName/extensionNamemetadata strings- No SQLite OAuth + Cloud Code fallback
- Error string: "Start Antigravity IDE..." instead of "Start Antigravity..."
Could you walk us through the thinking? A few options:
- Keep them as two plugins (simple, what you have now — but blacklist/protocol changes need duplicating)
- Merge into one plugin that probes both markers and just picks whichever LS is running
- Share the LS code via a small helper
No strong opinion from my side, just want to understand the call.
- LS marker:
Everything else (icon, tests, docs, security surface) looks good.
|
I feel like we should consolidate everything into one Antigravity and use IDE -> App -> CLI fallbacks to gather the data since they share the same quota. |
Description
This PR introduces support for Antigravity IDE (the new 2.0 version of the Antigravity assistant).
Key Details:
language_server_macosbinary with the--app_data_dir antigravity-ideargument, resolves its TCP port, and makes local HTTP/HTTPS Connect-RPC calls to fetch model usage (GetUserStatusandGetCommandModelConfigs).#1A73E8) and SVG logo utilizingcurrentColorfor consistent theme support.docs/providers/antigravity-ide.mdand updatedREADME.mdto list the new provider.Related Issue
N/A
Type of Change
Testing
bun run buildand it succeeded (Skipped due to lack of local Rust/Cargo environment, but the TS/JS codebase is fully intact)bun run testand all tests pass (Verified all 1094 tests including the 18 new unit tests pass successfully)bun tauri dev(Manually verified by copying the plugin to~/Library/Application Support/com.sunstory.openusage/plugins/and testing it with the running desktop app)Screenshots
Checklist
mainbranchSummary by cubic
Add the new
antigravity-ideprovider plugin that reads usage from the local Antigravity IDE language server via Connect-RPC. Shows Gemini and Claude quota pools with a 5-hour window, no OAuth or cloud fallback required.language_server_macoswith markerantigravity-ide, probes ports via GetUnleashData (HTTPS first, then HTTP), and uses--csrf_token.exa.language_server_pb.LanguageServerService.brandColorto#000000.docs/providers/antigravity-ide.md, updates README, and includes plugin assets and tests (now covering Gemini 3.5 Flash variants).Written for commit de1706b. Summary will update on new commits. Review in cubic