feat(antigravity-ide): added support for antigravity IDE #418
Open
KirDE wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Description - Antigravity IDE Usage Capture and Dynamic Model Resolution
colses #411
Summary
.pb/.dbsessions from Antigravity IDE (%USERPROFILE%\.gemini\antigravity-ide\conversationsandimplicit) on Windows.Get-CimInstance Win32_Process) and TCP listening-port extraction (Get-NetTCPConnectionvia PowerShell) combined with fast local HTTPS handshake probes to discover the active language server's actual RPC endpoint.displayNamereturned by the server (e.g."Gemini 3.5 Flash (High)"or"Gemini 3.5 Flash (Medium)") to automatically map arbitrary/legacy server keys likegemini-3-flash-agentto their correct canonical generations (e.g.gemini-3-flash-highandgemini-3-flash-medium). This automatically fixes both the model display name ("Gemini 3.5 Flash") and accurate token pricing.PROVIDER_PARSE_VERSIONS) withantigravity: 'worktree-project-grouping-v3'. This automatically invalidates legacy reports insession-cache.jsonand reparses them to correctly group older monthly sessions under their workspace repository names instead of a single fallback block.Testing
npm testpasses (Focusedtests/providers/antigravity.test.tssuite passes 100% cleanly)npm run buildsucceedsVerification Terminal Output (Real Data)
Below is the verified monthly report (
npx tsx src/cli.ts month --provider antigravity --format json) showing the rebuilt session database. Notice that today's active session resolves under the correct workspace project name and is accurately classified underGemini 3.5 Flash(including pricing), while older monthly sessions correctly maintain their originalGemini 3 Flashnames:{ "generated": "2026-05-30T09:39:39.511Z", "currency": "USD", "period": "May 2026", "periodKey": "month", "overview": { "cost": 111.72962200000003, "calls": 4407, "sessions": 25, "cacheHitPercent": 0, "tokens": { "input": 51511021, "output": 1423800, "cacheRead": 0, "cacheWrite": 0 } }, "projects": [ { "name": "antigravity", "path": "antigravity", "cost": 60.97398350000002, "avgCostPerSession": 4.690306423076924, "calls": 999, "sessions": 13 }, { "name": "project-alpha", "path": "c:\\projects\\project-alpha", "cost": 40.8282755, "avgCostPerSession": 5.8326107857142855, "calls": 2925, "sessions": 7 }, { "name": "codeburn", "path": "c:\\projects\\codeburn", "cost": 5.515234500000001, "avgCostPerSession": 5.515234500000001, "calls": 249, "sessions": 1 }, { "name": "project-beta", "path": "c:\\projects\\project-beta", "cost": 2.1796400000000005, "avgCostPerSession": 2.1796400000000005, "calls": 29, "sessions": 1 }, { "name": "project-gamma", "path": "c:\\projects\\project-gamma", "cost": 1.2163025, "avgCostPerSession": 1.2163025, "calls": 97, "sessions": 1 }, { "name": "project-delta", "path": "c:\\projects\\project-delta", "cost": 1.0161860000000003, "avgCostPerSession": 0.5080930000000001, "calls": 108, "sessions": 2 } ], "models": [ { "name": "Opus 4.6", "calls": 1153, "inputTokens": 13513047, "outputTokens": 587001, "cost": 82.24026000000003 }, { "name": "Gemini 3 Flash", "calls": 3005, "inputTokens": 35308019, "outputTokens": 764047, "cost": 23.974127499999987 }, { "name": "Gemini 3.5 Flash", "calls": 249, "inputTokens": 2689955, "outputTokens": 72752, "cost": 5.515234500000001 } ] }