Docs / Evaluation13 min readEdit on GitHub

Results: full_v1#

full_v1 is the first full run of the eval harness: ten arms answered 180 questions over three pinned repositories, 1,800 answers in all with no generation errors, for about $10.86. The deep agent found the most of the right files and gave the most correct answers, at roughly four times the cost of the best single-shot arm; the structural channels and co-change did not measurably beat plain hybrid retrieval; and the router saved money but lost too much recall. A second judge from another model family re-graded a sample of 30 answers: it agreed strongly with the main judge on correctness (weighted kappa 0.87) but not on faithfulness, so read the faithfulness column as a comparison between arms rather than an absolute level. File recall, precision, cost and speed do not depend on the judge.

Terms used on this page#

  • File recall: the share of the required files an answer names in its closing Files: list, from 0 to 1. The primary metric.
  • Recall@10: the share of required files among the first ten distinct files of an arm's retrieval ranking, before the answer is written.
  • Change question / explain question: "which files does this pull request's change touch?" versus "how does this existing code work?". See the gold set.
  • Resolved: a paired difference whose 95% interval excludes zero. Anything else is "not resolved at this sample size".

Every number on this page comes from two generated reports in server/evals/out/ (gitignored): the simple report over all 180 questions, and the full report over the 105 change questions. To rebuild them:

cd server
uv run python -m evals report --run full_v1 --mode simple --judge-slug anthropic-claude-haiku-5.5-batch--openrouter.ai--73b2ec
uv run python -m evals report --run full_v1 --mode full   --judge-slug anthropic-claude-haiku-5.5-batch--openrouter.ai--73b2ec

Setup#

ItemValue
Repositorieslangroid (early AI, Python), pvlib (before AI, Python), rakazo (latest AI, TypeScript), each at its base commit
Questions180: 105 change questions mined from merged PRs (35 per repository), 75 explain questions (25 per repository)
Arms10, every arm on every question: classic, hybrid, hybrid_rerank, hybrid_multiquery, hybrid_hyde, structural, structural_-cochange, structural_rerank, agent, auto
Answers1,800, 0 generation errors (1,620 generated, 180 composed for auto)
Generatordeepseek-flash
Judgeanthropic/claude-haiku-5.5:batch through OpenRouter, DeepEval 4.3.2, JSON-schema output
Spend$6.25 generation and routing, $4.49 judging (25.1M input and 12.9M output tokens), $0.29 for the second judge, about $11.15
Slicepilot (no tuning/test split)
RepositoryFilesSymbolsEdgesCommitsPRs as historyCo-change pairs
langroid4326,5801,870500200121
pvlib1952,874293500200117
rakazo1,23111,6553,0505002001,552

Headline results#

All 180 questions, means. Correctness and faithfulness run from 0 to 1 (see the rubric); intervals are in the report.

ArmFile recallCorrectnessFaithfulness$ per answerSeconds
agent0.750.620.72$0.011449.8
hybrid_rerank0.640.510.71$0.003513.6
hybrid_multiquery0.640.550.72$0.003616.8
hybrid_hyde0.630.520.71$0.003518.3
structural_rerank0.600.460.69$0.003012.7
auto0.600.470.70$0.003014.6
structural_-cochange0.580.410.71$0.002311.0
classic0.560.440.60$0.001510.9
hybrid0.550.440.70$0.003311.2
structural0.530.400.70$0.002710.9

Answer relevancy was between 0.87 and 0.94 for every arm and separates nothing. agent had the highest file recall on each of the three repositories.

quadrantChart
  title File recall against cost per answer
  x-axis "Cheaper" --> "Costlier"
  y-axis "Lower recall" --> "Higher recall"
  classic: [0.05, 0.18]
  hybrid: [0.26, 0.12]
  hybrid_rerank: [0.33, 0.50]
  hybrid_multiquery: [0.20, 0.60]
  hybrid_hyde: [0.12, 0.44]
  structural: [0.12, 0.04]
  structural_rerank: [0.13, 0.30]
  auto: [0.30, 0.37]
  agent: [0.92, 0.95]

The chart places each arm by its overall cost (x, $0.0015 to $0.0114) and file recall (y, 0.53 to 0.75), each rescaled to fit the square. Every arm except classic and agent costs between $0.0027 and $0.0036, so those points are spread apart horizontally to keep their labels readable: read their order on recall from the chart and their cost from the table. It shows positions, not intervals, and leaves out structural_-cochange for legibility.

The hypotheses#

Change questions only (n = 105, 105 clusters), Holm-corrected within the main family, which covered 8 of 9 planned tests: H4 needs the agent_text_tools arm and H5 the agent_workers arm, and neither was run.

IdClaimEstimate (95% CI)Result
H1aagent beats structural_rerank on answer file recall+16.9 points (10.7 to 23.6), Holm p = 0.0008supported
H1bagent costs more than 5 times structural_rerankratio 4.29 (4.02 to 4.59)not supported: it costs less than 5 times
H2structural beats hybrid on recall@10−0.9 points (−4.2 to 2.3)not supported; detectable about 4.7 points
H3 (headline)removing co-change lowers recall@10−0.3 points (−2.6 to 2.0)not supported; detectable about 3.3 points
H6, multi-querybeats hybrid on answer recall at under 25% of agent's cost+1.3 points (−4.0 to 6.5); costs 29.3% of agentnot supported on either count
H6, HyDEthe same for HyDE+2.8 points (−1.8 to 7.4); costs 29.4% of agentnot supported on either count
H7auto keeps at least 90% of agent's recall at under half its costrecall ratio 0.79 (0.69 to 0.88); cost ratio 0.27 (0.24 to 0.31)not supported: cost holds, recall fails

H7 is one joint hypothesis, so both of its rows carry the joint verdict; that is why the cost row reads "not supported" though its own criterion is met. HyDE and multi-query close 17.4% and 8.1% of the gap from hybrid to agent, with intervals spanning zero.

In words:

  • The agent is worth its cost on recall. It found 16.9 more points of the changed files than reranked structural retrieval, at about 4.3 times the cost, not the 5 times or more expected.
  • The structural graph does not beat plain hybrid retrieval, and co-change adds nothing measurable at this sample size. Exploratory: on answer recall, structural without co-change scored higher than with it (+4.4 points, −0.1 to 9.2 on change questions; +4.2 points, 0.4 to 8.3 over all 180 in the simple report's fixed pair).
  • Query rewriting does not resolve on change-question recall, and costs just over the 25% allowed.
  • The router saves money but loses too much recall: 27% of the agent's cost, 79% of its recall.

Change questions against explain questions#

ArmChange recallExplain recallChange correctnessExplain correctness
classic0.440.730.410.48
hybrid0.420.730.390.51
hybrid_rerank0.480.870.430.63
hybrid_multiquery0.430.940.430.72
hybrid_hyde0.450.880.420.65
structural0.400.730.370.44
structural_-cochange0.440.770.380.46
structural_rerank0.410.870.400.55
agent0.580.990.470.83
auto0.460.800.420.55
  • Change questions are harder for everyone: file recall 0.40 to 0.58, against 0.73 to 0.99 for explain questions.
  • Explain questions are where the cheap arms catch up. hybrid_multiquery reached 0.94 recall and 0.72 correctness there. Over all 180 questions, multi-query, HyDE and the reranker each beat hybrid on recall and correctness; on change questions alone those recall gains do not resolve.

Retrieval, rerankers and channels#

Recall@10 on change questions, from each single-shot arm's ranked pool:

ArmRecall@5Recall@10Recall@20MRR
classic32.1%37.1%39.6%0.533
hybrid33.0%38.4%45.7%0.538
hybrid_rerank33.0%38.4%45.7%0.538
hybrid_multiquery38.2%43.7%48.3%0.597
hybrid_hyde39.6%47.1%50.9%0.622
structural29.0%37.5%44.9%0.498
structural_-cochange33.7%37.7%43.8%0.562
structural_rerank29.5%37.5%44.9%0.498
  • HyDE ranks best on retrieval itself.
  • The reranked arms' retrieval figures match their base arms', so in this table the reranker's effect does not show; it shows in the answers.
  • The reranker helps hybrid answers: hybrid_rerank over hybrid is +6.0 points of change-question answer recall (0.5 to 11.2, unadjusted), and +0.096 recall and +0.071 correctness over all 180. On structural it does not resolve on change questions (+1.6 points, −3.8 to 6.8).

The agent#

Measure on change questionsValue
Runs105
How runs ended47 at the input token cap, 43 with a text reply, 14 by calling finish, 1 at the hard timeout
Never reached a changed file4.8% (2.1 to 10.7)
Steps to the first changed file2.4 on average (censored), median 0 when reached
Wasted reads40.2% (35.0 to 45.5)
Input tokens per questionabout 256,000
Cost per question$0.0127
Latency, median and 95th percentile57.7 s and 86.6 s

Tool calls across the 105 runs: read_file 828, grep_code 465, list_files 294, search_history 277, search_code 175, search_symbols 76, read_symbol 71, list_symbols 42, get_importers 20, get_file_info 18, finish 14, get_overview 14, get_glossary 5, get_cochanged 4, get_importees 2. The agent leans on reading and grepping; the graph tools are barely used.

Nearly half the runs stopped at the 300,000-token input cap, which suggests the agent often runs out of room rather than out of ideas. See token budgets.

The router#

auto made 105 routing decisions on change questions; 56 (53.3%) fell back on low confidence. Decisions cost $0.00444 in total.

RouteShareArm actually runShare
local45.7%structural_rerank59.0%
relational20.0%hybrid_rerank29.5%
out_of_scope19.0%classic7.6%
global13.3%agent3.8%
history1.9%

The picked arm was the best one for the question 15.2% of the time (9.6 to 23.3). It ran the agent for only 4 questions, while the agent was the best arm for 30. See the router.

By repository#

Armlangroid recallpvlib recallrakazo recall
classic0.500.650.53
hybrid0.480.660.50
hybrid_rerank0.610.740.58
hybrid_multiquery0.680.680.57
hybrid_hyde0.560.760.57
structural0.540.670.39
structural_rerank0.610.690.51
agent0.720.790.75
auto0.520.740.54

Every arm scored its highest correctness on pvlib. Structural arms did worst on rakazo, where structural reached 0.39 recall against 0.67 on pvlib. rakazo is also the largest repository, the only TypeScript one, and the one with by far the most co-change pairs (1,552). These are observations on three repositories, not effects of era or language.

RepositoryComments per functionMedian commit messageMedian PR descriptionCommits with visible AI involvement
langroid3.8230 characters139 characters32 of 2,418 (1.3%)
pvlib9.4491 characters1,271 characters2 of 1,797 (0.1%)
rakazo0.87295 characters2,793 characters439 of 961 (45.7%)

Drift and memorisation#

Answer recall did not fall steadily with how far after the base commit a PR landed: for most arms it rose from the first bucket (0 to 24 merges after B) to the middle ones and dropped again in the last (75 to 99). Only 4 change questions come from PRs merged after the generator's training cutoff, so the memorisation check is uninformative here.

Checking the judge#

The design called for 30 hand-labelled answers to check the judge. Instead, the same 30 answers (drawn blind: 16 change and 14 explain questions) were re-graded by a second judge from a different model family, openai/gpt-6.1-terra through OpenRouter's batch API, for $0.29 with no errors. run judge-agreement bins both judges' scores and compares them:

QuestionsScalenExact agreementWeighted kappa (95% interval)
ChangeCorrectness1669%0.74 (0.44 to 0.92)
ExplainCorrectness14100%1.00
AllCorrectness3083%0.87 (0.72 to 0.97)
ChangeMade something up16100%1.00
ExplainMade something up1421%0.00
AllMade something up3063%0.10 (0.00 to 0.33)

Correctness holds up. Kappa 0.87 is well above the 0.6 bar the design set, and the two judges' mean correctness is close: 0.57 against 0.55 on explain questions, 0.40 against 0.29 on change questions, where the second judge is a little harsher.

Faithfulness does not, for a specific reason. Faithfulness asks a judge for a verdict on every claim in an answer: yes (the evidence supports it), no (the evidence contradicts it) or borderline (the evidence neither shows nor contradicts it, for example a line number or a full signature that is not in the excerpt). The harness runs DeepEval with penalize_ambiguous_claims=True, so a borderline claim counts as unsupported. Neither judge calls many claims contradicted (the second judge 2% of its verdicts, the main judge 7%), so neither sees much invention. They differ on borderline: the second judge used it for 50% of its verdicts, the main judge for 31%. That alone pulls the second judge's faithfulness means down to about 0.2, against the main judge's 0.6 to 0.85, and makes the binned "made something up" comparison disagree on explain questions. Faithfulness therefore measures how much of an answer is visibly backed by its cited excerpts, at a level that depends on the judge: compare arms with each other, not with a fixed threshold.

Answer relevancy is not part of the comparison, and it does not separate the arms anyway (0.87 to 0.94). No answer was hand-labelled, so none of the judged columns has been checked against a person.

Caveats#

  • The judge was checked by a second judge, not by hand. Correctness agreement is strong (kappa 0.87); faithfulness levels depend on the judge. See checking the judge.
  • The same model phrased the change questions and judged the answers, so its wording habits may favour answers that resemble it.
  • Faithfulness method. Claims are checked against the cited evidence passed verbatim; an answer that cites nothing is held to everything it was shown. classic therefore scores lowest (0.60 against about 0.70) under a different standard, not because it invents more.
  • Faithfulness penalises proposed new code. Every arm's faithfulness is lower on change questions (0.61 to 0.65, classic 0.46) than explain questions (0.78 to 0.88).
  • Empty answers. 11 came back empty (the generator spent its whole output limit reasoning) and were retried once with unchanged settings; 10 recovered. The remaining one (hybrid_rerank on item 105aac7e24662e09) scores 0 correctness and 0 recall, and is left out of faithfulness and relevancy.
  • Judge errors. 4 of 5,400 gradings had no usable grade after two tries and are excluded from their cells (three correctness, one relevancy).
  • Format failures. 28 of 1,800 answers (1.6%) had no Files: list and score 0 recall.
  • Files: parser change, made after generation and before judging, and recorded in the design file's amendment: words with no directory separator and no extension are no longer read as paths. It removed 1,551 stray entries from 591 answers and no real file, so recall is unchanged and precision is fairer.
  • Explain answer keys are model-written: of 84 checked by a second model, 49 were supported, 35 partly supported, 0 unsupported.
  • Known report defect. "Median files changed per PR" reads 0 for every repository, because the product's PR fetcher reads changed_files from GitHub's list endpoint, which does not return it. Ignore that column.
  • Scope. Three repositories and one generator; nothing here generalises beyond them.

What the results suggest for the product#

These are readings of the numbers above, not tested claims:

  • The Deep agent is the most accurate mode by a clear margin on these repositories, and its biggest limit is the input-token cap.
  • The reranker is a cheap, reliable gain for hybrid retrieval.
  • Co-change and the graph channel do not earn their place in single-shot retrieval here; their value, if any, is not visible at this sample size.
  • Auto routing needs a better decider before it can stand in for the agent: it falls back half the time and rarely picks the agent when the agent would win.

Design trade-offs and limits#

  • The pilot slice only. The hypotheses were written for a held-out test split, which has not been run; these numbers come from a slice the design could have been tuned on.
  • H4 and H5 were not run, so the text-tools and planner-workers questions are open.
  • One run, no repeats. Run-to-run variance of the agent is not measured.
  • Judged columns checked by a second model, not by people. Correctness is consistent across two judge families; faithfulness is only comparable between arms.