CAPY.BENCH
GitHub

Antigravity CLI / gemini-4-hydrogen

Manual Note vs. Session Log Audit: 33m 46s Wall-Clock (34m), 7 Agent Commits (vs. 'Git commit: 6' Note Header) & 39/39 Tests in 113.0s Read field notes ↓

Outcome
7/7 slices
All 7 specification slices passed · 39/39 tests
Time Elapsed
34m
Range 14m–1h 51m (28 runs)
Estimated Cost
$3.42
USD · range $0.00–$12.90
Test suite & secondary run metricsTests, context, calls & commits

Served 94.22% of 15.41M prompt tokens from prefix cache — saving $20.70 (85.8%) vs. $24.12 uncached; concentrated peak effort in S3 (Send one bounded GET: 31% of run cost ($1.06, 30 calls)); recovered from 22 tool errors across 198 executions.

Test Suite
39/39
100% passed (113s)
Total Tokens
15.55M
94.22% cache hit · 891.7k uncached · 133.0k out
LLM & Tool Calls
144 turns
198 tool executions (22 errors)
Peak Context
204.8k peak
13,867 → 204,809 prompt tokens; 206,941 total; 19.53% out of 1.05M
Git Commits
7
Recorded in commit log below
Verification Verdict:

Finished in 113.0 seconds (31.8s async, 81.2s sync) — 39 passed (112.8s 39/39 in JSONL task-354 release check; mix format --check-formatted clean; mix credo --strict: 69 checks on 15 files, 116 mods/funs, 0 issues; default mix credo: 57 checks on 15 files, 0 issues)

Field Notes / 4 Observations

  1. Manual Note vs. Session Log Audit: 33m 46s Wall-Clock (34m), 7 Agent Commits (vs. 'Git commit: 6' Note Header) & 39/39 Tests in 113.0s(3 points)Exact Duration Match (33m 46s in Note vs. 33m 46.2s JSONL Span / 34m) · ExUnit & Credo Verification (39/39 in 113.0s, 0 Credo Issues)
    • Exact Duration Match (33m 46s in Note vs. 33m 46.2s JSONL Span / 34m) records/20261119T041015Z.events.jsonl opened at 2026-11-19T04:10:15Z (11:10:15.38 WIB) and wrote its final event at 11:44:01.54 WIB (2,026.16s = 33m 46.2s, matching the manual note's TIme 33m46s to the second; result.duration_seconds: 2023.308s = 33m 43.3s), rounding to **34m**.
    • Commit Count Discrepancy (7 Agent Commits vs. Git commit: 6 Header): Although the manual note header read Git commit: 6, the 8-line git log immediately beneath it contains pre-run be29e0c (init at 11:09:43 WIB, created 32 seconds before agy started) plus **7 agent-authored slice commits** (3e3062d S1 through 732311e S7). Per tests/audit-runs.test.ts (countNonInitCommits), commits records 7 while commitLog preserves all 8 commits.
    • ExUnit & Credo Verification (39/39 in 113.0s, 0 Credo Issues) Matches both the manual note (Finished in 113.0 seconds (31.8s async, 81.2s sync) — 39 passed) and in-session task-354.log (112.8s: 31.9s async, 80.8s sync — 39 passed). Full-suite runtime was 113s because 4 CLI integration files (paced_loop_test.exs, outcomes_test.exs, timing_test.exs, ctrl_c_test.exs — 14 tests) ran sequentially with async: false (81.2s sync). Default mix credo (57 checks in manual note) and the agent's mix credo --strict (69 checks in task-354.log) both reported 0 issues across 15 files (116 mods/funs).
  2. 7.00s/Turn Inference Speed, 6 Transient 503 Capacity Retries (Latched result.status ERROR) & 11 manage_task List Checks(2 points)Why events.jsonl Ended with result.status: "ERROR" Despite Completing All Slices · Fastest Per-Turn Inference (7.00s/Turn) & Multi-Tool Batching (1.38 Tools/Turn)
    • Why events.jsonl Ended with result.status: "ERROR" Despite Completing All Slices Upstream server capacity experienced 6 transient UNAVAILABLE (code 503): No capacity available for model gemini-4-hydrogen-high errors across 3 clusters (Step 41 at 11:13:35 WIB, Steps 124–127 attempts 1–4 at 11:18:51–11:19:25 WIB, and Step 331 at 11:39:26 WIB, adding ~66s of backoff). Antigravity CLI automatically retried and succeeded on every cluster through final Step 364, but its terminal result summary latched status: "ERROR" from the earlier error_message step. Meanwhile, 20261119T041015Z.stderr.log (60 B at 11:25:13 WIB) logged a single benign notice (root agent idle; waiting for 1 background task(s) to finish) while waiting on task-193.
    • Fastest Per-Turn Inference (7.00s/Turn) & Multi-Tool Batching (1.38 Tools/Turn) Total model inference across 144 turns was just **1,008.2s** (49.8% of wall-clock vs. 50.2% tool execution & background mix test runs)—averaging **7.00s/turn** (423 thinking tokens/turn), **48% faster per turn** than gemini-4-neon (13.43s/turn) and **62% faster** than gemini-4-argon (18.6s/turn). 50 of 144 turns (34.7%) batched 2–6 parallel tool calls (peaking at 6 file writes/edits in S7 Step 335). Across 16 backgrounded run_command tasks (WaitMsBeforeAsync: 10000), the agent issued 11 quick manage_task list checks before yielding to reactive system_message wakeups.
  3. Mint HTTP/1.1 Streaming Client + SIGUSR2/+Bi Escript Wrapper Passed All Post-Boot PTY Ctrl-C Probes (~250 ms Cold-Boot SIGUSR2 Window)(2 points)Mint Streaming Client & OTP 28 SIGUSR2 Wrapper · Holdout Foreground PTY Ctrl-C Audit
    • Mint Streaming Client & OTP 28 SIGUSR2 Wrapper Like gemini-4-neon, gemini-4-hydrogen verified ~/.hex/packages/hexpm offline availability during Preparation, added {:mint, "~> 1.11"} and {:credo, "~> 1.7"} to mix.exs, and built CapyBench.HTTP over Mint.HTTP.connect/4 + Mint.HTTP.stream/2 with strict :verify_peer, SSL_CERT_FILE / :public_key.cacerts_get/0, non-resetting 2,000 ms monotonic deadlines, and single-connection keep-alive reuse without retries. For S1/S7, it built cb.escript with emu_args: "-noinput +Bi" and wrapped it in ./cb trapping INT → kill -USR2 "$child" toward CapyBench.SignalHandler (:erl_signal_server).
    • Holdout Foreground PTY Ctrl-C Audit: Live PTY probes against ./cb passed 100% once BEAM completed startup (>= 300 ms): 550 ms while pacing (exit 130, Started: 3, HTTP responses: 3, empty stderr), 500 ms during an 800 ms slow request (exit 130 at 0.83s, Started: 1, HTTP responses: 1), 500 ms during a 3,000 ms stalled request (exit 130 at 2.00s, Started: 1, Transport failures: 1, diagnostic on stderr), and 650 ms against live https://rizafahmi.com (exit 130, Started: 1, HTTP responses: 1), matching in-session task-358.log. Because ./cb spawns "$escript" "$@" & without ( trap '' USR2; exec ... ) or a readiness file, \x03 during the first ~250 ms of cold VM boot exits 159 (User defined signal 2: 31) before CapyBench.CLI.main/1 installs SignalHandler.
  4. Fastest Gemini 4 Run on Antigravity CLI (34m vs. 44m Neon, 61m Argon & 88m Carbon) at $3.42 ($1.50/$0.075/$7.50 Rates, $20.70 Saved via Cache)(3 points)99.0% File-Tool Precision & Decomposition of All 22 Tool Errors · Unit Economics & Prefix Cache Behavior (94.22% Hit Rate, 5 Post-Init Cache Resets) · Gemini 4 Quartet on Antigravity CLI (hydrogen vs. neon, argon & carbon)
    • 99.0% File-Tool Precision & Decomposition of All 22 Tool Errors 66/66 edit_file and 17/17 read_file calls succeeded on the first try; the lone file-tool error was Step 51 (write_file on pre-existing test/test_helper.exs without Overwrite=true, fixed immediately via edit_file at Step 52). The 21 non-zero run_command exits comprised 15 deliberate red-phase TDD mix test runs (S1 Steps 47, 58; S2 Steps 81, 89, 95, 101, 107; S3 Steps 143, 154, 162; S4 Steps 205, 215; S6 Steps 289, 295; S7 Step 334), 2 mix credo --strict nesting-depth refactors (S3 Step 188, S6 Step 310), 2 S4 http_get_test.exs 5s-loop/selective-receive adjustments (Steps 222, 232), 1 S3 compile syntax fix (Step 148), and 1 disposable S3 mix run TLS check before setting MIX_ENV=test (Step 164).
    • Unit Economics & Prefix Cache Behavior (94.22% Hit Rate, 5 Post-Init Cache Resets) Priced at $1.50/1M input, $0.075/1M implicit cached input (95% off), and $7.50/1M output, the 15,548,035 tokens (891,683 uncached = $1.3375, 14,523,312 cached = $1.0892, 133,040 output incl. 60,904 thinking = $0.9978) cost **$3.42** ($3.4246 in 2026; $6.85 under 2027 2x comparison rates), saving **$20.70 (85.8%)** vs. $24.12 uncached. Five post-Step-1 turns had cache_read_tokens: 0 (Steps 23, 75, 77, 128 right after the 4x 503 retry cluster, and Step 157), adding ~293k uncached tokens (~$0.42).
    • Gemini 4 Quartet on Antigravity CLI (hydrogen vs. neon, argon & carbon) Across all four Gemini 4 High-effort runs on antigravity cli (all 7/7), gemini-4-hydrogen is the fastest at **34m** (23% faster than neon's 44m, 44% faster than argon's 61m, and 61% faster than carbon's 88m) and second lowest in billed cost at **$3.42** (within $0.05 of argon's $3.37, 7% below neon's $3.69, and 52% below carbon's $7.16).
Slice / Phase Breakdown9 phases · 144 LLM calls · $3.42 · peak in S3

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

Per-stage slice breakdown of step ranges, LLM calls, thinking tokens, and cost
Slice / PhaseStep RangeLLM Callsmanage_task PollsThinking TokensEstimated Cost
PrepPreparation: Workspace, OTP 28 & offline Hex package audit
1–24(24 steps)902,897
$0.13 (4%)
S1 PassS1: CLI help, +Bi escript wrapper & SIGUSR2 PTY signal probe (3e3062d)
25–74(50 steps)23010,742
$0.30 (9%)
S2 PassS2: CLI argument & URL validation before network requests (98e3060)
75–121(47 steps)1903,722
$0.37 (11%)
S3 PassS3: Mint HTTP/HTTPS streaming GET, TLS verify & cancellation (96e2faa)
122–200(79 steps)30015,384
$1.06 (31%)Peak
S4 PassS4: Paced 5s single-flight loop & connection reuse (b23277b)
201–264(64 steps)25315,547
$0.63 (18%)
S5 PassS5: HTTP status outcomes, transport failures & exit codes (9a56a05)
265–284(20 steps)921,431
$0.18 (5%)
S6 PassS6: Elapsed duration & completed-response p50/p95 latencies (b7a4ab5)
285–330(46 steps)1744,656
$0.39 (11%)
S7 PassS7: Foreground PTY Ctrl-C partial summaries & exit 130
331–356(26 steps)815,918
$0.25 (7%)
PostRelease verification: Built cb HTTP/HTTPS/PTY checks & S7 commit (732311e)
357–364(8 steps)41607
$0.11 (3%)
Total (9 phases)364 steps1441160,904$3.42
Tokens, Cache & Cost15.55M tokens · 94.22% cache hit · gpt-6-sol vs gpt-6.1-sol API USD

Tokens, Cache & Cost / gpt-6-sol vs gpt-6.1-sol API USD

Total Tokens
15.55M(891.7k uncached · 133.0k out)
Cache Hit Rate
94.22%(14.52M / 15.41M prompt)
Thinking Tokens
60.9k(of 133.0k output)
Peak Context
204.8k peak(13,867 → 204,809 prompt tokens; 206,941 total; 19.53% out of 1.05M)
Cache Savings
-$20.70 (85.8%)(vs $24.12 uncached)
Unit Economics
$0.49 / slice(2.22M tok/slice)
Tool Precision
88.9% ok(22 err / 198 calls · 11 polls ~$0.27)
Token volume and estimated cost breakdown comparing gpt-6-sol and gpt-6.1-sol pricing rates
ComponentTokensRate (gpt-6-sol)Cost (gpt-6-sol)Rate (gpt-6.1-sol)Cost (gpt-6.1-sol)
Uncached Input891,683$1.50 / 1M$1.3375$3.00 / 1M$2.6750
Cached Input (cache_read_tokens)14,523,312$0.075 / 1M (95% off)$1.0892$0.15 / 1M (95% off)$2.1785
Output (incl. 60,904 thinking)133,040$7.50 / 1M$0.9978$15.00 / 1M$1.9956
Total15,548,035—$3.42 ($3.4246)—$6.85 ($6.8491)
Calls & Tool Breakdown144 LLM turns · 198 tool executions · 22 errors

Calls & Tool Breakdown / Tool Loop

LLM Inference Turns
144completed agent_response steps
Tool Executions
198176 succeeded· 22 non-zero / error
  • tool/run_command
    87(44% · 66 ok, 21 err)
  • tool/edit_file
    66(33% · 66 ok)
  • tool/read_file
    17(9% · 17 ok)
  • tool/write_file
    17(9% · 16 ok, 1 err)
  • tool/manage_task
    11(6% · 11 ok)
Command & Interface UsedCLI · Single-prompt workflow

Command / Interface Used / CLI

agy --mode auto --dangerously-skip-permissions --model gemini-4-hydrogen-high --effort high --output-format stream-json --print "$(< PROMPT.md)" > records/20261119T041015Z.events.jsonl 2> records/20261119T041015Z.stderr.log

Run window: 11:10:15–11:44:01 WIB (33m 46.2s JSONL file span / 33m 43.3s result.duration_seconds = 33m 46s in manual note; includes ~66s across 6 transient 503 capacity retries) • Session 573ece49-d768-4421-aedb-993036a3cd4b (gemini-4-hydrogen-high, permission_mode: always-proceed, 144 LLM turns, 365 steps)

Git Commits8 checkpoints · Riza Fahmi

Git Commits / 8 Checkpoints

Author: Riza Fahmi · Timestamps relative to post-run capture

  1. 732311eS7S7: handle terminal Ctrl-C and print partial summary with exit 130
    -81 minutes
  2. b7a4ab5S6S6: report elapsed time and completed-response latency percentiles
    -87 minutes
  3. 9a56a05S5S5: verify outcome counts and exit codes
    -2 hours
  4. b23277bS4S4: implement paced five-second benchmark loop
    -2 hours
  5. 96e2faaS3S3: implement bounded streaming GET with TLS verification
    -2 hours
  6. 98e3060S2S2: validate CLI arguments and URLs
    -2 hours
  7. 3e3062dS1S1: launch CLI and resolve Ctrl-C entry point
    -2 hours
  8. be29e0cinit
    -2 hours