Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This branch has not been deployed
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.
Refs #698. Spike only: findings doc, no production code. Draft, not for merge as-is.
Adds
docs/solutions/agy-code-assist-spike.md, which records wire observations for routing the Antigravity CLI (agy1.4.0, OAuth login) through a proxy viaCLOUD_CODE_URL.Answers to the three questions in #698
CLOUD_CODE_URL=http://127.0.0.1:<port>/<prefix>works with no TLS setup. The prefix is preserved on every request (/<prefix>/v1internal:<method>), so the proxy must strip it before forwarding. If it isn't stripped, the upstream returns 404 and agy fails closed after retryingloadCodeAssist.loadCodeAssist,fetchUserInfo,fetchAdminControls,fetchAvailableModels,retrieveUserQuotaSummary,listExperiments, plus trajectory ACL/analytics calls. OnlystreamGenerateContent?alt=sseis conversation traffic.response.usageMetadatain every SSEdata:chunk. The counts are cumulative, so the last chunk is final. Fields seen:promptTokenCount,candidatesTokenCount,thoughtsTokenCount,totalTokenCount(total = prompt + candidates + thoughts).cachedContentTokenCountwas not observed, so cache handling is still unverified.Extra finding (affects the design)
agy 1.4.0 uses
daily-cloudcode-pa.googleapis.comby default, notcloudcode-pa. When the proxy forwarded tocloudcode-pa, generation calls got 429RESOURCE_EXHAUSTEDeven though discovery calls succeeded. The upstream host should therefore be overridable rather than hardcoded.Safety
agy modelscall with no override succeeded, and the OAuth token fingerprint matched the pre-spike baseline.Not yet verified
Cached-token field, subagent identification via labels,
sessionIdstability across turns, interactive mode and API-key mode.