Parsimony: An Open-Source Benchmark for How Much Code AI Coding Agents Add
Parsimony is an open-source benchmark that measures how much code an AI coding agent adds to a codebase, ranking models by net coding units rather than by solve rate or cost. It exists because existing coding benchmarks reward solving tasks but do not penalize excess code, which the project argues makes a codebase harder to work with over the long term.
Parsimony reuses the patches that other benchmarks already publish. It does not run any tests itself; pass/fail results come from the original benchmark's published results.
What Parsimony measures: coding units, not lines
Parsimony counts coding units — syntax elements such as statements, calls, comparisons, names, and literals — instead of lines of code. Because lines are not counted, cramming code onto fewer lines is not rewarded, and because deleted code is subtracted, the metric is a net figure:
net units = added − removed
The project's own illustration of the distinction is a function that checks for a negative number. Both implementations below return the same result, but the second uses fewer coding units:
def has_negative(values):
found = False
for value in values:
if value < 0:
found = True
return found
def has_negative(values):
return any(value < 0 for value in values)
The leaderboards Parsimony publishes
Parsimony publishes seven leaderboards built from patches that other benchmarks already released:
- DeepSWE Python
- DeepSWE JavaScript
- DeepSWE TypeScript
- DeepSWE Go
- SWE-bench Verified
- SWE-bench Live Lite (listed as "Live Python")
- SWEeper-Bench PHP
DeepSWE Python results: 26 models, 34 tasks, 136 attempts each
The DeepSWE Python board ranks 26 models across 34 DeepSWE tasks, with 136 attempts per model. Models are ranked by mean net units added on the tasks they solved, lowest first. The "net units added (mean)" figure also includes failed attempts. The "Solved" column comes from DeepSWE and tests are not rerun; "Measured" is how many solved attempts could be measured.
The Artificial Analysis Intelligence Index shown alongside each model is an outside score, matched by model and reasoning effort, and does not affect the ranking. It is dated 2026-10-08 in the published chart, and two models have no AA score.
| # | Model | Net units added (mean) | Solved | AA Intelligence Index | Measured |
|---|---|---|---|---|---|
| 1 | Gemini 3.1 Pro Preview (high) | 1479.5 | 8.1% | 29.7 | 11/11 |
| 2 | Claude Fable 5 (xhigh) | 1557.5 | 74.3% | — | 97/101 |
| 3 | Gemini 3.5 Flash (high) | 1621.5 | 29.4% | 32.6 | 38/40 |
| 4 | Claude Opus 4.8 (max) | 1621.9 | 63.2% | 41.8 | 83/86 |
| 5 | Kimi K3 (max) | 1641.2 | 67.6% | 43.6 | 89/92 |
| 6 | Claude Sonnet 5 (max) | 1665.9 | 59.6% | 38.2 | 78/81 |
| 7 | Claude Sonnet 4.6 (high) | 1684.5 | 29.4% | — | 36/40 |
| 8 | Qwen3.8 Max (xhigh) | 1697.8 | 55.1% | 45.4 | 74/75 |
| 9 | GLM-5.2 (max) | 1733.2 | 41.9% | 33.7 | 53/57 |
| 10 | Kimi K2.7 Code | 1737.3 | 24.3% | 25.8 | 32/33 |
| 11 | Gemini 3.6 Flash (high) | 1741.9 | 41.9% | 34.0 | 53/57 |
| 12 | DeepSeek V4 Flash (max) | 1748.7 | 48.5% | 34.3 | 63/66 |
| 13 | Grok 4.5 (high) | 1819.8 | 58.8% | 38.8 | 79/80 |
| 14 | Grok 4.6 (medium) | 1825.9 | 67.6% | 42.8 | 89/92 |
| 15 | Gemini 3.7 Flash (medium) | 1904.2 | 60.3% | 39.6 | 80/82 |
| 16 | GPT-5.4 (xhigh) | 1913.5 | 46.3% | 39.0 | 59/63 |
| 17 | GPT-5.5 (xhigh) | 1936.7 | 66.9% | 38.4 | 87/91 |
| 18 | GPT-5.6 Sol (max) | 1964.2 | 74.3% | 47.0 | 98/101 |
| 19 | GLM-5.3 Flash (max) | 2006.5 | 69.9% | 41.8 | 93/95 |
| 20 | GPT-5.6 Terra (max) | 2028.7 | 68.4% | 42.1 | 90/93 |
| 21 | DeepSeek V4 Pro (max) | 2043.7 | 59.6% | 36.0 | 77/81 |
| 22 | GLM-5.3 (max) | 2090.0 | 66.2% | 44.8 | 87/90 |
| 23 | Claude Opus 5 (max) | 2183.4 | 74.3% | 50.8 | 97/101 |
| 24 | GPT-5.6 Luna (max) | 2202.3 | 65.4% | 37.3 | 85/89 |
| 25 | Muse Spark 1.2 (xhigh) | 2484.1 | 50.7% | 39.6 | 66/69 |
| 26 | Muse Spark 1.1 (xhigh) | 2562.3 | 52.9% | 33.7 | 68/72 |
The spread on the DeepSWE Python board runs from 1479.5 mean net units added at rank 1 to 2562.3 at rank 26. The top-ranked model by parsimony, Gemini 3.1 Pro Preview (high), solved only 8.1% of tasks, while several models in the middle and lower half of the table solved 60–74% of tasks.
Self-run, unranked results are shown separately
Parsimony also lists a set of "my runs" that are explicitly not ranked. These were run by the benchmark author on the first 3–10 DeepSWE Python tasks — OpenAI models with pi, Anthropic models with Claude Code — and graded with each task's own tests. They are described as not verified and not ranked.
| Model | Net units added (mean) | Solved | AA Intelligence Index | Measured |
|---|---|---|---|---|
| GPT-6 Luna (high) | 1076.3 | 15.0% | 32.9 | 3/3 |
| GPT-6 Astra (high) | 1103.0 | 66.7% | 50.9 | 4/4 |
| GPT-6 Sol (high) | 1353.9 | 35.0% | 42.4 | 7/7 |
| GPT-6.1 Sol (high) | 1356.2 | 50.0% | 50.2 | 10/10 |
| Claude Haiku 5.5 (high) | 1501.2 | 45.0% | 37.8 | 9/9 |
| GPT-5.6 Sol (high) | 1659.5 | 40.0% | 42.3 | 4/4 |
| Claude Sonnet 5.5 (high) | 1973.8 | 60.0% | 46.8 | 6/6 |
| Claude Opus 5.5 (high) | 2136.8 | 60.0% | 53.6 | 6/6 |
One model, GPT-5.6 Sol, was run both ways. According to Parsimony, the author's own run added 0.88× the code of that model's published run.
Method: parse both versions of every changed file, run nothing
Parsimony's stated method is:
- Each patch is applied to the task's code, and both versions of every changed file are parsed. Nothing is run.
- Tests, docs, and generated files are left out.
- Pass/fail comes from the original benchmark's published results; tests are not rerun.
The project's Limits section also states that "Only Python is measured," even though the site publishes JavaScript, TypeScript, Go, and PHP leaderboards.
Data provenance is published as SHA-256 hashes for each leaderboard's manifest and dataset, plus a DeepSWE commit hash (0b9fabbb63b9104d678fe965e1632f2dd9eaa2ea) for the self-run set.
Limits Parsimony states about its own metric
Parsimony lists three limits on how its numbers should be read:
- Smaller is not always better. Coding units measure size, not readability or design.
- More code correlates with more solves. Models that write more code also tend to solve more tasks, with a Spearman correlation of 0.33–0.60 on the boards with 26 or more models.
- The agent matters. Every model uses the same agent (mini-SWE-agent), but the agent still affects how much code gets written.
The Hacker News discussion: parsimony versus readability
The most substantive pushback in the Hacker News thread was that minimizing code volume is not the same as maximizing readability. Commenter fastball agreed with the goal of reducing LLM verbosity but argued the metric can reward the wrong behavior:
On the one hand, I absolutely agree that we should try to measure and reduce verbosity that LLMs are slopping into our codebases. On the other hand, the fact that Astra is "winning" this bench is not great signal for me, since imo Astra produces basically unreadable code. Astra plays code golf. My own revealed preference is that I'd rather have the excessive comments and tests of Claude rather than the inscrutability of Astra.
That comment points directly at the unranked self-run table, where GPT-6 Astra (high) posts 1103.0 mean net units added on 4 tasks — the second-lowest figure shown anywhere on the page — while the ranked leaderboard's most parsimonious entry, Gemini 3.1 Pro Preview (high), solved only 8.1% of tasks.
Other commenters asked for complementary or alternative measurements:
smilekzsproposed cyclomatic complexity as a supporting readability metric: "Would love to see cyclomatic complexity as a supporting metric for readability. I increasingly find AI-adjacent and AI-written code suffering from this."chengjunsugerquestioned whether fewer units actually reduces human effort: "But I wonder does less coding actually means less work for whoever reviews it?"Vakaiserasked the practical follow-up: "Does anyone have ways to reduce the complexity and verbosity of code generated via agents? Anything that can increase code quality would help."Xeoncrossargued that benchmarks should include the best locally runnable models, naming Qwen 3.8 27B at roughly 28GB of RAM in Q4 quantization as an example, so readers can see how close open weights are to commercial leaders.
One commenter, KasianFranks, rejected the premise that code volume matters at all: "Nobody is going to care about how much code an AI system generates in the very near future, some even now, once everyone understands the scale at which a vector space truly operates at. Complexity is not much of an issue for an AI system."
Commenter tinthedev endorsed the AST-level approach specifically because it strips out formatting and comment noise: "We can't manage what we don't measure, and adjusting the mesurement to be on the abstract syntax level removes an entire layer of 'mess' that comes from comments and formatting." The same commenter noted that LLM workflows often produce "inane and overly complex code" and that a single figure makes generated code easier to evaluate.
Adding your own benchmark to Parsimony
Parsimony accepts third-party results. The workflow is: download the example file, fill in your results, and open it to get the same chart and table. The file stays in the browser, and the project documents the format and how to share it in docs/custom-benchmarks.md in its GitHub repository.
Sources
Related
- Dispatch
- Dispatch
- Dispatch
- Dispatch