Unico Connect
Measuring coding agent output with DORA metrics, with Cursor, Claude, GitHub Copilot and OpenAI logos
Back to Blog
EngineeringSeptember 22, 202618 min read

How to Measure AI Coding Agent Productivity Without Falling Into the Speed Trap

Saurav Jagdale

Saurav Jagdale

Technical Lead, Unico Connect

In this article

In early 2026 some technology companies started ranking engineers by how many AI tokens they consumed, a practice that became known as tokenmaxxing. In June 2026, the DORA research team at Google Cloud published a direct response, arguing that raw token counts are a vanity metric and that the history of software is littered with activity measures that promised a shortcut to productivity.

Two months earlier, the Thoughtworks Technology Radar warned that most coding agent metrics still focus too heavily on throughput, such as lines generated and tasks completed.

Both point to the same answer. Measure what reaches production and how much human effort it took to get there. This guide sets out a practical framework for measuring coding agent output, the metrics that matter, how to collect them, and the traps to avoid. Sources were checked on 22 September 2026.

Quick Answer

Measure AI coding agents on outcomes, not activity. Track the five DORA metrics, change lead time, deployment frequency, failed deployment recovery time, change fail rate and deployment rework rate, to see whether faster code reaches users safely. Add the collaboration metrics Thoughtworks recommends, first pass acceptance rate, iteration cycles, failed builds and review burden. Track cost per accepted change instead of tokens, measure teams rather than individuals, and ignore lines of code.

Key Takeaways

  • Throughput alone is misleading. DORA found in 2025 that AI adoption now improves software delivery throughput but still increases delivery instability.
  • Rework rate is the early warning. Thoughtworks calls a rise in rework rate a sign of blind spots, technical debt, and unchecked AI assisted development.
  • Collaboration quality matters as much as speed. First pass acceptance, iteration cycles, failed builds, and review burden show whether agents are saving effort or moving it to reviewers.
  • Token counts are an input, not an outcome. DORA calls company wide token aggregates meaningless and individual token scores harmful, and recommends cost per accepted change.
  • Measure teams, not people. Both DORA and Thoughtworks recommend team level tracking, used for reflection rather than ranking.

Why Throughput Metrics Mislead With Coding Agents

Coding agents make activity cheap. An agent can produce thousands of lines, open many pull requests, and consume millions of tokens in a day, and none of that says whether the product improved. Thoughtworks describes the risk as the speed trap, where teams judge agents by time to first output, lines of code generated, and tasks completed.

Thoughtworks goes further in a separate April 2026 entry, placing coding throughput as a measure of productivity in its Caution ring. It warns that when lines of code or pull request counts are used in isolation, the result is often a flood of poorly aligned code that slows reviews, and it notes that lower first pass acceptance rates tend to increase change failure rates while repeated iteration cycles extend lead time for changes.

The research backs the caution. The DORA 2025 State of AI assisted Software Development report, based on a survey of nearly 5,000 technology professionals run between 13 June and 21 July 2025, found that 90 percent use AI in their work and more than 80 percent believe it increased their productivity. It also found that 30 percent report little or no trust in AI generated code, and that while AI adoption now improves delivery throughput, it still increases delivery instability. DORA summarizes the finding as AI being an amplifier, magnifying the strengths of high performing organizations and the dysfunctions of struggling ones.

Perceived speed is not proof either. In a randomized controlled trial by METR, using data from February to June 2025, 16 experienced open source developers took 19 percent longer to finish tasks when AI tools were allowed, yet afterwards still believed AI had sped them up by 20 percent. METR said in February 2026 that newer tools likely help more, but that self reported speedups can be quite unreliable. That is why this framework relies on delivery data rather than impressions.

DORA explains the tokenmaxxing problem with a principle named after the economist Charles Goodhart, that when a measure becomes a target it ceases to be a good measure. Once token counts become a target, they stop measuring real work, and DORA reports developers running agents on meaningless projects simply to stay above a company average.

A Three Layer Framework for Measuring Coding Agents

LayerWhat it answersMetrics
Delivery outcomesIs faster code reaching users safely?Change lead time, deployment frequency, failed deployment recovery time, change fail rate, deployment rework rate
Collaboration qualityAre agents saving human effort or moving it?First pass acceptance rate, iteration cycles per task, post merge rework, failed builds, review burden
Cost and efficiencyIs the spend producing accepted work?Cost per accepted change, token spend by team, application, or use case, runaway agent incidents

The layers work together. Faster lead time with rising rework means the agent is shipping problems faster. Higher first pass acceptance with flat lead time means the bottleneck is elsewhere, often in review, testing, or deployment.

Layer One, the DORA Metrics

Thoughtworks keeps DORA metrics in its Adopt ring and says they matter more than ever with AI assisted development. The set now has five measures.

  1. Change lead time. Time from commit to running in production.
  2. Deployment frequency. How often changes reach production.
  3. Failed deployment recovery time. How long it takes to restore service after a deployment fails and needs immediate intervention. DORA renamed this measure from time to restore service in 2023.
  4. Change fail rate. The share of deployments that need immediate intervention, such as a rollback or hotfix.
  5. Deployment rework rate. The share of deployments that were unplanned and made to fix a user facing bug, added by DORA as the fifth metric in 2024. Thoughtworks describes the same signal as how much of the delivery pipeline is consumed by unplanned rework.

Thoughtworks is blunt about the logic. If lead times do not fall and deployment frequency does not rise, faster code generation does not translate into better outcomes.

How Do Your DORA Metrics Compare?

The DORA 2025 survey published how respondents answered each delivery question. Use it for context, but DORA notes that the most useful comparison is the same application or service over time.

MetricDORA 2025 survey result
Change lead time24.4 percent ship a committed change to production in less than one day, and 9.4 percent in less than one hour
Deployment frequency16.2 percent deploy on demand, several times a day, and 44.6 percent deploy at least once a week
Failed deployment recovery time56.5 percent restore service in less than one day, and 21.3 percent in less than one hour
Change fail rate62.2 percent say 16 percent or less of changes need remediation, and 16.7 percent say 4 percent or less
Deployment rework rate52.6 percent say 16 percent or less of deployments were unplanned bug fixes, and 7.3 percent say more than 64 percent

If you do not have delivery tooling yet, the DORA Quick Check, updated in April 2026, scores all five metrics on a 10 point scale against benchmarks from the 2025 research.

Layer Two, Collaboration Quality

These are the metrics Thoughtworks highlights in its April 2026 entry on measuring collaboration quality with coding agents, which sits in the Assess ring.

MetricHow to measure itWhat good looks like
First pass acceptance rateShare of agent generated changes accepted in review without substantial rewritesRising over time as instructions and feedback improve
Iteration cycles per taskNumber of prompt and correction rounds before a task is doneFalling, with fewer long back and forth sessions
Post merge reworkFollow up changes needed to fix agent code after it mergedLow, and not rising as agent use grows
Failed buildsBuilds broken by agent changes, in CI or locallyLow, ideally caught before commit
Review burdenReviewer time per change and comments per pull requestStable or falling as volume rises

Thoughtworks notes that teams using Claude Code can use the /insights command to generate reports on agent sessions, and that its own teams have tracked first pass acceptance of a customized review command. The signal it looks for is simple. Shorter feedback cycles and fewer failed builds indicate more effective interaction with coding agents.

What Published Benchmarks Say About Agent Written Code

Your own baseline matters more than any published figure, but research gives you a first reference point while you build one. The figures below all come from studies that name their population and their definition.

The largest dataset is AIDev, which covers 456,000 pull requests by five coding agents across 61,000 repositories and 47,000 developers (Li, Zhang and Hassan, July 2025). It reports the share of agent pull requests that get merged at all, and the median time from opening a pull request to closing it.

AgentPull requests mergedMedian turnaround on accepted pull requests
OpenAI Codex65.3%0.3 hours
Claude Code52.5%6.9 hours
Cursor51.4%2.4 hours
Devin48.9%2.2 hours
GitHub Copilot38.2%17.2 hours
Human pull requests, for comparison76.8%3.9 hours

Across those five agents the average merge rate is 51.3 percent, against 76.8 percent for human authored pull requests in the same dataset. Treat the spread as the real finding. The gap between the best and worst agent is 27 points, wider than the gap between the average agent and a human, so a number from one tool says little about another.

Merged is not the same as accepted as written. A study of 567 Claude Code pull requests across 157 open source projects found that 83.8 percent were merged, and that 54.9 percent of the merged ones went in with no further modification (Watanabe and colleagues, September 2025). That works out to about 46 percent of submitted pull requests landing without a change, which is the closest published figure to a first pass acceptance rate.

Two more reference points are worth holding loosely, because each measures something narrower than it sounds.

  • Rework is rising, and the size of the rise depends on the definition. GitClear, analyzing 623 million changed lines, reports that code churn, meaning lines reverted or rewritten within two weeks of being authored, is up 15 percent against its 2023 baseline (GitClear, June 2026). Other published churn figures use different denominators and are not comparable, so compare yourself against your own baseline rather than against a headline.
  • Cost per attempted task is roughly a dollar fifty. Faros ran 197 common tasks from its own engineering work and recorded a typical cost of $1.51 a task for Claude Code with Opus 4.8 and $1.43 for Codex with GPT-5.5, with 95 percent of tasks at or below $6.84 and $3.21 (Faros Route Index, study dated 25 June 2026). That is cost per attempt, not cost per accepted change, so the number you care about is higher by whatever share of attempts you throw away.

Use these as a sanity check, not a target. If your merge rate sits far below 50 percent, the problem is usually instructions, context, or task selection rather than the model.

Layer Three, Cost Per Accepted Change

Token spend is real money, but it is an input. DORA suggests pairing the core metrics with efficiency and risk indicators such as cost per accepted change and code rework rate, and it agrees with an analysis by Adnan Masood that high token spend yields diminishing returns, with the teams on the biggest budgets often gaining only a marginal increase in throughput at around ten times the cost.

The practical version is to divide model and tool spend for a period by the number of agent assisted changes that were accepted and stayed in production. DORA also describes Shopify replacing an AI leaderboard with a usage dashboard and adding circuit breakers that catch runaway autonomous agents and flag abnormal daily spend. If you track tokens at all, DORA suggests tracking them by team, by application, or by use case rather than company wide or per person.

Reduce Review Burden With Feedback Sensors

The fastest way to improve collaboration metrics is to stop humans from being the first line of quality control. Thoughtworks places feedback sensors for coding agents in its Trial ring. The idea is to wire deterministic checks such as compilers, linters, structural tests, and test suites directly into the agent workflow, so failures trigger self correction before a person ever sees the change. Thoughtworks recommends that these checks run during the coding session and report clean results before a commit, rather than relying on post commit checks, and notes that coding agents make it cheaper to build custom linters and structural tests.

Alongside this, Thoughtworks now treats sandboxed execution for coding agents as a sensible default rather than an optional extra, running agents in isolated environments with restricted file system access, controlled network connectivity, and bounded resources.

Measurement Anti Patterns to Avoid

  • Token leaderboards. DORA warns they encourage productivity theater, knowledge hoarding, and burnout.
  • Lines of code and pull request counts. Thoughtworks places coding throughput as a measure of productivity in its Caution ring and calls measuring productivity by lines of AI generated code misleading.
  • Individual scores. Both DORA and Thoughtworks recommend team level measurement used for reflection.
  • No baseline. Without delivery metrics from before agent adoption, you cannot tell whether anything changed.
  • Dashboards instead of conversations. Thoughtworks notes that simple check ins during retrospectives often improve capabilities more than detailed tracking tools.

Where the Data Comes From

SourceWhat it gives youWatch out for
Version control and CILead time, deployment frequency, failed builds, review time per pull requestLabel agent assisted pull requests so every metric can be split
Incident toolingFailed deployment recovery time, change fail rate, unplanned fix deploymentsCount only failures with real user impact
GitHub Copilot usage metricsActive users, suggestion acceptance rate, lines added, pull requests created by Copilot, median time to merge, adoption cohortsEditor acceptance is not review acceptance
Claude Code analytics for Team and Enterprise plansSuggestion accept rate, lines accepted, merged pull requests with Claude Code (public beta), and per user token counts and cost estimates through OpenTelemetry exportLines accepted do not track later deletions
DORA Quick CheckA score out of 10 for all five DORA metrics against DORA 2025 benchmarksSelf reported, best used as a team conversation

Vendor acceptance rates count suggestions accepted in the editor or the coding session, not changes accepted in review, so they do not replace first pass acceptance rate.

A 30 Day Plan to Start Measuring

  1. Week one, set the baseline. Pull the last quarter of lead time, deployment frequency, change fail rate, recovery time, and rework from your version control, CI, and incident tools, or run the DORA Quick Check with the team if that data is not instrumented yet.
  2. Week two, tag agent work. Label pull requests and commits that were agent assisted, so every metric can be split by agent and non agent work.
  3. Week three, add collaboration metrics. Start tracking first pass acceptance, iteration cycles, failed builds, and review time per change for agent assisted work.
  4. Week four, add cost and review. Compute cost per accepted change, set spend alerts, and review all three layers together in a team retrospective.

After the first month, review monthly. Look for rising rework or review burden as the earliest signs that agent use is outrunning your quality controls.

How Unico Connect Helps

We help engineering teams adopt coding agents in a way that shows up in delivery metrics rather than only in activity. That includes setting up DORA and collaboration quality measurement, wiring feedback sensors into agent workflows, and sandboxing agent execution. Our Claude Code for engineering teams service covers rollout and measurement, our cloud and DevOps services cover the pipelines that produce DORA data, and our AI development services cover custom agent tooling. Teams that want experienced engineers who already work this way can hire AI engineers through us. We run the same approach internally, with standards aware review on every change, as described in our engineering enablement case study. For more, see AI coding tools vs AI agents, our analysis of AI generated code at scale, or talk to our team.

Frequently Asked Questions

How do you measure AI coding agent productivity?

Measure outcomes rather than activity. Track the five DORA metrics to see whether changes reach production faster and more safely, add collaboration quality metrics such as first pass acceptance rate, iteration cycles, failed builds, and review burden, and track cost per accepted change. Measure at team level and compare against a baseline from before agent adoption.

What is rework rate in DORA metrics?

Rework rate, which DORA calls deployment rework rate, is the fifth DORA metric, added in 2024. It is the share of deployments that were unplanned and made to fix a user facing bug in production. In the DORA 2025 survey, 52.6 percent of respondents put it at 16 percent or less. Thoughtworks calls a rise in rework rate an early warning of blind spots and technical debt from unchecked AI assisted development.

What is tokenmaxxing?

Tokenmaxxing is the practice, which emerged in early 2026, of tracking and rewarding the engineers who consume the most AI tokens, often on internal leaderboards. DORA argues it is a gameable vanity metric that encourages productivity theater, wasted spend, technical debt, and burnout.

Should we track AI token usage at all?

Yes, as a cost signal rather than a performance target. DORA suggests tracking usage by team, application, or use case rather than company wide or by individual, pairing it with cost per accepted change, and using spend alerts or circuit breakers to catch runaway agents.

What is first pass acceptance rate?

It is the share of agent generated changes that are accepted in review without substantial rewrites. Thoughtworks lists it among the collaboration quality metrics that give more meaningful signals than speed alone.

What is a good first pass acceptance rate for a coding agent?

There is no industry standard yet, so compare against your own baseline first. For a reference point, a study of 567 Claude Code pull requests found 83.8 percent were merged and 54.9 percent of those went in without further modification, which is about 46 percent of submitted pull requests landing as written. Across 456,000 pull requests in the AIDev dataset, the five agents merged between 38.2 and 65.3 percent of their pull requests, against 76.8 percent for human authored ones. A rate far below 50 percent usually points at instructions, context, or task selection rather than the model.

How do AI coding tools impact developer productivity?

It depends on the system around them. DORA 2025 found that AI adoption is linked to higher individual effectiveness, code quality, and software delivery throughput, but also to higher delivery instability, with no relationship to friction or burnout. A METR trial using early 2025 tools found experienced open source developers took 19 percent longer with AI while believing they were faster. METR now says newer tools likely help more, but the gap between perception and measurement is why teams should track delivery outcomes rather than impressions.

Should coding agent metrics be tracked per developer?

No. Thoughtworks recommends tracking collaboration quality at team level alongside DORA metrics, and DORA calls individual token scores harmful. Per person tracking invites gaming and discourages people from sharing effective workflows.

Sources

Radar positions and descriptions come from the Thoughtworks Technology Radar entries for measuring collaboration quality with coding agents, DORA metrics, coding throughput as a measure of productivity, feedback sensors for coding agents, and sandboxed execution for coding agents. Survey findings come from the DORA 2025 State of AI assisted Software Development report, and the tokenmaxxing analysis from the DORA insight Finding balance in the era of tokenmaxxing, published on 2 June 2026. The METR findings come from its early 2025 developer productivity study and its February 2026 update. DORA metric names follow the DORA history of its software delivery metrics, and tool data follows the GitHub Copilot usage metrics and Claude Code analytics documentation. The benchmark figures for agent written pull requests come from AIDev, published 20 July 2025, and the empirical study of agentic coding pull requests, published 18 September 2025. Code churn comes from GitClear, June 2026, and the cost per task figures from the Faros Route Index, June 2026. All were read on 22 and 23 September 2026.

Keep reading

Latest Blogs & Articles

View all