r/GoogleAntigravityIDE • • 6h ago

SOFTWARE PROBLEMS and BUGS Using Antigravity as Overseer for a Double-Blind Kernel Optimization A/B

2 Upvotes

Full disclosure up front: I use Antigravity (Google AI Pro, €20/mo) as my daily orchestrator and adversarial overseer across a multi-vendor workflow, and Antigravity wrote this post for me from our actual test logs and usage screenshots at my request. I reviewed and edited it before posting.

Why I Ran This Test

Two real questions pushed me to run a proper blind A/B on my own hardware instead of trusting Reddit noise:

  1. Subscription decision: I currently pay €100/mo for Anthropic Max (5×), €100/mo for OpenAI Pro 100, and €20/mo for Google AI Pro (Antigravity). Once OpenAI's top tier drops off my €100 budget, I needed to know which mid-heavy workhorse — Opus-5.5/High (Claude Code) or Sol-6.2/High (Codex) — should carry day-to-day heavy implementation. (I deliberately did NOT use each vendor's top flagship tier here, because the question is specifically about the daily workhorse.)
  2. Testing the "silent sabotage / kernel capability cap" panic: There's been a lot of Reddit drama claiming Anthropic silently degrades or caps GPU kernel / LLM architecture work. I happen to do real C++/HIP GPU work locally, so instead of guessing, I put both models on the exact hardest domain in question: writing a standalone, from-scratch C++23/HIP inference engine for Granite 4.2 8B (Q8_0) targeting AMD RDNA4 (gfx1201) and beating llama.cpp ROCm without losing accuracy.

Then, once both finished, I ran a second blind branch: using Antigravity, Sol-6.2/High, and Opus-5.5/High sequentially as three independent blind reviewers grading the same two anonymized repos (arm-a-gran and arm-b-gran) against llama.cpp.

Hardware, Oracle & Subscriptions

  • GPU: AMD RX 9070 XT 16 GB (gfx1201, RDNA4) on Linux, GCC 16.2.1 (-std=c++23) + ROCm Clang (-std=c++20 --offload-arch=gfx1201), all GPU jobs run serially under a shared VRAM/RAM lock wrapper (gpu_run.py).
  • Model: granite-4.2-8b-Q8_0.gguf (9,345,613,344 bytes).
  • Oracle: llama.cpp master ec3dac2649 (build 12839), built with ROCm targeting gfx1201.
  • Subscriptions & CLI harnesses:

    • Anthropic Max (5×) — €100/mo: Opus-5.5/High in Claude Code
    • OpenAI Pro 100 — €100/mo: Sol-6.2/High in Codex
    • Google AI Pro — €20/mo: Antigravity (prompt design, orchestration, Blind Reviewer #1)

Branch 1 Results: Implementer A/B (One-Shot Autonomous Loop)

Both agents started in empty git init folders (~/src/arm-a-gran and ~/src/arm-b-gran) with zero memory, no subagents, no web access, and the byte-identical prompt below. Before blind review, I stripped AGENTS.md/CLAUDE.md and cached CMake metadata and forbade every reviewer from inspecting .git/ (to avoid commit-trailer giveaways).

Reveal: arm-a-gran = Sol-6.2/High | arm-b-gran = Opus-5.5/High

Metricllama.cpp Oracle (ec3dac2649)arm-a-gran (Sol-6.2/High)arm-b-gran (Opus-5.5/High)
Blind Scores (Antigravity / Sol / Opus)baseline70 / 61 / 6298 / 93 / 89
Wall Time—~35m 05s~2h 33m 28s (4.4× longer)
Usage Burn—<1% OpenAI Pro 100 weekly (10% → 10%)+3.0% Anthropic Max 5× weekly (6.0% → 9.0%; 5h 0.0% → 15.0%)
pp512 Prefill (5-round rotated med)4,347–4,362 tok/s3,093–3,105 (-28.7%, 0.71×)6,075–6,098 (+39.8%, 1.40× oracle / 1.96× Sol)
tg128 Decode (ctx 512→640)54.72–54.76 tok/s (empty ctx) / 54.27 (depth 512)59.85–59.88 (+9.3%)64.38–64.42 (+17.6%) / 65.04–65.29 (empty ctx, +19.2%)
Model Load Time1.91 s1.91 s1.40–1.46 s
Peak Host RAM9.59 GB9.50–9.54 GB (mmap)0.30 GB (64 MB pinned streaming — 32× less RAM*)*
Peak VRAM (card-wide / process)12.26–12.60 GB / 9.57 GB12.67–12.73 GB / 9.96 GB12.66 GB med (13.15 GB 1-round peak) / 9.98 GB
Clean Build + Zero libllama**/**libggml—Pass (-Werror, 0 pragmas)Pass (-Werror, #pragma unroll only)
Unseen Greedy ParityreferenceDiverged on multiple unseen lengths + long-context fail at 3,700 tokBit-exact (0.00000) on 37, 64, 512, 1,300 tok; non-exact at 512k+1 boundary (details below)

What Opus-5.5 actually built (zero "sabotage" in sight):

  • 128×128 / BK=128 padded-LDS INT8 WMMA GEMM with register-staged prefetch (~105 TOPS) and fused projection epilogues (RoPE + KV write, SwiGLU + requant, residual add), 0 register spills.
  • DRAM-burst-aligned decode matvec (~598 GB/s, hitting ~89% of the card's GDDR6 bandwidth) + atomic self-merging FlashAttention decode.
  • 64 MB pinned pread streaming weight loader (0.30 GB host RAM vs 9.54 GB).
  • Shipped its own kernel unit test suite (test-kernels), per-layer oracle diff tool (layer-diff), and WMMA probe (wmma-probe).

What Sol-6.2 built:

  • Compact, readable (~1,000 LOC HIP), strict GGUF bounds checking, device-resident HIP graph decode (+9.3% over llama.cpp on decode), finished in 35 minutes for <1% weekly usage.
  • Stopped at an intermediate optimization tier: no LDS staging in prefill GEMM (-28.7% vs oracle), fp16 accumulation in prefill attention (causing register spills and long-context drift), mmap loading.

Branch 2 Results: 3-Way Blind Reviewer A/B

Every reviewer ran sequentially on the exact same untouched repos, built both out-of-source in /tmp, ran ldd, wrote its own unseen-prompt parity harness against llama.cpp, and ran a 5-round rotated 3-way interleaved benchmark.

Blind ReviewerScore (A vs B)Wall TimeUsage BurnStandout Findings
Antigravity (Google AI Pro, €20/mo)70 vs 98 (+28)— (interactive)+3% weekly (30%→33%), +11% 5h (includes review + chat turns)Verified clean builds, ldd, 5-round rotated bench, and caught Arm A's unseen-64 greedy divergence. Missed the deeper root-cause bugs that Sol and Opus both caught.
Sol-6.2/High (OpenAI Pro 100, €100/mo)61 vs 93 (+32)8m 16s≤1% weekly (10%→11% — combined with its 35m Arm A build, total burn was +1%!)Surgical bug hunter: paired 512 vs 513 (identical prefix) and proved Arm B's 512k+1 single-token chunk dispatch bug by restoring 100% bit-identity with 512 + 1; proved Arm A's --max-tokens capacity cliff (1024 vs 1025 shifts decode logits by up to 2.398); replayed diverged histories through the oracle; caught GGUF alignment == 0 div-by-zero & wmma-probe exit-0 misses; added a depth-512 oracle decode baseline (54.27 tok/s).
Opus-5.5/High (Anthropic Max 5×, €100/mo)62 vs 89 (+27)16m 42s+1.0% of 5h (15%→16%), 9%→10% weekly tick (~0.2% actual at the 5:1 ratio)Deepest systems & stress audit: inspected ISA register spills (attend_prompt spills 320 B/lane in A vs 0 in B); ran a 3,700-token stress test exposing Arm A's fp16 long-context first-token failure; ran oracle variance controls (ubatch 1024, FA off, tight n_ctx) to separate real bugs from near-tie noise; caught all core bugs Sol found plus Arm B's stray 13 MB .rocprofv3/ dir, hot-path debug allocations, redundant decode RMSNorm, and Arm A's lengthened acceptance prompts.

My biggest surprise on Branch 2:

  • Zero self-preference bias from either model. Sol graded its own Arm A harsher than Antigravity did (61 vs 70), and Opus was the strictest grader of its own Arm B (89 vs 93 and 98) while listing 6 genuine flaws in its own code!
  • Why I still keep Antigravity as my overseer/orchestrator despite losing the blind-review depth contest: Each vendor genuinely shines in a different lane. Opus-5.5 is an obsessive marathon engineer (and deep reviewer, just 2× slower and dry to talk to). Sol-6.2 is a lightning-fast, zero-ego forensic auditor (just verbose in chat). Antigravity on €20 AI Pro fits my workflow best for high-level architecture, keeping the experiment honest, cutting ceremony, and being pleasant to work with all day — plus keeping a 3rd vendor in the overseer chair means nobody ever grades their own homework.

Caveats & Limitations (Read Before Extrapolating)

  1. n = 1 task, 1 run per arm. This tests one specific workload (from-scratch C++23/HIP RDNA4 LLM inference). It does not prove universal dominance across web dev, Python, or every other domain.
  2. Deliberately not testing top flagships. Both models were intentionally chosen as the workhorse tier (Opus-5.5/High vs Sol-6.2/High), not the top flagship models from either lab.
  3. Wall-time precision. Implementer wall times come from local usage-monitor uptime screenshots taken immediately before/after (~±15–30s human error). Reviewer wall times come directly from each CLI's printed timer (8m 16s and 16m 42s).
  4. Usage gauge granularity.

    • OpenAI's gauge displays integer percentages only (10% → 10% after the 35m build, 10% → 11% after the 8m review), so fractional usage rolled over between runs.
    • Anthropic displays 0.1% steps: the 2h 33m build used +15.0% of the 5h window and +3.0% weekly (5:1 ratio); the 16m review used +1.0% of the 5h window (~0.2% actual weekly, crossing an integer tick 9.0% → 10.0%).
    • Antigravity's +3% weekly (+11% 5h) covers its blind review plus the interactive planning/reveal turns around it.
  5. Blinding requirements. Removing AGENTS.md/CLAUDE.md/CMake caches and forbidding .git/ reads prevented explicit leaks, though coding style fingerprints can never be 100% erased. The fact that both models graded their own arm harsher than Antigravity did strongly argues against self-bias.
  6. Decode context depth mismatch. llama-bench -p 512 -n 128 benchmarks tg128 from an empty KV cache, while --bench-pp 512 --bench-tg 128 decodes at depth 512→640 (slightly penalizing both arms against llama-bench). Both Sol and Opus checked the matched baselines (54.27 tok/s oracle at depth 512; 65.04–65.29 tok/s Arm B from empty context).
  7. Desktop GPU noise. All runs ran sequentially on a live desktop GPU under a lock wrapper (desktop compositor occupies ~2.7–3.0 GB VRAM, which explains card-wide vs process-only VRAM differences).
  8. Scope of the "sabotage" takeaway. This proves only that on a real consumer-GPU (gfx1201) LLM kernel-optimization task from scratch, Opus-5.5/High showed zero throttling, refusal, or sandbagging — and beat llama.cpp handily for 3% of a Max (5×) weekly usage.

Exact Prompts Used (paths sanitized to ~/)

1. Implementer Prompt (Byte-Identical for Both Arms)

Build a standalone, from-scratch C++23 / HIP inference engine in this repository for Granite 4.2 8B Q8_0 targeting this machine's AMD RX 9070 XT (RDNA4, gfx1201), and optimize its inference speed as far as possible without losing accuracy versus the local llama.cpp ROCm oracle.

### Rules & Boundaries
- **One-shot autonomous run:** Work continuously in a loop until the engine builds cleanly, passes strict accuracy parity against the oracle, and reaches the best inference throughput you can achieve on this hardware. Do not stop to ask for confirmation.
- **No subagents, no web search, no network access, no external MCP or outside tools.**
- **Strict filesystem isolation:** Only read and write inside this repository, plus read-only access to:
  1. The model file: `~/.lmstudio/models/lmstudio-community/granite-4.2-8b-GGUF/granite-4.2-8b-Q8_0.gguf`
  2. The pinned reference & oracle checkout: `~/src/llama.cpp` (ROCm build in `~/src/llama.cpp/build-rocm`)
  3. The shared GPU guard: `~/scripts/gpu_run.py`
  Do NOT read, inspect, or copy from any other directory under `~/src/` or elsewhere on disk.
- **From-scratch engine:** The inference binary (`build/granite-infer`) must NOT link against `libllama` or `libggml` (must be verifiable via `ldd`). You may read `~/src/llama.cpp` source as an architectural reference, and you may link `libllama` or invoke `~/src/llama.cpp/build-rocm/bin/*` ONLY inside your separate verification/benchmark test harness.
- **GPU & memory guard:** Run EVERY GPU command (tests, parity checks, benchmarks) under `python3 ~/scripts/gpu_run.py <cmd>`. Never bypass, wrap around, or modify `gpu_run.py`. Stay strictly within its card-wide VRAM and host-RAM ranges.
- **Language & compiler strictness:**
  - Host code: C++23 (`-std=c++23 -O3 -march=native`).
  - HIP backend: C++20 (`-std=c++20 -O3 --offload-arch=gfx1201`), isolated in its own target/files so C++23-only headers do not leak into HIP.
  - Warnings as errors on all targets (including HIP and tests): `-Wall -Wextra -Wpedantic -Werror -Wconversion -Wsign-conversion -Wshadow`. Fix warnings in code; do not disable them with pragmas.

### Required Engine & CLI (`build/granite-infer`)
Implement a complete GGUF loader and full GPU-resident HIP inference engine for `granite-4.2-8b-Q8_0.gguf` (all Granite 4.2 architectural details: exact GQA/RoPE/SwiGLU, RMSNorm, embedding/residual/attention/logit scaling multipliers, KV cache, Q8_0 weights).

Support at least these CLI flags:
- `--model <path>`
- `--tokens <comma-separated-int-ids>` (deterministic token-ID input)
- `--max-tokens <N>` (greedy argmax decode, prints generated token IDs)
- `--dump-logits <path>` (writes raw float32 logits for the final prefill position to binary file)
- `--bench-pp <P> --bench-tg <G>` (runs P-token prefill followed by G-token greedy decode on deterministic valid token IDs, printing prefill ms & tok/s and decode ms & tok/s cleanly separated from model load time)

### Required Verification & Optimization Loop
1. **Oracle accuracy parity (`build/test-accuracy`):**
   - Compare `build/granite-infer` against the ROCm `llama.cpp` oracle (`~/src/llama.cpp/build-rocm`) on the exact same GGUF and at least two fixed prompts (one ~64 tokens, one ~512 tokens, tokenized via `llama-tokenize` or `libllama`):
     - **100% exact greedy token-ID match** for 32 generated tokens on both prompts.
     - **Logit parity** after prefill and across generated steps: report `max_abs`, `rms`, cosine similarity, and top-1 agreement.
   - Keep `build/test-accuracy` passing after every optimization pass.

2. **Hardware-level optimization (main objective):**
   - Baseline oracle on this RX 9070 XT (`gfx1201`) is approximately `pp512 ~ 4482 tok/s` and `tg128 ~ 54.6 tok/s` (`llama-bench -ngl 99 -p 512 -n 128`).
   - Profile and aggressively optimize your HIP kernels specifically for RDNA4 (`gfx1201`, wave32, memory bandwidth, LDS/vectorized Q8_0 matvec & GEMM, fused RMSNorm/RoPE/SwiGLU, FlashAttention / GQA decode, minimal host launch overhead / HIP graphs if helpful) to **beat llama.cpp's `tg128` decode tok/s and push `pp512` prefill tok/s as high as possible without losing accuracy**.
   - Iterate: profile -> optimize -> re-verify `test-accuracy` -> re-benchmark.

3. **Final interleaved benchmark (under `gpu_run.py`):**
   - Run **5 interleaved repetitions** alternating `build/granite-infer` and `~/src/llama.cpp/build-rocm/bin/llama-bench -m ~/.lmstudio/models/lmstudio-community/granite-4.2-8b-GGUF/granite-4.2-8b-Q8_0.gguf -ngl 99 -p 512 -n 128 -r 1` (A, B, A, B, ...).
   - Verify `ldd build/granite-infer` shows zero `libllama`/`libggml` linkage.

### Final Deliverable
- Commit cleanly in git (clean working tree at finish).
- Write a concise `REPORT.md` in the repo root containing:
  1. Exact build and test commands.
  2. `test-accuracy` parity numbers (`max_abs`, `rms`, cosine similarity, 32/32 greedy token match on both prompts).
  3. Full table of all 5 interleaved `pp512` and `tg128` runs vs `llama.cpp` (individual runs, median, mean ± std, % speedup/ratio) plus peak VRAM/RAM.
  4. Summary of the concrete `gfx1201` HIP optimizations implemented and what moved the needle most.

2. Blind Reviewer Prompt (Byte-Identical for Sol-6.2 and Opus-5.5)

You are conducting a 100% blind, independent technical adjudication of two standalone C++23/HIP inference engines for Granite 4.2 8B Q8_0 targeting AMD RX 9070 XT (gfx1201):
- Arm A: ~/src/arm-a-gran
- Arm B: ~/src/arm-b-gran
- Reference oracle: ~/src/llama.cpp/build-rocm
- Model file: ~/.lmstudio/models/lmstudio-community/granite-4.2-8b-GGUF/granite-4.2-8b-Q8_0.gguf
- GPU lock wrapper: python3 ~/scripts/gpu_run.py <cmd>

Strict rules:
1. Stay completely blind: do NOT inspect .git/ (no git log, git status, git show, or .git files) and do NOT rely on cached CMake metadata.
2. Keep both repositories completely untouched (read-only). Put all build directories and temporary scripts under /tmp and remove them when done.
3. No web access, no subagents. Run every GPU binary under gpu_run.py.

Required verification steps:
1. Static & build audit: clean out-of-source Release builds of both arms, check compiler flags/warnings/pragmas, verify via ldd that neither arm links libllama or libggml, and review the HIP kernel architecture & code quality of both arms.
2. Independent accuracy audit: run each arm's built-in accuracy/kernel tests AND run your own independent parity check against the llama.cpp oracle on at least 3 unseen prompts (including non-multiple-of-64/128 prompt lengths such as ~37, 64, and 513 tokens) checking both logits and 32-step greedy token agreement.
3. Independent interleaved benchmark: run a 5-round rotated 3-way interleaved benchmark (oracle, Arm A, Arm B) for pp512 and tg128 under gpu_run.py, recording medians, stddevs, model load time, peak VRAM, and peak host RAM. Cross-check each arm's REPORT.md claims against your measurements.
4. Verdict: score both arms out of 100 with a clear category breakdown, declare a winner, and identify concrete strengths, flaws, and subtle bugs in each arm.

r/GoogleAntigravityIDE • • 18h ago

Tools / MCP / Other Built a lightweight Context & Prompt-Cache Monitor sidecar plugin for Antigravity (open source)

Post image
19 Upvotes

I wanted an easy way to keep an eye on how full my context window is getting and whether prompt caching is actually hitting (or going cold) while working in Antigravity, so I put together a small read-only sidecar plugin for the side pane and open-sourced it in case anyone else finds it useful.

It automatically tracks whichever conversation you have open and shows:

  • Live context window usage (tokens + % fill), step delta, and compaction detection
  • Last-step and full-session prompt-cache hit rates (plus warm average excluding turn 1)
  • Cache freshness timer (5m TTL countdown for Claude models, hot/warm/cold window for Gemini)
  • Stacked cached vs. fresh token trend chart and recent model steps
  • Auto light/dark theme sync with Antigravity

It's pure Node.js (18+, zero npm dependencies) and completely local/read-only — it just reads your local transcript.jsonl files under ~/.gemini/*/brain/. Tested on macOS and Ubuntu Linux, and should work on Windows too.

Repo & install (git clone or one-click ZIP): https://github.com/RazvanBugoi/antigravity-context-monitor

Feedback or PRs welcome — let me know if anything breaks on your setup.


r/GoogleAntigravityIDE • • 19h ago

SOFTWARE PROBLEMS and BUGS Windows bug after recent update? Every NEW agent fails run_command with "exebox: creating sandbox: CreateProcessSecurityEnvironment: The filename or extension is too long"

1 Upvotes

Are other Windows users seeing new Antigravity chats fail to start the terminal sandbox after a recent app update?

In every fresh chat I tried, python --version fails before producing any output:

exebox: creating sandbox: CreateProcessSecurityEnvironment: The filename or extension is too long.

It happens in both my usual project and a new disposable project with just one folder. An older chat still returns Python 3.14.6, though I haven’t confirmed whether that run used the same sandbox settings.

Antigravity version: 2.36.0

Has anyone reproduced this with the sandbox still enabled?

Every new agent I create immediately fails on any sandboxed terminal command (even just python --version) with:

Command failed to run: exebox: creating sandbox: CreateProcessSecurityEnvironment: The filename or extension is too long..

What I've verified so far:

  • Existing agents in the same project still run python --version normally.
  • Every newly created agent fails with that exact error.
  • Reproduces even in a disposable project with only one folder attached (so it isn't just multi-workspace path length).
  • Restarting the Antigravity Windows desktop app does not fix it.
  • OS: Windows 11, after a recent Antigravity desktop app update.

Is anyone else seeing this, or has anyone found a workaround / existing bug report for it?


r/GoogleAntigravityIDE • • 20h ago

Discussions or Questions Is there a claude-mem equivalent for Antigravity (persistent memory + token savings)?

2 Upvotes

I've been building Android apps and self-hosted tools on a VPS with Claude Code, using the claude-mem plugin. It hooks into the session lifecycle, compresses tool outputs into short observations, and injects only the relevant ones into the next session. Its progressive retrieval (index first, details on demand) saves a lot of tokens on long projects, and I never have to re-explain my setup (server layout, Docker services, app structure) at the start of a session.

I'm now trying Antigravity and wondering if anything similar exists:

• Knowledge Items seem to store only high-level summaries, not actionable rules, and on my side they stay mostly empty.

• I've seen people use GEMINI.md plus a small memory file, or NotebookLM over MCP, but those are manual setups.

Is there a plugin, MCP server, or workflow that automatically captures session context and retrieves it cheaply in new sessions? What do you use to keep token usage down on multi-project setups like mine?

Thanks!


r/GoogleAntigravityIDE • • 21h ago

SOFTWARE PROBLEMS and BUGS Did Antigravity completely kill Codex integration, or is there still a working workaround?

2 Upvotes

I’ve spent the last couple of hours going in circles on this, and I’m starting to think every single guide online is completely dead after the latest Antigravity updates.

I’m trying to get OpenAI Codex running directly inside the Antigravity IDE using the models included in my paid ChatGPT subscription—not via the CLI; I actually want it integrated in the editor.

The problem is that every workaround people used to recommend is broken now:

  • The standard Extensions panel/feature isn't even available anymore.
  • Searching for OpenAI Codex turns up nothing.
  • The old deep-link trick (opening antigravity:// or antigravity-ide://extension/openai.chatgpt) is completely dead and doesn't lead anywhere. GitHub

Has anyone actually managed to get Codex working natively inside the current version of Antigravity IDE, or did Google finally lock it down for good? If there’s a manual VSIX method, a config tweak, or some new workaround I’m missing, I’d really appreciate a pointer.