Antigravity CLI / gemini-4-carbon
Manual Note vs. Session Log Audit: Exact 52m 47s Wall-Clock Match (53m), 7 Agent Commits (+1 Pre-Run init) & 36/36 Async Tests in 39.3s Read field notes ↓
- Outcome
- 7/7 slices
- All 7 specification slices passed · 36/36 tests
- Time Elapsed
- 53m
- Range 14m–1h 51m (28 runs)
- Estimated Cost
- $3.35
- USD · range $0.00–$12.90
Test suite & secondary run metrics
Served 96.39% of 10.97M prompt tokens from prefix cache — saving $20.09 (85.7%) vs. $23.44 uncached; concentrated peak effort in S3 (Send one bounded GET: 23.6% of run cost ($0.79, 19 calls)); recovered from 36 tool errors across 195 executions.
- Test Suite
- 36/36
- 100% passed (39.3s)
- Total Tokens
- 11.12M
- 96.39% cache hit · 395.7k uncached · 150.1k out
- LLM & Tool Calls
- 97 turns
- 195 tool executions (36 errors)
- Peak Context
- 222.9k peak
- 13,102 → 222,906 prompt tokens; 224,821 total; 21.26% out of 1.05M
- Git Commits
- 7
- Recorded in commit log below
Finished in 39.3 seconds (39.3s async, 0.00s sync) — 36 passed (39.2s in JSONL task-300 S7 check & 39.4s in audit rerun; mix format --check-formatted clean; default mix credo: 57 checks on 19 files, 170 mods/funs, 0 issues; mix credo --strict: 69 checks on 19 files, 170 mods/funs, 0 issues)
Plan Completion / 7 of 7 Slices
+26 prep/wrap-up calls · $0.69 ↓- 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: Exact 52m 47s Wall-Clock Match (53m), 7 Agent Commits (+1 Pre-Run init) & 36/36 Async Tests in 39.3s(4 points)
- Exact Duration Match (
52m 47sin Note vs.52m 47.2sJSONL Span /53m) Although workspace folderagy-carbon4-medium_20261122174000reflects pre-runinitcommit5fcf4b0(17:40:03 WIB),records/20261122T104503Z.events.jsonlopened at2026-11-22T10:45:03.94Z(17:45:03.94 WIB) and flushed its terminalresultevent (status: "SUCCESS") at18:37:51.10 WIB(3,167.16s=52m 47.2s, matching the manual note's52m47sto the exact second;result.duration_seconds: 3164.11s=52m 44.1sfromUSER_INPUTat17:45:06 WIB), rounding to53mwith0stream stalls or API retries. - Model Slug Normalization (
gemini-4-carbon-medium→gemini-4-carbon+MediumEffort) Theinitevent in20261122T104503Z.events.jsonl(Line 1) reportedmodel: "gemini-4-carbon-medium"andpermission_mode: "always-proceed", mapping to canonical catalog keygemini-4-carbon(Gemini 4 Carbon) witheffort: "Medium". - Commit Count Verification (
7Agent Commits +1Pre-Runinit) Matches the manual note'sGit commit: 7and 7-entry slice commit list (8c5699eS1at17:55:57 WIBthrough6f110bbS7at18:37:19 WIB). Pre-run5fcf4b0(initat17:40:03 WIB,5m 00sbeforeagylaunched) already contained the migratedREADME.mdV1 CLI contract; pertests/audit-runs.test.ts(countNonInitCommits),commitsrecords7whilecommitLogpreserves all8git commits. - Test Suite & Credo Verification (
36/36Passed in39.3s,0Credo Issues) Matches the manual note (Finished in 39.3 seconds (39.3s async, 0.00s sync) — Result: 36 passed), in-sessiontask-300.log(39.2s — 36 passed), and audit rerun (39.4s — 36 passed). Both defaultmix credo(57checks in0.07sin the manual note) and the agent'smix credo --strict(69checks in0.09s) reported0 issuesacross19source files (170 mods/funs).
- Exact Duration Match (
Effort Scaling on Gemini 4 Carbon: Medium Cut LLM Turns by 51% (97 vs. 198), Tokens by 59% (11.12M vs. 26.88M) & Cost by 53% ($3.35 vs. $7.16)(3 points)
- Lowest Turn Count, Token Volume & Billed Cost Among All Gemini 4 Runs Compared directly against
gemini-4-carbon(High) on the exact sameantigravity cliharness and$2.00/$0.10/$10.00rate schedule,Mediumeffort cleared all7/7slices while cutting LLM calls by51.0%(97vs.198— fewest turns of any Gemini 4 run, belowargon131,hydrogen144, andneon151), total tokens by58.6%(11.12Mvs.26.88M), active runtime by39.8%(53mvs.88mactive /108mwall-clock), and billed cost by53.2%($3.35vs.$7.16— also edgingargon's$3.37andhydrogen's$3.42as the cheapest Gemini 47/7run). - Higher Per-Turn Action Density Instead of Shallow Reasoning (
643vs.403Thinking Tokens/Turn): Despite running atMediumeffort, the model averaged643thinking tokens per turn (62,413total across97turns vs.79,702across198turns onHigh,-21.7%total thinking) because it consolidated planning into fewer, denser turns—issuing2.01tool calls per LLM turn (195tools /97turns;63of97turns /64.9%batched2–5parallel tool calls) compared to1.17tools/turn (27multi-tool turns) onHigh. - Inference vs. Tool Wall-Clock Split: Model generation across the
97turns accounted for2,518.6s(41m 58.6s,79.6%of run duration, averaging25.97s/turn), while all195tool executions and8backgroundedrun_commandtasks completed in645.5s(10m 45.5s,20.4%).
- Lowest Turn Count, Token Volume & Billed Cost Among All Gemini 4 Runs Compared directly against
Zero-Dependency OTP
:gen_tcp/:sslClient + SIGUSR2/+BiEscript Wrapper Passed All Post-Boot PTY Ctrl-C Probes (~300 ms Cold-Boot Window)(2 points)- Upfront OTP 28 Bytecode Audit (
Preparation, Steps20–53) Likegemini-4-carbon(High), the agent decompiled OTP 28:erl_signal_handler(Step43) and:pubkey_os_cacerts(Step45) via:beam_lib.chunks/2before writingS1, confirming zero-dependency OS trust-store CA loading (:public_key.cacerts_get/0+SSL_CERT_FILEPEM override) and:erl_signal_serverSIGUSR2routing. - Suppressing
/bin/shJob Noise & Holdout PTYCtrl-CAudit DuringS7(Step283),ctrl_c_cli_test.exscaught/bin/shprintingUser defined signal 2: 31beforeCapyBench.Interrupt.install/1was wired intoCapyBench.CLI. In Steps286–289, the agent addedCapyBench.Interrupt(:gen_eventhandler on:erl_signal_server) and updated./cbwithwhile :; do wait "$child" 2>/dev/null ...plus[ "$interrupted" -eq 1 ] && [ "$status" -gt 128 ] && exit 130. Post-boot foreground PTYCtrl-Cprobes (>= 350 ms) passed 100% with exit130, emptystderr, and valid 6-line partial summaries (350 ms&550 msfast pacing,500 msslow800 msin-flight,500 msstalled3,000 msin-flight settling at2.00s, and600 mslive HTTPShttps://rizafahmi.com), while cold-boot\x03during the first~300 msarrives beforetrap ... INT(50 ms) or beforeInterrupt.install/1registers:sigusr2(150 ms, exiting130via./cb's fallback guard without a summary).
- Upfront OTP 28 Bytecode Audit (
2.01 Tools/Turn Parallel Batching (63/97 Multi-Tool Turns), Zero Background Test Polling (2 Preparation
manage_taskCalls) & 96.39% Cache Hit Rate(3 points)- Zero
manage_taskPolling on Backgrounded Test Suites Antigravity CLI backgrounded8commands exceedingWaitMsBeforeAsync(task-21,task-78,task-225,task-244,task-265,task-275,task-300, andtask-304, logging a singleroot agent idle; waiting for 1 background task(s) to finishline in20261122T104503Z.stderr.logat18:20:56 WIBduringtask-225). The only2manage_taskcalls in the entire run (listat Step27andkillat Step29) terminated a disposablePreparationescript %%! +BiSIGINTprobe (task-21) after confirming+BiignoresSIGINT; all7subsequent backgroundedtest/proberuns used pure reactivesystem_messagewakeups (0polls). - 99.1% File-Tool Precision (
108/109) & Exact Decomposition of All 36 Tool Errors All30/30write_file,13/13read_file, and2/2manage_taskcalls succeeded, with a singleedit_filetarget mismatch ontest/support/test_server.exat Step181right aftermix formatreformatted the file at Step179(resolved immediately viaread_file+edit_fileat Steps187–189). The35non-zerorun_commandexits comprised20deliberate red-phase TDDmix testruns (S1Steps63,72;S2Steps90,98,104,110,120,126;S3Steps149,159,166,173;S4Steps205,213,221;S5Steps234,238;S6Step253;S7Steps275,283),5mix credo --strictrefactoring catches (S3Steps179,184;S6Step259;S7Steps290,294),4--warnings-as-errorscompile/type checks (S2Step117;S3Steps146,153,190),4disposable PTY/PKI/release probe scripts (S1Step78,S3Step138,ReleaseSteps304,308), and2test timing/lifecycle adjustments (S3Step194,S6Step262). - Unit Economics & Prefix Cache Stability (
96.39%Hit Rate,$20.09Saved) Across97turns,gemini-4-carbon(Medium) billed395,738uncached input tokens at$2.00/1M($0.7915),10,573,625cached input tokens at$0.10/1M($1.0574), and150,097output tokens (incl.62,413thinking) at$10.00/1M($1.5010), totaling11,119,460tokens and$3.3498($3.35under 2026 rates;$6.70under 2027 rates; saving$20.09/85.7%vs.$23.44uncached). Only one post-Step-1 turn hadcache_read_tokens: 0(Step22at26,030tokens) alongside one partial prefix reset at Step58(29,264uncached +24,709cached).
- Zero
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 | Thinking Tokens | Estimated Cost |
|---|---|---|---|---|---|
PrepPreparation & OTP 28 bytecode audit: PTY signal probes, :erl_signal_handler & :pubkey_os_cacerts | 1–53(53 steps) | 18 | 2 | 9,027 | $0.39 (12%) |
S1 PassS1: CLI help, +Bi escript wrapper & SIGUSR2 PTY probe (8c5699e) | 54–85(32 steps) | 9 | 0 | 7,086 | $0.27 (8%) |
S2 PassS2: CLI argument & URL validation before network requests (48d8345) | 86–134(49 steps) | 15 | 0 | 4,267 | $0.29 (9%) |
S3 PassS3: Bounded :gen_tcp/:ssl GET, TLS verify & streaming discard (6e3cf03) | 135–202(68 steps) | 19 | 0 | 15,712 | $0.79 (24%)Peak |
S4 PassS4: Paced 5s single-flight loop & connection reuse (34ba779) | 203–231(29 steps) | 8 | 0 | 10,808 | $0.45 (13%) |
S5 PassS5: HTTP status breakdown, transport failures & exit codes (09f04fd) | 232–250(19 steps) | 6 | 0 | 2,089 | $0.20 (6%) |
S6 PassS6: Elapsed duration & completed-response p50/p95 latencies (e483004) | 251–271(21 steps) | 6 | 0 | 4,897 | $0.28 (8%) |
S7 PassS7: Foreground PTY Ctrl-C partial summaries & exit 130 | 272–302(31 steps) | 8 | 0 | 7,198 | $0.38 (11%) |
PostRelease verification: Built cb HTTP/HTTPS/PTY checks & S7 commit (6f110bb) | 303–320(18 steps) | 8 | 0 | 1,329 | $0.30 (9%) |
| Total (9 phases) | 320 steps | 97 | 2 | 62,413 | $3.35 |
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 | 395,738 | $2.00 / 1M | $0.7915 | $4.00 / 1M | $1.5830 |
| Cached Input (cache_read_tokens) | 10,573,625 | $0.10 / 1M (95% off) | $1.0574 | $0.20 / 1M (95% off) | $2.1147 |
| Output (incl. 62,413 thinking) | 150,097 | $10.00 / 1M | $1.5010 | $20.00 / 1M | $3.0019 |
| Total | 11,119,460 | — | $3.35 ($3.3498) | — | $6.70 ($6.6996) |
Calls & Tool Breakdown
Calls & Tool Breakdown / Tool Loop
- LLM Inference Turns
- 97completed agent_response steps
- Tool Executions
- 195159 succeeded· 36 non-zero / error
- tool/run_command84(43% · 49 ok, 35 err)
- tool/edit_file66(34% · 65 ok, 1 err)
- tool/write_file30(15% · 30 ok)
- tool/read_file13(7% · 13 ok)
- tool/manage_task2(1% · 2 ok)
Command & Interface Used
Command / Interface Used / CLI
agy --mode auto --dangerously-skip-permissions --model gemini-4-carbon-medium --effort medium --output-format stream-json --print "$(< PROMPT.md)" > records/20261122T104503Z.events.jsonl 2> records/20261122T104503Z.stderr.logRun window: 17:45:03–18:37:51 WIB (52m 47.2s / 3,167.2s JSONL file span = 52m 47s in manual note; 52m 44.1s / 3,164.1s result.duration_seconds; 0 stream stalls or API retries) • Session e3485d3c-5b3f-4e91-aef5-3c71011fe0a6 (gemini-4-carbon-medium, permission_mode: always-proceed, 97 LLM turns, 321 steps)
Git Commits
Git Commits / 8 Checkpoints
Author: Riza Fahmi · Timestamps relative to post-run capture
5fcf4b0init