4 December 2026

Pi vs Antigravity for trace investigations with Gemini 4 Neon

Izzy Hurley
Ornella Esterhuizen10 min
Key takeaways
Neon in Pi cost 45% less than in Antigravity
Answering 20 questions correctly cost $19.44 in Pi and $35.57 in Antigravity. Pi ran Neon with Code Mode, and Antigravity called MCP tools directly.
Pi used 70% fewer tokens while making more MCP calls on every question
Across the 20 questions, Pi used 16.64M tokens and made 1,249 MCP calls. Antigravity used 55.92M tokens and made 783 MCP calls. Pi spent less on 19 of the 20 questions.
Claude Code with Opus 5.5 remained cheaper than either Neon setup
Claude Code with Opus 5.5 cost $0.78 per correct answer, compared with $0.97 for Neon in Pi and $1.78 for Neon in Antigravity. Each setup answered all 20 questions correctly.

We evaled Gemini 4 Neon across the same 20 questions about a selection of 4,000 traces through the Braintrust MCP. We used both Pi and Antigravity, and Neon answered all 20 questions correctly in both.[1] In Pi, Neon made more tool calls on every question, but spent 45% less across the run. We looked through the traces to see where the savings came from.

While building Patterns, we started measuring cost per correct answer as our key benchmark. In our first benchmark, Opus 5.5 in Claude Code spent between $0.78 and $6.97 per correct answer across four observability MCPs. GPT-6.2 Sol in Codex spent between $0.12 and $0.21. Codex used Code Mode and Claude Code called tools directly.

For Gemini 4 Neon, we were able to keep the model fixed and dig into the differences between the two different harnesses. In Antigravity, Neon called MCP tools directly and sometimes read selected lines from large results the harness had saved to a file. In Pi, Neon wrote JavaScript that could call several tools, combine their results, and choose what to return to the model.

Methodology

We gave Neon 20 questions about 4,000 recorded conversations from simulated airline, retail, and telecom support tasks in τ²-bench. Each question ran in a fresh session with one MCP for access to the traces. Here are a few examples of the types of questions we asked:

  • The speed-test question asked how many telecom conversations had a speed test fail with “No Connection,” and how much the support agent spent across those conversations.
  • The flight-change cancellation question asked in how many airline conversations the support agent changed a reservation's flights and later canceled that same reservation.
  • The repeat-order lookup question asked how often the retail support agent successfully looked up the same order more than once in a conversation.

These questions have tricky challenges for the LLM to solve. For the speed-test question, the failure is recorded on a tool span, but the spend covers the entire conversation. To compute the total, the agent has to find the matching tool calls and add each conversation's cost once.

Scoring and cost measurement

Each agent returned a structured answer, and we used a deterministic scorer to check the answers against keys computed from the source conversations.

To calculate cost per correct answer, we added up the model spend for the 20 questions and divided it by the number of correct answers. If an agent spent money on a question and got it wrong, that spend still counted. The estimate covers model usage and excludes harness subscriptions. We priced Neon's reported usage at $3 per million uncached input tokens, $0.15 per million cached input tokens, and $15 per million output tokens.

What we tested

A setup in this eval consists of a harness, a model, and a way of calling tools. Both Neon setups ran at xhigh reasoning.

HarnessModelTool accessMCPs tested
AntigravityGemini 4 NeonDirect MCPBraintrust, LangSmith, Langfuse, Datadog
Pi 1.7.0Gemini 4 NeonCode ModeBraintrust

Antigravity ran with direct MCP access on Braintrust, LangSmith, Langfuse, and Datadog. Pi 1.7.0 ran with Code Mode on Braintrust. Braintrust was the one platform both harnesses used, so the Pi and Antigravity comparisons below use that MCP. The Codex and Claude Code numbers come from the original benchmark. They ran the same 20 questions over the same 4,000 traces, with GPT-6.2 Sol in Codex using Code Mode and Opus 5.5 in Claude Code calling tools directly.

Results

Cost per correct answer
GPT-6.2 Sol · Codex0.00 USD
Opus 5.5 · Claude Code0.00 USD
Gemini 4 Neon · Pi0.00 USD
Gemini 4 Neon · Antigravity0.00 USD

Braintrust MCP - 20 correct answers

Total tokens
GPT-6.2 Sol · Codex0.00M
Opus 5.5 · Claude Code0.00M
Gemini 4 Neon · Pi0.00M
Gemini 4 Neon · Antigravity0.00M

Braintrust MCP - 20 correct answers

Pi spent less on 19 of the 20 questions. The exception was the flight-change cancellation question, which was $2.19 in Pi and $1.50 in Antigravity. On that question, 76% of Pi's input tokens were billed as uncached, compared with 18% across the full Pi run.

MetricPi 1.7.0 with Code ModeAntigravity with direct MCP
Cost per correct answer$0.97$1.78
Estimated model spend$19.44$35.57
Correct answers20/2020/20
MCP calls1,249783
MCP response size41.69 MB8.10 MB
Total tokens16.64M55.92M
Uncached input tokens2.93M5.52M
Cached input tokens13.13M49.63M
Output tokens0.58M0.77M

Tokens fell by 70% and spend by 45% because most of the tokens Pi avoided were cache reads, which have the lowest price per token. Cache reads account for 36.50M of the 39.28M-token reduction and $5.48 of the $16.13 in savings. Uncached input fell by 2.59M tokens and accounts for $7.75, and output accounts for the remaining $2.90.

Pi's MCP calls returned about five times as much data as Antigravity's, 41.69 MB compared with 8.10 MB. In Pi those calls ran inside 256 Code Mode programs across 276 model requests. A program could return a tool response in full or use JavaScript to narrow it down before Neon read it.

Pi and Antigravity are different harnesses as well as different ways of calling tools, so the 45% cannot be attributed to Code Mode alone. Turning Code Mode on and off inside one harness would isolate its effect.

How Pi and Antigravity answered the same question

On the speed-test question, both setups found 179 conversations and $18.38 in support-agent spend. Each conversation counted once, even if the test failed several times or later succeeded.

In Antigravity, Neon sent separate SQL queries to group speed-test results by who requested the test and to inspect examples from both the support agent and the simulated customer. That distinction was important because the question asked specifically about tests the support agent ran. Neon found 299 matching failures across 179 distinct conversations. It then checked the recorded conversation costs by adding up the costs of the individual model calls. Read the Antigravity trace.

In Pi, Neon wrote 14 Code Mode programs and ran several SQL queries in parallel inside them. One query used ANY_SPAN(...) to select whole conversations containing a matching failure, then returned one row per conversation with its recorded cost and the sum of its model-call costs. JavaScript added up the rows and compared the two cost totals, and the model read each program's result. Read the Pi trace.

Speed-test questionPiAntigravity
Estimated model spend$0.92$1.45
MCP calls6432
MCP response size0.87 MB0.31 MB
Total tokens1.01M2.46M

Pi's 64 calls returned nearly three times as much data as Antigravity's 32, and Neon used less than half the tokens to process it.

Why Neon in Pi still cost more than Claude Code

With Code Mode, Neon cost $0.97 per correct answer, and Opus 5.5 in Claude Code cost $0.78 with direct MCP calls. Opus has the higher rates. The benchmark prices it at $0.20 per million cached input tokens and $20 per million output tokens. Claude Code billed almost all new input as one-hour cache writes at $8 per million tokens, where Neon's new input was billed as uncached input at $3.

MetricClaude Code with Opus 5.5Pi with Neon
Estimated model spend$15.57$19.44
Model requests341276
MCP calls3151,249
New input tokens1.05M2.93M
Cached input tokens10.83M13.13M
Output tokens0.25M0.58M
Spend on new input$8.39$8.80
Spend on cached input$2.17$1.97
Spend on output$5.01$8.67

Output tokens account for $3.66 of the $3.87 difference. Neon generated 2.3 times as many output tokens as Opus, which include the 256 programs it wrote in Pi, and a 25% lower output rate did not offset that. Neon also took in 2.8 times as many new input tokens, but at $3 per million compared with $8 the spend was nearly equal. Spend on cached input was within $0.20.

Neon in Pi made fewer model requests than Claude Code, 276 compared with 341, and about four times as many MCP calls. Neon in Pi cost less than Claude Code on 6 of the 20 questions. On the speed-test question, Claude Code spent $0.74 across 15 MCP calls and 18 model requests, and Neon in Pi spent $0.92 across 64 MCP calls and 15 model requests.

Both the model and the harness changed between Claude Code and Pi, so we can’t isolate how much each contributed to the difference in spend.

Neon in Antigravity across the four MCPs

Antigravity ran Neon with all four MCPs, which adds a third setup to the original benchmark's comparison. Pi ran only with the Braintrust MCP.

Cost and accuracy across four MCPs

20 questions per MCP

Antigravity · Gemini 4 Neon

MCP
Cost per correct answer
Correct answers
Braintrust
$1.78
20/20
LangSmith
$4.53
20/20
Langfuse
$7.61
20/20
Datadog
$12.02
19/20

Claude Code · Opus 5.5

MCP
Cost per correct answer
Correct answers
Braintrust
$0.78
20/20
LangSmith
$2.53
19/20
Langfuse
$4.32
18/20
Datadog
$6.97
18/20

Codex · GPT-6.2 Sol

MCP
Cost per correct answer
Correct answers
Braintrust
$0.12
20/20
LangSmith
$0.13
20/20
Langfuse
$0.15
20/20
Datadog
$0.21
20/20

The four MCPs ranked in the same order for all three setups, with Braintrust lowest, followed by LangSmith, Langfuse, and Datadog. With Neon in Antigravity, the other MCPs cost 2.5× to 6.8× as much per correct answer as Braintrust. Neon answered all 20 questions with the Braintrust, LangSmith, and Langfuse MCPs and 19 with Datadog's, where the repeat-order lookup question was interrupted before it returned an answer. The $36.83 spent on that attempt counts toward the Datadog total.

Conclusion and limitations

On these 20 questions, running Neon with Code Mode in Pi cut estimated model spend by 45% compared with direct MCP calls in Antigravity, with the same 20 correct answers. Neon in Pi still cost $3.87 more than Opus 5.5 in Claude Code, and $3.66 of that difference was output tokens.

We report one result per question and setup. The Antigravity totals include replacement attempts for selected Braintrust and Datadog questions. We did not repeat the full benchmark to measure run-to-run variation. Both Neon setups answered these 20 questions correctly on Braintrust. Their accuracy on other questions may differ.

The benchmark repository contains the questions, the scorer, and the Codex and Claude Code reproduction workflow. Reproducing the Neon runs also requires their runners and pinned settings.


You can compare investigation cost on your own traces and inspect the tool calls behind each answer. Sign up for free to trace your agents, or book a demo to work through your setup.

Footnotes

  1. 1.
    The Antigravity results include two replacement attempts each for Braintrust and Datadog (spend and escalation). On the Braintrust payment-retry question, the harness recorded an executor error. The submitted bill count, conversation count, and spend all matched the answer key, so we counted the answer toward the 20/20 result.
Share

Read more evals

Fable 5.2, Opus 5.5, and GPT-6.2 for coding agents
25 November 2026
Evaluating Amazon Bedrock Knowledge Bases
12 November 2026
Jev, Clef, and Liquid AI for aerial image classification
29 October 2026

Subscribe to the Department of Evals

A newsletter for unfiltered thoughts on eval methodology, analysis, and failures

Subscribe