Gemini CLI vs. Grok Build

Comparison between Gemini CLI and Grok Build across the Artificial Analysis Coding Agent Index, including benchmark scores, cost, execution time, and token usage.

For details relating to our methodology, see our methodology page.

Explore other comparisons
vs

Highlights

Artificial Analysis Coding Agent Index · Higher is better
Average agent wall time per task · Lower is better
Average API cost per task (USD) · Lower is better

Comparison

Side-by-side comparison of Gemini CLI and Grok Build.

Coding Agent Comparison

Metric
Gemini CLI
Gemini 3.1 Pro (high)
Grok Build
Grok 4.5
Analysis
Agent Harness
Gemini CLI
Grok Build
Representative Model
Gemini 3.1 Pro (high)
Grok 4.5
Coding Agent Index
43
76
Grok Build has a higher Coding Agent Index than Gemini CLI
DeepSWE
14%
60%
Grok Build has a higher DeepSWE score than Gemini CLI
Terminal-Bench v2
68%
85%
Grok Build has a higher Terminal-Bench v2 score than Gemini CLI
SWE-Atlas-QnA
46%
84%
Grok Build has a higher SWE-Atlas-QnA score than Gemini CLI
Cost per Task
$2.00
$2.59
Gemini CLI has a lower cost per task than Grok Build
Time per Task
10.8m
16.5m
Gemini CLI has a lower time per task than Grok Build
Turns per Task
30.7
60.9
Gemini CLI has a lower turns per task than Grok Build
Token Usage per Task
4.7M
3.6M
Grok Build has a lower token usage per task than Gemini CLI
Cache Hit Rate
87%
93%
Grok Build has a higher cache hit rate than Gemini CLI

Model Variants

Evaluated model variants for Gemini CLI and Grok Build.

Model Variants

Gemini CLI
Gemini 3.1 Pro (high)
43
14%
68%
46%
$2.00
10.8m
4.7M
Grok Build
Grok 4.5
76
60%
85%
84%
$2.59
16.5m
3.6M

Performance

Performance across the Artificial Analysis Coding Agent Index.

Artificial Analysis Coding Agent Index

Composite average pass@1 across DeepSWE, Terminal-Bench v2, and SWE-Atlas-QnA · Higher is better

The Artificial Analysis Coding Agent Index is a composite score built from DeepSWE, Terminal-Bench v2, and SWE-Atlas-QnA.

It is useful for quick comparison, but it should be read alongside the per-eval breakdowns. Two agents with similar index values can still have different strengths across repository tasks, terminal workflows, and rubric-based evaluations.

Token Usage

Token consumption across the Artificial Analysis Coding Agent Index.

Token Usage per Task

Average input, cache, and output tokens per task
Prompt cache hit rates can vary significantly by provider routing, which can materially change effective cost.

Non-cached input tokens sent to the model, including prompts, instructions, tool context, and task context that were not served from prompt cache.

Reused prompt tokens billed through provider prompt caching when that telemetry is available, rather than being processed as a fully fresh input each time.

Some providers route repeated requests across different backend replicas. When prompt cache state is not shared consistently across those replicas, a model may receive fewer cache hits even when the benchmark task flow is otherwise identical.

We do not add custom relay headers or provider-specific affinity controls to force higher cache reuse, because that would make the benchmark less representative of a typical user setup. As a result, reported costs reflect the cache behavior observed through the configured provider path, not an optimized best-case cache scenario.

Tokens returned by the model in its visible response during the task.

Artificial Analysis Coding Agent Index vs. Total Tokens

Artificial Analysis Coding Agent Index vs. average total tokens per task
Most attractive quadrant

Each point represents a coding-agent variant. Farther right means higher benchmark performance, while lower token usage appears farther left. Agents toward the upper-left use fewer tokens for a given level of performance.

Cost

Pay-per-token API cost across the Artificial Analysis Coding Agent Index, based on current per-token pricing.

Cost per Task

Average pay-per-token API cost per task (USD) · Lower is better

This chart shows the average pay-per-token API cost per task across the Artificial Analysis Coding Agent Index, spanning DeepSWE, Terminal-Bench v2, and SWE-Atlas-QnA.

Where applicable, that cost model includes standard input pricing, discounted cached-input pricing, separate cache-write charges, and output pricing rather than treating all prompt tokens as if they were billed at the same uncached input rate.

It is intended to show pay-per-token API cost, not consumer plan pricing or the full operational cost of deploying the system in production. Infrastructure, engineering, and supervision costs are not the focus of this metric.

Artificial Analysis Coding Agent Index vs. Cost per Task

Artificial Analysis Coding Agent Index vs. average pay-per-token API cost per task (USD)
Most attractive quadrant

Each point represents a coding-agent variant. Farther right means higher benchmark performance, while lower on the chart means lower average cost per task. The most efficient agents sit toward the lower-right: stronger results at lower cost.

Execution Time

Active agent runtime across the Artificial Analysis Coding Agent Index.

Time per Task

Average agent wall time per task · Lower is better

This chart uses agent wall time: how long the agent process was actively running on each task.

It does not include environment startup, verifier or judge time, or other harness overhead, so it is a cleaner comparison of how long the agent itself was working.

Artificial Analysis Coding Agent Index vs. Execution Time

Artificial Analysis Coding Agent Index vs. average agent wall time per task
Most attractive quadrant

Each point represents a coding-agent variant. Farther right means higher benchmark performance, while lower on the chart means shorter average agent runtime per task. Agents toward the lower-right deliver stronger results in less active agent time.