We have filed a bug report on the official repository and published an archive that documents where Google Antigravity’s published specifications and terms differ from the shipped client (Desktop v2.29.0, CLI v1.5.1, as of Nov 5, 2026).
- GitHub issue: [Bug]: Auto-compaction is clamped to 256,000 tokens (0x3E800) on models advertised and displayed with a 1,048,576-token window (v1.5.1) · Issue #1432 · google-antigravity/antigravity-cli · GitHub
- Evidence archive: GitHub - magiccodelab/antigravity-256k-context-discrepancy: Evidence archive: Google Antigravity advertises a 1M-token context window but hardcodes auto-compaction at 256K (0x3E800), plus the agy -p headless policy reversal. · GitHub
Additional copies (copy-paste; new accounts are limited to 2 links per post):
https://github.com/magiccodelab/antigravity-256k-context-discrepancy/blob/main/antigravity-256k-report.md
1. 1,048,576 tokens advertised, 256,000 enforced
Gemini 4 Argon is registered in the client with a 0x100000 (1,048,576) token window, and the documentation and the /context view present it as a ~1M window. In the official binaries, cortex/utils/utils.GetCheckpointConfig contains:
cmp $0x3e800,%edx; mov $0x3e800,%esi; cmovb %edx,%esi
This caps the auto-compaction threshold at min(calculated, 256,000) tokens, about 25% of the advertised window, for every model. The sequence occurs once in .text at file offset 0x7fb0fe2 in CLI 1.5.1, 0x7fe5802 in CLI 1.5.0, and 0x176cca2 in Desktop 2.29.0 language_server.exe. All binaries were downloaded from storage.googleapis.com, and their hashes are listed in the issue.
2. Session data matches the binary
- 15,575 model calls recorded across 209 local CLI 1M-Gemini sessions all carry
max_context_tokens = 256000, and no single-attempt call exceeded 300K tokens. - An independent audit in #878 (310 sessions, 65,613 calls) measured a maximum single-call input of 255,999 tokens and no calls above 300K.
- Each compaction stalls the session for a median of 70 seconds, does not record the summary call’s token usage in
gen_metadata, and discards the 240K+ implicit prompt cache.
3. Current official position
In #198191 (Nov 4), Google staff stated that the ~250K threshold “is a fixed default and isn’t user-configurable yet” and handled the report as a feature request. We consider this a specification issue. The product advertises and displays 1,048,576 tokens, while the binary enforces 256,000 without disclosure.
The binary also contains 512K (about 1.3x quota per turn) and 900K (1.8x, Expensive: true) context options. They are gated behind a whitelist with a single entry, “Gemini 4 Argon”.
4. Quota
A community A/B test in #196351, run within the same quota bucket, measured Gemini 4 Argon drawing subscription quota at about 3x the rate of Gemini 3.8 Flash per dollar of published API price. Gemini web pure-input tests measured 7.64x–9.25x. In that thread, Google staff replied that published API prices are promotional pay-as-you-go rates and that internal subscription quota multipliers are not published.
5. agy -p policy
- Between Sep 16 and Oct 8, the forum received 10 written confirmations that running the unmodified
agy -pbinary as a local subprocess from tools such as Codex or Claude Code complied with Section 6 of the Additional Terms: #175905, #183429, #185494, #185460, #185992, #185949, #186954, #186952, #186246, #187536. - On Oct 8, 71 minutes after the last of these, a reply in #187241 reversed that position and warned of automated account suspension.
- In #191689 (post #8), Google staff confirmed that the Terms of Service had not been modified after September, and that only the FAQ had been updated in mid-October.
The support engineers who answered those threads applied Section 6 as written and as the --output-format json / stream-json interface suggests. We do not hold them responsible for the later change. The questions below are for the teams that own product limits, quota, and policy.
What we are asking for
- Remove the 256,000 clamp so that 1M models compact near their computed threshold. If 256K is an intended product limit, state it in the documentation and model listings, and show the real threshold in
/context. - Publish the per-model subscription quota multipliers.
- State whether the Additional Terms or the FAQ governs
agy -psubprocess use. If the policy has changed, amend the Terms and notify subscribers.
All download URLs, SHA-256/SHA-512 hashes, disassembly listings, and forum snapshots are in the archive for independent verification.
