Research
Model or scaffold? A new analysis of 166 SWE-bench Verified runs says the model carries 81% of coding-agent ability where it can be separated, and the scaffold 14%
Leaderboards publish one resolve rate per agent, so nobody can say how much belongs to the model and how much to the harness. A paper posted November 30, 2026 fits the question as a measurement problem across 166 SWE-bench Verified runs and 143 Terminal-Bench 2.0 runs. The answer is lopsided, and the caveats matter.
A paper posted to arXiv on November 30, 2026 puts a number on a question every coding-agent buyer asks: is it the model or the harness? In arXiv:2611.41619, Okan Bulut of the University of Alberta fits a statistical model to public leaderboard data and finds that, where models and scaffolds are actually crossed, the model carries 81% of the ability variance on SWE-bench Verified, the scaffold 14%, and the specific pairing 5%. Terminal-Bench 2.0 gives a similar picture: 88% model, 8% scaffold, 4% pair.
The headline is lopsided. The caveats are where the useful reading is. We read the full HTML version on December 1, 2026.
The problem with one number per agent
SWE-bench's 500 human-validated tasks in the Verified subset each ask an agent to resolve a real open-source issue, scored by hidden tests. Leaderboards list one resolve rate per run. But a run is a language model inside a scaffold, the code that "gives the model its tools, prompts and retries" and decides how a patch is chosen. A higher score could mean a better model, a better harness, or a lucky pairing. Earlier work disagrees: one line of research writes ability as model plus scaffold with no interaction, while another audit found scaffold orderings reversing across models. Bulut's paper treats it as a measurement problem so the disagreement can be tested.
The method in plain terms
Each run is a test-taker and each task an item (solved or not), the setup of item response theory. The paper fits a cross-classified explanatory model with three crossed random effects on ability: model, scaffold, and the model-scaffold pair (the interaction). It reports a variance partition, a likelihood-ratio test of whether ability is additive, and standard errors on every ability and prediction. Data: 166 public SWE-bench Verified runs (83,000 task results), 143 Terminal-Bench 2.0 runs with repeated attempts (62,682 attempts), plus simulated leaderboards. Code is open at the author's mirtverse repository.
What the numbers say
| Dataset | Subset | Model | Scaffold | Pair |
|---|---|---|---|---|
| SWE-bench Verified | All 166 runs | 53% | 38% | 9% |
| SWE-bench Verified | Connected core (35 runs, 10 models, 10 scaffolds) | 81% | 14% | 5% |
| SWE-bench Verified | 109 runs with one disclosed model | 68% | 24% | 7% |
| Terminal-Bench 2.0 | All runs | 88% | 8% | 4% |
Source: paper's variance partition. The arXiv abstract page summarizes the crossed-design result as a model share of 81% to 91%, scaffold 5% to 14%, pair 4% to 5%.
Why the all-runs row shouldn't be quoted
Of 111 models on SWE-bench Verified, 93 appear in only one scaffold, and 39 scaffolds were run with a single model. For those runs, the model and scaffold effects can't be told apart; the paper says the 38% scaffold figure is "hard to trust" because the split is set mostly by the prior. The "connected core," where every model ran in at least two scaffolds and every scaffold with at least two models, is the defensible estimate, but it is small. Parametric-bootstrap intervals in the core run from .54 to .93 for the model, .02 to .39 for the scaffold and .02 to .14 for the pair. So "81%" is a point estimate with a wide band; "the model matters most" is the robust finding.
Terminal-Bench 2.0 is cleaner by design: its leaderboard runs every submission in one harness, with five attempts per task over 89 tasks. That is why its split is more stable, but it also means it measures model differences under a single harness more than it measures harness differences.
The pair term is small but real
On both benchmarks the pair term is statistically necessary, so ability is not strictly additive. In the SWE-bench core, dropping the pair term costs χ²(1) = 184.9 (p < .001), while dropping the scaffold term is not significant (χ²(1) = 2.6, p = .11), and the paper notes that an additive fit shoves pair-specific variance onto scaffolds (19% scaffold without the pair term versus 14% with it). Across all runs, dropping the pair term raises deviance by 228.
The concrete example: one submitter's agent gave Claude 3.5 Sonnet its best SWE-bench result (53%) and GPT-4o one of its worst (26%, against 38% to 39% in Agentless and AutoCodeRover). Among model pairs run in the same two scaffolds, their ordering reversed in only 2 of 15 comparisons, both with small gaps. That is the pattern in one sentence: scaffolds rarely reorder models, but they can badly mismatch one.
Can you predict a run before it's made?
Using five-fold cross-validation, the paper predicts a held-out run's resolve rate from its model and scaffold alone:
| Held-out group | Runs | Grand-mean error | Same-model-mean error | Additive-rule error | Explanatory-model error |
|---|---|---|---|---|---|
| Same pair in training | 24 | 14.4 | 4.5 | 10.3 | 4.6 |
| Model and scaffold each seen, never together | 36 | 19.3 | 7.2 | 13.7 | 7.4 |
| One of the two seen | 83 | 16.1 | 15.7 | 9.6 | 11.2 |
| Neither seen | 23 | 11.8 | 11.8 | 11.8 | 11.7 |
Mean absolute error in resolve-rate percentage points, per the paper's Table 4. Two things stand out. When a model and scaffold were each seen but never together, the fitted model (7.4) is no better than just averaging that model's other runs (7.2), which is what you would expect if the model does most of the work. And repeated submissions with the same labels differ by more than measurement error allows: the ability intervals covered the truth only 58% of the time for repeated pairs.
Cheaper evaluation
Using the fitted task difficulties, an adaptive test of 10 tasks correlated .94 with full-benchmark ability (random 10: .88); 25 tasks reached .98 (random: .95); 50 reached .99 (random: .97). Expected resolve rate from 25 adaptive tasks landed within 3.2 points on average, against 4.8 for 25 random tasks scored with the model and 7.0 for the raw proportion. The paper's framing: a run that "costs hundreds of dollars on all 500 tasks" could be placed on the leaderboard's scale from a few dozen, if the leaderboard's difficulties are available. The author's own caveat: the check reuses runs that also set the difficulties, which flatters it slightly.
What it means for choosing a coding agent
- Choose the model first. If you are comparing coding agents, most of the measurable gap in public leaderboards tracks the model. Our November agent harness benchmark and best agent harnesses page are where to compare the scaffold side.
- Then test in your own harness. The author's advice: "users should still test a model in the scaffold they will deploy, because the pair term is never zero."
- Distrust single-submission leaderboards. If the same label can vary beyond measurement error between submissions, one run is weak evidence. See also how Terminal-Bench 2.1 repaired benchmark tasks.
- Ask maintainers for crossed designs. The paper recommends a reference scaffold such as mini-swe-agent run with every new model, and a few strong models run in every new scaffold.
Limitations the author states
Data are observational and self-submitted, so no effect is causal; the Rasch form fits worse than a two-parameter model (though rankings barely change; abilities correlate .995); public tasks may have leaked into training data; and the SWE-bench versus Terminal-Bench contrast is "suggestive rather than a controlled comparison." The paper is a preprint and not yet peer reviewed. We have not independently re-run the analysis. Figures here are taken from the paper's text and tables.
Source: arXiv:2611.41619v1, submitted November 30, 2026 (cs.AI). More benchmark and harness analysis lives in our research hub.
FAQ
Does the model or the scaffold matter more for coding agents?
In arXiv 2611.41619 (Okan Bulut, University of Alberta, submitted November 30, 2026), the model matters far more where the two can be separated. In SWE-bench Verified's connected core the model carries 81% of ability variance, the scaffold 14% and the model-scaffold pair 5%. On Terminal-Bench 2.0 the split is 88% model, 8% scaffold and 4% pair. The author still advises testing a model in the scaffold you will deploy, because the pair term is never zero.
Why do the all-runs SWE-bench numbers show the scaffold at 38%?
Because the data can't separate them. Across all 166 runs the partition is 53% model, 38% scaffold and 9% pair, but 93 of 111 models appear in only one scaffold and 39 scaffolds appear with only one model. For those runs the split between model and scaffold is set mostly by the statistical prior, not the data. The paper says the scaffold share is 'hard to trust.'
What is a scaffold in a coding agent?
The paper defines a coding agent as a language model inside a scaffold: the program that gives the model its tools, prompts and retries, and decides what it sees and how a patch is chosen. SWE-agent and OpenHands are examples of scaffolds. In industry terms, the scaffold is the agent harness.
Can you predict a coding agent's score without running the full benchmark?
Partly. For runs whose model and scaffold were each seen in training but never together (36 runs), the model's predictions missed the resolve rate by 7.4 percentage points on average, versus 13.7 for an additive rule on rates and 19.3 for the grand mean. An adaptive test of 25 tasks recovered full-benchmark ability with a correlation of .98, against .95 for 25 random tasks.
Is the result causal?
No. The paper states that the data are observational and self-submitted: teams choose models and scaffolds together, so none of the effects is causal. Public tasks may also have leaked into training data, and the SWE-bench and Terminal-Bench contrasts are 'suggestive rather than a controlled comparison.'
What should a team choosing a coding agent take from this?
Spend most of your evaluation budget on the model decision, but run your shortlist inside your own harness. The paper's pair effect is small yet statistically needed: in SWE-bench, one scaffold gave Claude 3.5 Sonnet its best result (53%) while giving GPT-4o one of its worst (26%, against 38% to 39% in two other scaffolds).