November 26, 2026
8 min read
Benchmarks
Research

Same model, 31 points better: what a code graph does for coding agents

We ran one model and harness on 113 DeepSWE tasks with three retrieval setups. With GitNexus the verifier pass rate was 68.4%, against 37.0% with no retrieval. Here is the setup, the numbers, and what they do and do not show.

Subham Kundu
Subham KunduCo-founder, Akon Labs
Same model, 31 points better: what a code graph does for coding agents

What we measured

Before a coding agent can fix a bug, it has to find the code involved. On a large repository that means listing directories, grepping, and opening files until the relevant call path is in context.

We wanted to know whether giving the agent a code graph changes the outcome, so we measured two things per attempt: whether the verifier passed, and what the attempt cost.

Setup

The task set is DeepSWE. Our manifest has 116 entries drawn from 89 open source projects in Python, Go, TypeScript and Rust. Each entry is a real bug or feature request from that project's history, with tests that check the fix.

We ran 113 of those entries in all three configurations:

  • GitNexus. The agent can call the GitNexus MCP tools over a graph of symbols, calls, imports, clusters and execution flows.
  • Graphify. The agent can query Graphify's code extraction.
  • Bare model. No retrieval layer. The agent navigates by reading files.

The model (openai/gpt-5.6-terra, medium reasoning) and the harness were the same in every configuration. What changed was the retrieval tooling available to the agent.

DeepSWE · trial flow
116manifest entries · 89 projects
113tasks run · 3 not run
GitNexus1,157 graded → 791 passed
Graphify1,157 graded → 625 passed
Bare model1,157 graded → 428 passed
116 manifest entries, 113 tasks run in all three arms. Each arm has 1,157 graded attempts, about 10.2 per task, so counts vary slightly by task. Every graded attempt is in the denominator.

Each configuration has 1,157 graded attempts, 3,471 in total. That is about 10.2 per task, so attempt counts vary slightly from task to task; the target was 10. Every graded attempt counts toward the pass rate, including failures.

An attempt passes when the task's verifier passes: the target tests that failed before the change now pass, and the tests that passed before still pass.

Results

DeepSWE · pass rate, 95% CI
GitNexus
68.4%
Graphify
54.0%
Bare model
37.0%
0%25%50%75%100%
Share of graded attempts where the verifier passed. Bars show the 95% confidence interval on the pooled attempts, which treats repeated attempts on the same task as independent, so the true uncertainty is somewhat wider.
Per attemptGitNexusGraphifyBare model
Pass rate68.4% (791 / 1,157)54.0% (625 / 1,157)37.0% (428 / 1,157)
Model cost$0.601$0.636$0.663
Input tokens1.01M1.12M1.20M
Output tokens21,07721,76922,252
Agent steps44.948.050.2

GitNexus attempts passed 31.4 points more often than bare-model attempts, and 14.3 points more often than Graphify attempts. The Graphify configuration was also 17.0 points ahead of the bare model.

The GitNexus attempts also did less work. Compared with the bare model they used 15.8% fewer input tokens, 5.3% fewer output tokens and 10.6% fewer steps, and the average model cost per attempt was 9.4% lower.

Cost per passing attempt

If you divide total recorded model spend by the number of passing attempts, you get $0.88 for GitNexus, $1.18 for Graphify and $1.79 for the bare model. This number includes the spend on failed attempts. It covers model usage only, not indexing time or infrastructure.

Where the gains landed

DeepSWE · pass rate by difficulty band
GitNexusGraphifyBare model
Easy17 tasks
95%
79%
81%
bare model solves over 66%
Moderate38 tasks
77%
67%
50%
bare model solves 33 to 66%
Hard58 tasks
56%
39%
16%
bare model solves under 33%
Bands are defined by how often the bare model solved each task in this same run, so the hard band is partly selected for low bare-model scores. Read it as a description of where the gains landed, not as an independent difficulty measure.

We grouped tasks by how often the bare model solved them: easy (over 66%), moderate (33 to 66%) and hard (under 33%). GitNexus led the bare model by 13.9 points on easy tasks, 27.4 on moderate and 40.0 on hard.

Be careful with this split. Because the bands come from the bare model's own results in the same run, the hard band is partly selected for tasks where the bare model happened to do badly, and those have the most room to improve. A cleaner test would define difficulty independently, for example by how many modules the reference patch touches. We have not done that yet.

Per-task results

Pooled pass rates can be driven by a handful of tasks, so we also compared configurations task by task. A configuration wins a task when its pass rate on that task is higher, and ties when the rates are equal.

Comparison (113 tasks)WinsTiesLosses
GitNexus vs bare model9887
GitNexus vs Graphify781916
Graphify vs bare model811715

For the pooled pass rates, a two-proportion z-test gives z = 15.1 for GitNexus against the bare model (p ≈ 1e-51) and z = 7.1 against Graphify (p ≈ 1e-12). That test treats every attempt as independent, which repeated attempts on the same task are not, so these p-values overstate the precision. A paired per-task analysis is the right next step. With 98 of 113 tasks going one way, we do not expect it to change the direction.

Why we think it works

DeepSWE · work per attempt
Input tokens per attempt
GitNexus1.01M
Graphify1.12M
Bare1.20M
Agent steps per attempt
GitNexus44.9
Graphify48.0
Bare50.2
Average input tokens and agent steps per graded attempt. Each panel has its own scale starting at zero. Input tokens are the closest proxy we have for how much code the agent read.

Our hypothesis is about navigation. Without a graph, the agent rebuilds the structure of the repository from text, one file at a time. Questions like "who calls this function" or "what depends on this type" each take several searches and file reads, and some of them land in the wrong place.

GitNexus resolves those relationships at index time. The agent can ask for a symbol's callers, the files on an execution path, or the blast radius of a change in one tool call.

The aggregate numbers are consistent with that: fewer input tokens, which is mostly code read into context, and fewer steps per attempt. They do not prove the mechanism. Showing it directly takes trajectory-level analysis: which files each configuration opened before its first edit, and where the losing attempts went wrong. That analysis, including the seven tasks where the bare model did better, is not in this post.

Limitations

  • One model. All results use one model at one reasoning setting. The gap may be different for other models.
  • Configurations, not components. We compared tool setups as shipped. We did not run an ablation that isolates resolved call edges from the rest of the GitNexus tool surface.
  • Our benchmark. We build GitNexus and ran this benchmark. The benchmarks page has the full numbers and confidence intervals.

Try it on your own code

GitNexus runs locally. Index a repository and connect it to your agent:

npx gitnexus analyze
npx gitnexus setup

To see it on your team's codebase across multiple repositories, book a 30 minute walkthrough.