Repository navigation
Conversation
Read personal Google subscription quotas without requiring the desktop IDE, preserve account ownership across asynchronous refreshes, and group Gemini and shared third-party allowances under Antigravity on web and mobile. Classify the native Opus/Sonnet 5.5 variants and show Claude model glyphs while preserving the Antigravity provider identity and ACP-owned availability. Quota probe and initial integration adapted from Maseeek's PR pingdotgg#17530. Native model metadata adapted from ZainNawaz22's PR pingdotgg#15232. The managed Google runtime remains unmodified; its allowlist dependency is disclosed in the PR rather than shipped as a repacked binary. Co-authored-by: Maciek Geneja <88164545+Maseeek@users.noreply.github.com> Co-authored-by: Zain <i221085@nu.edu.pk>
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.
Problem
Antigravity users cannot see their subscription allowances in T3's Usage → Limits view. Gemini and third-party models have distinct five-hour/weekly buckets; Claude and GPT share the third-party allowance. Users who have native Claude models available through ACP should also see their model family without mistaking it for a separate Anthropic provider account.
This draft combines quota visibility and native Opus/Sonnet presentation under the Antigravity provider. It does not unlock Claude on the stock Google ACP 1.3.0 runtime. Google's client allowlist remains an external dependency, described below.
Change
v1internal:retrieveUserQuotaSummarydirectly from Google's Cloud Code API with the personal Google credentials in the T3 instance's own ACP profile. No Antigravity desktop process, local service or IDE credential database is required. Access tokens stay in memory; the probe does not write credentials.The only shared provider-core change is an opt-in
enrichmentOwnsUsageLimitsswitch: Antigravity's asynchronous account-quota snapshots must be able to publish/clear limits. Other providers keep the existing protection against enrichment overwriting live runtime notifications. No wire-schema migration, new RPC, global provider default, Codex CLI change, or modified managed-runtime download is included.Google ACP runtime dependency — disclosed local experiment
Issue #15378 identifies the upstream distinction:
agy models/the IDE's model list does not establish availability through ACP. T3 already preserves the native models it receives. The official ACP 1.3.0 runtime filters/rejects third-party models for client names outside its supported editor allowlist.The working local prototype used a separately patched Google executable, selected through T3's existing manual binary-path setting. In Google's bundled
google3.cloud.developer_experience.antigravity_extensions.acp_server.model_selection.supports_third_party_models, the source change was:This recognizes T3's real chat, setup and text-generation identities. It does not report another editor's identity or change the account's subscription entitlements. Both model discovery and model selection use that compatibility predicate. The experiment replaced the bundled Python module/source inside a local PyInstaller executable; the original executable was retained.
That executable/repacking machinery is not shipped by this PR. Google-managed archives, hashes, installer behavior and T3's ACP client identities remain unchanged. The attached source delta is diagnostic evidence, not an installer patch. For stock-runtime Claude availability, Google must support these client identities, or maintainers must explicitly choose another supported integration direction. I have not established Google's approval of the local runtime modification and am not claiming official support or terms approval.
Review path and existing work
antigravityUsageLimits.tsand its tests: direct quota request, credential isolation and safe parsing.AntigravityProvider.ts/tests andmanagedProvider.ts: asynchronous publication, failure retention and account lifecycle.Related work, with attribution:
agy modelsare missing #15378 reports missing Claude/GPT models; this draft does not close it, because the stock-runtime allowlist dependency remains.Scope and approval
The contributor requested one combined draft because model visibility and the separate shared allowance describe the same Antigravity account experience. There is no explicit maintainer approval for this combined direction/scope yet. The linked issues and historical Idea are not presented as approval, and draft status is not treated as an exemption from
CONTRIBUTING.md. Please confirm scope and the Google runtime direction before considering this ready; maintainers may prefer to land an existing quota proposal or request a smaller scope.Verification
Windows x64; Node 24.19.0; rebased onto upstream main
33806e73555107b8ac8fb18fd15b9dfb87ec6557.git diff --checkpassed. No repo-wide checks were run.ACP_OK,end_turn, zero tool events. The sanitized runtime evidence and executable hashes and exact source allowlist delta are attached. These checks are not evidence of stock-runtime Claude support.Focused test command:
vp test run \ apps/server/src/provider/antigravityUsageLimits.test.ts \ apps/server/src/provider/AntigravityProvider.test.ts \ apps/server/src/provider/ModelManifest.test.ts \ apps/server/src/provider/acp/AntigravityAcpSupport.test.ts \ apps/server/src/provider/Drivers/AntigravityDriver.test.ts \ packages/provider-core/src/server/managedProvider.test.ts \ packages/provider-core/src/server/ModelCatalog.test.ts \ packages/shared/src/usageLimits.test.ts \ apps/web/src/components/chat/ProviderInstanceIcon.test.ts \ apps/mobile/src/lib/modelOptions.test.tsScreenshots — working local prototype
These screenshots were supplied by the user from the working installed prototype. They are not screenshots of a clean source-branch build. The quota prototype image was refreshed on October 9, 2026 and shows the current layout after removal of the explanatory subtitle. The quota screenshots are cropped to the application area to exclude the Windows taskbar; their contents are otherwise unchanged. Percentages reflect each screenshot's capture time and differ from the separate live verification results.
Native Antigravity quota UI reference. All evidence is uploaded to the contributor fork's evidence-only prerelease, outside the source tree; it contains no application or Google executable.
Pending verification: integrated source-branch browser/native UI pass, other operating systems, enterprise/API-key/Vertex billing paths, and stock-runtime Claude execution. The repository's
test-t3-appskill requires its built-in Browser-panel tools and says to stop verification when those tools are absent; they were unavailable in this session. Personal Google subscription quotas are implemented; unsupported auth methods report that limits are unavailable. No other billing path is claimed tested.Agent: Codex (GPT-6 family), OpenAI Codex desktop harness.