
TL;DR
A new 188-task benchmark for non-functional improvements finds coding agents hit 70% on functional correctness but lag humans on refactors and structural changes - the quality gap that becomes tech debt.
SWE-bench-style benchmarks proved coding agents can fix bugs. A new paper from the software engineering research community asks a question those benchmarks never do: can agents make code better without changing what it does?
The answer, from SWE-NFI (arXiv 2607.27409, submitted July 29), is a careful "not yet". The best agent in the study hits 70.0% functional correctness, yet every agent evaluated falls short of a human reference on non-functional improvements (NFIs). The gap is widest exactly where technical debt lives: structural code improvements.
SWE-NFI is a benchmark for evaluating coding agents on behavior-preserving improvements - refactors, readability, maintainability, and performance work that changes no observable behavior. The authors built it from 188 tasks extracted from real merged pull requests in open-source Python projects, so the targets are improvements humans actually shipped, not synthetic ones.
The benchmark operationalizes developer-oriented NFIs into 92 executable rules, and the evaluation combines two gates: functional correctness tests (did the agent break anything) plus rule-based NFI scoring (did the code actually get better). That two-sided design matters. A refactor that passes tests but does not improve the code scores nothing, and a change that improves style but breaks a test fails outright.
The headline numbers:
The structural gap is the interesting one. Structural improvements are the changes that reshape code organization: extracting functions, removing duplication, simplifying control flow. They are also the hardest to verify mechanically, which is why most agent harnesses do not try. The paper's rule-based approach is an attempt to make that verification executable, and the wide 0.0 to 1.3 range across agents suggests this is not a uniform weakness - some models have genuinely better machinery for it than others.
The evaluation targets are behavior-preserving, which makes failures informative. When an agent cannot refactor without breaking behavior, the failure mode is not "agent can't write code". It is "agent can't prove the change is safe", which is a different and more tractable problem.
From the archive
Jul 31, 2026 • 7 min read
Jul 31, 2026 • 12 min read
Jul 30, 2026 • 7 min read
Jul 30, 2026 • 8 min read
Correctness benchmarks have saturated as a proxy. Agents score well on bug-fix benchmarks and teams have adopted them accordingly - but production code spends most of its life being improved, not fixed. We covered the same signal from a different angle in Agent Evals Need Baseline Receipts: an eval that measures one outcome teaches you nothing about the others. SWE-NFI is the complementary move - measure the outcome that reviews and maintenance actually care about.
Refactoring is where the agent value proposition gets murky. An agent that lands a bug fix saves a developer an hour of debugging. An agent that lands a half-done refactor creates a follow-up task for someone else. The 0.0 to 1.3 structural scores suggest that, at the margin, teams should be more conservative about delegating restructuring work to agents than bug fixes - which is the opposite of the natural instinct to hand over the "boring" cleanup tasks first. This connects to the review-queue problem in AI Code Review Is the New Bottleneck: the risk is not agent volume, it is agent output that needs human repair.
Rule-based verification is the real contribution. The 92 executable rules are a template for what a refactor-checking harness looks like: assert behavior preservation with tests, then score improvement against explicit rules. That is a pattern any team can borrow for its own agent workflows, and it pairs naturally with the case for why skills beat prompts for coding agents - a skill that cannot verify its own output is a skill you cannot trust on structural work.
Three things to take from this paper.
First, treat it as a division of labor argument, not a verdict on agents. The evidence says: agents for functional work, humans for structural work, with rule-checked automation in between. Repository context engineering keeps pushing on how to give agents more of the project around a task; SWE-NFI is the reminder that context alone does not close the structural gap.
Second, the 70.0% correctness number means half-decent refactors are landing everywhere, invisibly, inside bigger agent diffs. If you use coding agents on production repos, some of their output is already structural change that no benchmark would have caught. This is an argument for keeping agent PRs small and reviewable - the exact case GitHub made with stacked PRs - so structural drift is visible per layer instead of buried in a 2,000-line diff.
Third, expect this benchmark shape to become the norm. Correctness-only evaluations are cheap and have driven a year of improvements, but every agent vendor now needs an answer to "does your model make code better", because that is what developers ask of code review today. The paper's executable-rules approach is a credible answer format, and it is reproducible by construction.
The honest summary: agents are still better at fixing your bugs than improving your code, and the gap is measurable. If your team's agent adoption feels good on issue fixes and awkward on refactors, that is not your setup - it is the current state of the art, now quantified.
Read next
Hex's data-agent lab shows the practical eval pattern AI teams should copy: compare candidates against stable baselines, keep receipts, and judge changes by task behavior.
8 min readCodeNib turns repository context into a data-system problem. That is the right direction for Claude Code, Codex, Cursor, and every agent that keeps rediscovering the same repo.
8 min readHacker News keeps arguing about Claude Code, Codex, skills, MCP, and orchestration. Under the noise, the same four truths keep surfacing: workflows matter more than demos, verification is the bottleneck, skills beat prompts, and orchestration matters more than raw autonomy.
11 min readTechnical content at the intersection of AI and development. Building with AI agents, Claude Code, and modern dev tools - then showing you exactly how it works.
Open-source reasoning models from China. DeepSeek-R1 rivals o1 on math and code benchmarks. V3 for general use. Fully op...
View ToolGoogle's frontier model family. Gemini 2.5 Pro has 1M token context and top-tier coding benchmarks. Gemini 3 Pro pushes...
View ToolOpen-source cloud sandboxes for AI agents. Isolated environments that start in under 200ms, run code in Python, JavaScri...
View ToolAnthropic's agentic coding CLI. Runs in your terminal, edits files autonomously, spawns sub-agents, and maintains memory...
View ToolScore every coding agent on your own tasks. Catch regressions in CI.
View AppCompare AI coding agents on reproducible tasks with scored, shareable runs.
View AppRun hundreds of agent evals in parallel. Find regressions in minutes.
View AppWhat MCP servers are, how they work, and how to build your own in 5 minutes.
AI AgentsSet up Codex Chronicle on macOS, manage permissions, and understand privacy, security, and troubleshooting.
Getting StartedResearcher, auditor, reviewer, and other ready-made subagent types.
Claude Code
The video reviews OpenAI’s newly released GPT 5.4, highlighting access tiers (GPT 5.4 Thinking in ChatGPT Plus/Teams/Pro/Enterprise and GPT 5.4 in the $200/month tier) and API availability. It covers

Check out Trae here! https://tinyurl.com/2f8rw4vm In this video, we dive into @Trae_ai a newly launched AI IDE packed with innovative features. I provide a comprehensive demonstration...

Buzz by Block: Open-Source Slack-Style Collaboration for Humans + AI Agents (Demo & Setup) Check out Arcade: https://arcade.dev.plug.dev/xiDRwlA Repo: https://github.com/block/buzz The video introd...

Hex's data-agent lab shows the practical eval pattern AI teams should copy: compare candidates against stable baselines,...

CodeNib turns repository context into a data-system problem. That is the right direction for Claude Code, Codex, Cursor,...

Hacker News keeps arguing about Claude Code, Codex, skills, MCP, and orchestration. Under the noise, the same four truth...

Coding agents make code faster than teams can review it. The next advantage is not bigger prompts. It is review systems...

GitHub's stacked pull requests went into public preview on July 30. Stacks turn one large change into an ordered chain o...

A controlled study of 660 Claude Code trials shows clean codebases reduce token usage by 7-8% and file revisitations by...

New tutorials, open-source projects, and deep dives on coding agents - delivered weekly.