feat: introduce dedicated Antigravity CLI (agy) path setting with multi-architecture eligibility patcher#3252
Open
yhan-sun wants to merge 2 commits into
Open
feat: introduce dedicated Antigravity CLI (agy) path setting with multi-architecture eligibility patcher#3252yhan-sun wants to merge 2 commits into
yhan-sun wants to merge 2 commits into
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.
💡 Background
In newer versions of the Google Antigravity CLI binary client (
agy/antigravity.exe1.1.2 and above), a local Eligibility Check is enforced. If the user's Google account is not configured as eligible on the server, the client intercepts inputs in the interactive terminal (TUI) and prompts:Your current account is not eligible for Antigravity...This prevents unauthorized accounts from starting local conversations. This Pull Request implements an instruction-level pattern matching patcher that dynamically bypasses this local gate without modifying network configurations.
🛠️ Key Changes
Dedicated CLI Path Settings:
antigravity_cli_executableconfiguration field to the backend configuration schema (AppConfig) and TypeScript types (types/config.ts).agybinary.Rust Backend (
src-tauri):patch_agy_binary(patch.rs).userInputLoopinstruction pattern (ldrb,tbnz,ldr, andcbz) and overwrites the conditional branchcbztob(unconditional jump to the send path) to bypass the gate. Also handles macOS ad-hoc code re-signing.cmpb $0x0, (%r12),jne label,leaq rip_off, %rax,mov $0x18, %ebx. Dynamically replaces the conditional jump instructionjnewith NOP (6 bytes of0x90) to bypass the gate..bak.get_antigravity_cli_pathfor detecting standard installer locations (~/.local/bin/agyor environmentPATH).React Frontend UI (
src):🧪 Tested & Verified
Eligibility Check failedwindow and restored fully working AI interactions in the terminal for standard Google accounts.