Antigravity CLI / gemini-4-carbon
Manual Note vs. Session Log Audit: 54m 02s Active Transcript Duration (vs. 52m 47s Note Template), 8 Agent Commits (+1 Pre-Run init) & 29/29 Tests Read field notes ↓
- Outcome
- 7/7 slices
- All 7 specification slices passed · 29/29 tests
- Time Elapsed
- 54m
- Range 14m–1h 51m (28 runs)
- Estimated Cost
- $2.97
- USD · range $0.00–$12.90
Test suite & secondary run metrics
Served 96.43% of 13.12M prompt tokens from prefix cache — saving $24.05 (89%) vs. $27.02 uncached; concentrated peak effort in S3 (Send one bounded GET: 24.9% of run cost ($0.74, 27 calls)); recovered from 37 tool errors across 213 executions.
- Test Suite
- 29/29
- 100% passed (60.5s)
- Total Tokens
- 13.20M
- 96.43% cache hit · 468.3k uncached · 77.2k out
- LLM & Tool Calls
- 122 turns
- 213 tool executions (37 errors)
- Peak Context
- 198.6k peak
- 13,106 → 198,605 prompt tokens; 200,073 total; 18.94% out of 1.05M
- Git Commits
- 8
- Recorded in commit log below
Finished in 60.5 seconds (1.4s async, 59.0s sync) — 29 passed (60.4s in JSONL task-352 release verification; mix format --check-formatted clean; default mix credo: 57 checks on 11 files, 92 mods/funs, 0 issues in 0.07s; mix credo --strict: 69 checks on 11 files, 92 mods/funs, 0 issues in 0.07s)
Plan Completion / 7 of 7 Slices
+34 prep/wrap-up calls · $0.84 ↓- S1: PassedLaunch the CLI
- S2: PassedValidate arguments
- S3: Passed (Peak effort bottleneck)Send one bounded GET
- S4: PassedRun a paced five-second loop
- S5: PassedReport outcomes and exit codes
- S6: PassedReport timing
- S7: PassedHandle Ctrl-C
Field Notes / 4 Observations
Manual Note vs. Session Log Audit: 54m 02s Active Transcript Duration (vs. 52m 47s Note Template), 8 Agent Commits (+1 Pre-Run init) & 29/29 Tests(4 points)
- Wall-Clock Discrepancy (
54mActual Session Span vs.52m 47sin Manual Note) The manual note'sTIme 52m47swas carried over from the precedinggemini-4-carbon(Medium) note (52m 47.2s). Inagy-carbon4-low_20261122212000,records/20261122T141811Z.events.jsonlopened at2026-11-22T14:18:11.484Z(21:18:11.48 WIB,16.5safter pre-runinitcommitf0e3bb0at21:17:55 WIB; folder timestamp rounded to21:20:00) and flushed its terminalresultevent (status: "SUCCESS") at22:12:18.81 WIB(3,247.33s=54m 07.3sfile span;result.duration_seconds: 3242.34248s=54m 02.3sactive execution), rounding to54mwith0stream stalls or API retries. - Model Slug Normalization (
gemini-4-carbon-low→gemini-4-carbon+LowEffort) Theinitevent in20261122T141811Z.events.jsonl(Line 1) reportedmodel: "gemini-4-carbon-low"andpermission_mode: "always-proceed", mapping to canonical catalog keygemini-4-carbon(Gemini 4 Carbon) witheffort: "Low". - Commit Count Verification (
8Agent Commits +1Pre-Runinit=9Total Commits) Matches the manual note'sGit commit: 8and 9-entrygit logverbatim. Becausef0e3bb0(initat21:17:55 WIB) was committed16.5sbeforeagylaunched,commitsrecords the8agent-authored commits (8924a0bS1at21:27:04 WIBthrough3a2f478S7at22:04:17 WIB, plusb9a133aHarden foreground Ctrl-C handshake during early VM startupat22:11:55 WIB) whilecommitLogpreserves all9git commits. - Test Suite & Credo Verification (
29/29Passed in60.5s,0Credo Issues) Matches the manual note (Finished in 60.5 seconds (1.4s async, 59.0s sync) — Result: 29 passedand defaultmix credo:57 checks on 11 files, 92 mods/funs, found no issuesin0.07s) and in-sessiontask-352(60.4s — 29 passed;mix credo --strict:69 checks on 11 files, 92 mods/funs, 0 issues). Intest/capy_bench/cli_test.exs:410,if idx >= 40, do: Process.sleep(450)delays every request from index40onward soElapsedlands around5.29s–5.32sdepending on whether Request42starts just before5,000 ms, which can occasionally shave10 msoff the test's strictassert elapsed_s >= 5.30threshold under heavy host load even though the CLI contract (Elapsed > 5.00 s) holds.
- Wall-Clock Discrepancy (
Three-Point Effort Scaling on Gemini 4 Carbon (Low vs. Medium vs. High): Zero Thinking Tokens & Lowest Cost of Any Gemini 4 Run ($2.97 vs. $3.35 Medium & $7.16 High)(3 points)
- Cheapest Gemini 4 Run on the Leaderboard (
$2.97vs.$3.35Medium &$7.16High) Across the fullAntigravity CLI / gemini-4-carboneffort sweep on the same$2.00/$0.10/$10.00rate schedule,Loweffort cleared all7/7slices for$2.97($2.9742exact) — cutting billed cost by11.3%vs.Medium($3.35) and58.5%vs.High($7.16), and finishing as the only Gemini 4 run under$3.00(ahead ofgemini-4-argon$3.37,gemini-4-hydrogen$3.42, andgemini-4-neon$3.69). - Zero Thinking Tokens &
-48.6%Output Volume vs. +25.8% More Turns Than Medium (U-ShapedTurn Count Across Effort Levels): Running with--effort lowdisabled reasoning token generation completely (0thinking tokens across all122turns vs.62,413onMediumand79,702onHigh), cutting total output tokens by48.6%vs.Medium(77,198vs.150,097, saving$0.7290in output cost at$10.00/1M) and57.0%vs.High(179,637). Without per-turn reasoning,Lowtook25more LLM turns thanMedium(122vs.97,+25.8%, mostly duringS3Mint setup andRelease verificationstartup-race diagnosis) while still using38.4%fewer turns thanHigh(122vs.198) and matchingMedium's wall-clock time within one minute (54mvs.53m). - Architectural Shift (
Mint.HTTPon Low vs. Raw:gen_tcp/:sslon Medium & High) Whereasgemini-4-carbononMediumandHighwrote zero-dependency raw:gen_tcp/:sslHTTP clients,Lowinspected the local Hex cache (~/.hex/packages/hexpmat Steps41–43) and selectedMint.HTTP(mint 1.7.1+hpax 1.0.3+castore 1.0.18) paired with OTP 28:public_key.cacerts_get/0(CB_TEST_CACERTFILEPEM override in tests) and aspawn_monitorconnect worker (CapyBench.HTTPClient.open_and_transfer/5) to enforce strict per-request total deadlines across TCP/TLS handshakes (584production LoC across5files inlib/capy_bench/and1,521test LoC across6files intest/).
- Cheapest Gemini 4 Run on the Leaderboard (
Bidirectional POSIX Signal Handshake (
CB_LAUNCHER_PIDSIGUSR2/SIGUSR1 in b9a133a) Eliminated the 50 ms–250 ms BEAM Cold-Boot Ctrl-C Race(3 points)- Catching the Cold-Boot
Ctrl-CRace During Release Verification (Steps329–371) After committingS7(3a2f478) at Step316, the agent ran an end-to-end Python PTY release-verification script (Step329,task-328) that sent\x03immediately after spawning./cb. When\x03arrived during the first50 ms–250 msof BEAM startup—beforecb.escriptfinished loading and calledCapyBench.SignalHandler.install/1(:os.set_signal(:sigusr1, :handle))—the wrapper'skill -USR1 "$child"fired before:erl_signal_serverwas listening, leaving./cbrunning for the full5.0swindow and timing out Python's3.0swait. - Iterating from
CB_READY_FILEto Zero-FileCB_LAUNCHER_PIDSIGUSR2/SIGUSR1Handshake (b9a133a): The agent first tested a temporaryCB_READY_FILEpolling wrapper (Steps333–353), which still timed out at0.05s–0.25sintask-352(Step353) when\x03arrived beforeCB_READY_FILEwas written. In Steps370–376, it replaced file polling with an in-memory bidirectional POSIX signal handshake between./cbandCapyBench.SignalHandler:./cbinitializesready=0andinterrupted=0, trapsINT TERM(interrupted=1; if [ "$ready" -eq 1 ] && [ -n "$child" ]; then kill -USR1 "$child" 2>/dev/null; fi), trapsUSR2(ready=1; if [ "$interrupted" -eq 1 ] && [ -n "$child" ]; then kill -USR1 "$child" 2>/dev/null; fi), and launchesCB_LAUNCHER_PID=$$ escript "$dir/cb.escript" "$@" </dev/null &. OnceSignalHandler.install/1attaches to:erl_signal_server, it executesSystem.cmd("kill", ["-USR2", pid_str]), immediately flushing any buffered boot-windowCtrl-CasSIGUSR1. - 6/6 Live Holdout PTY
Ctrl-CVerification (50 msCold-Boot Through Live HTTPS) Both the agent's Step374sweep (0.05s,0.20s,0.45s) and independent holdout foreground PTYCtrl-Cprobes at50 ms(dt=0.27s,Started: 0,Elapsed: 0.00 s),150 ms(dt=0.27s,Started: 0),350 msfast pacing (dt=0.36s,Started: 1,200: 1),500 msagainst a slow800 msresponse (dt=1.11s,Elapsed: 0.84 s,200: 1),500 msagainst a stalled3,000 msbody (dt=2.27s,Elapsed: 2.00 s,Transport failures: 1), and600 msagainst live HTTPShttps://rizafahmi.com(dt=1.42s,200: 1,p50 1102 ms) exited130with emptystderrand a single 6-line partial summary.
- Catching the Cold-Boot
99.1% File-Tool Precision (110/111), 20 Deliberate Red-Phase TDD Runs, Hybrid schedule/
manage_taskWaiting & 96.43% Cache Hit Rate(3 points)- Hybrid Reactive Waiting (
schedulewithTimerCondition: "any"+manage_taskacross10Backgrounded Commands) Antigravity CLI backgrounded10long-runningtest/verificationcommands (Steps 206, 237, 252, 256, 278, 284, 289, 316, 329, 353, logging a singleroot agent idle; waiting for 1 background task(s) to finishline in20261122T141811Z.stderr.logat21:50:19 WIBduringS4task-236). OnS3–S5, the agent waited purely for reactivesystem_messagewakeups (0polls); onS6,S7, andRelease verification, it combined6scheduletimers (TimerCondition: "any",3cancelled early by task completion messages,2auto-cancelled because messages were already queued, and1rejected at Step360due to an already-activeanytimer from Step355) with7manage_taskstatus checks. - 99.1% File-Tool Precision (
110/111) & Exact Decomposition of All 37 Tool Errors All19/19read_file,14/14write_file, and7/7manage_taskcalls succeeded, with a singleedit_filetarget mismatch at Step183ontest/support/test_servers.ex(fixed afterread_fileat Step186) and the single duplicatescheduletimer error at Step360. The35non-zerorun_commandexits comprised20deliberate red-phase TDD and iterativemix testruns (S1Steps47,55,61;S2Steps77,85,92,99,105,116;S3Steps171,175,194;S4Steps211,221,228;S5Step244;S6Steps262,268,284;S7Step299),4mix credo --strictcatches (S2Step120cyclomatic complexity,S3Step201nesting depth,S4Step232&S7Step308>120-col test lines),1duplicate test-name compile catch (S3Step166),4disposable OTP/Hex doc probes (PreparationSteps21,36;S3Steps125,141), and6early-startupCtrl-Cdiagnostic probes duringRelease verification(Steps 329, 335, 338, 341, 345, 353). - Unit Economics, Multi-Tool Batching & Prefix Cache Stability (
96.43%Hit Rate,$24.05Saved): Across122turns (1.75tools/turn, with60/122turns /49.2%batching2–6parallel tool calls;2,513.1s/77.5%model inference at20.60s/turnvs.729.3s/22.5%tool & background test execution),gemini-4-carbon(Low) billed468,299uncached input tokens at$2.00/1M($0.9366),12,656,306cached input tokens at$0.10/1M($1.2656), and77,198output tokens (0thinking) at$10.00/1M($0.7720), totaling13,201,803tokens and$2.9742($2.97under 2026 rates;$5.95under 2027 rates; saving$24.05/89.0%vs.$27.02uncached). Only two post-Step-1 turns experiencedcache_read_tokens: 0prefix resets: Step22(21,658tokens) and Step150(87,230tokens).
- Hybrid Reactive Waiting (
Slice / Phase Breakdown
Slice / Phase Breakdown / 9 Phases
Step Range spans transcript events (LLM + tool + system turns) · LLM Calls count completed model inference turns · manage_task Polls count background status checks
| Slice / Phase | Step Range | LLM Calls | manage_task Polls | Estimated Cost |
|---|---|---|---|---|
PrepPreparation & OTP 28 signal/Hex audit: :erl_signal_server, escript & offline Mint/Credo packages | 1–44(44 steps) | 15 | 0 | $0.25 (8%) |
S1 PassS1: CLI help, POSIX launcher wrapper & :erl_signal_server SIGUSR1 handler (8924a0b) | 45–74(30 steps) | 9 | 0 | $0.13 (4%) |
S2 PassS2: CLI argument & URL validation before network access (bfbfa74) | 75–123(49 steps) | 15 | 0 | $0.23 (8%) |
S3 PassS3: Bounded Mint.HTTP GET, TLS verification & stream cancellation (4c95ec8) | 124–208(85 steps) | 27 | 0 | $0.74 (25%)Peak |
S4 PassS4: Paced 5s single-flight loop & connection reuse (3a51fd9) | 209–240(32 steps) | 10 | 0 | $0.28 (9%) |
S5 PassS5: HTTP status counts, transport failures & exit codes (9e625e3) | 241–259(19 steps) | 6 | 0 | $0.15 (5%) |
S6 PassS6: Elapsed duration & completed-response p50/p95 latency (4a2ccfc) | 260–296(37 steps) | 12 | 2 | $0.33 (11%) |
S7 PassS7: Foreground PTY Ctrl-C partial summary & exit 130 (3a2f478) | 297–325(29 steps) | 9 | 1 | $0.27 (9%) |
PostRelease verification & early-VM startup Ctrl-C handshake hardening (b9a133a) | 326–378(53 steps) | 19 | 4 | $0.59 (20%) |
| Total (9 phases) | 378 steps | 122 | 7 | $2.97 |
Tokens, Cache & Cost
Tokens, Cache & Cost / gpt-6-sol vs gpt-6.1-sol API USD
| Component | Tokens | Rate (gpt-6-sol) | Cost (gpt-6-sol) | Rate (gpt-6.1-sol) | Cost (gpt-6.1-sol) |
|---|---|---|---|---|---|
| Uncached Input | 468,299 | $2.00 / 1M | $0.9366 | $4.00 / 1M | $1.8732 |
| Cached Input (cache_read_tokens) | 12,656,306 | $0.10 / 1M (95% off) | $1.2656 | $0.20 / 1M (95% off) | $2.5313 |
| Output (0 thinking) | 77,198 | $10.00 / 1M | $0.7720 | $20.00 / 1M | $1.5440 |
| Total | 13,201,803 | — | $2.97 ($2.9742) | — | $5.95 ($5.9484) |
Calls & Tool Breakdown
Calls & Tool Breakdown / Tool Loop
- LLM Inference Turns
- 122completed agent_response steps
- Tool Executions
- 213176 succeeded· 37 non-zero / error
- tool/run_command90(42% · 55 ok, 35 err)
- tool/edit_file77(36% · 76 ok, 1 err)
- tool/read_file19(9% · 19 ok)
- tool/write_file14(7% · 14 ok)
- tool/manage_task7(3% · 7 ok)
- tool/schedule6(3% · 5 ok, 1 err)
Command & Interface Used
Command / Interface Used / CLI
agy --mode auto --dangerously-skip-permissions --model gemini-4-carbon-low --effort low --output-format stream-json --print "$(< PROMPT.md)" > records/20261122T141811Z.events.jsonl 2> records/20261122T141811Z.stderr.logRun window: 21:18:11–22:12:18 WIB (54m 07.3s / 3,247.3s JSONL file span; 54m 02.3s / 3,242.3s result.duration_seconds vs. 52m 47s carried over in manual note; 0 stream stalls or API retries) • Session a1072f43-298b-484d-8c00-4a8d2e8ee9c2 (gemini-4-carbon-low, permission_mode: always-proceed, 122 LLM turns, 378 steps)
Git Commits
Git Commits / 9 Checkpoints
Author: Riza Fahmi · Timestamps relative to post-run capture
f0e3bb0init