All posts

GuideDevfab Team7 min read

How to measure AI developer productivity

Measure AI developer productivity with delivery outcomes, not lines of code: DORA metrics, rework, review time, cost per task and a before-and-after baseline.

How to measure AI developer productivity

Short answer: Measure AI developer productivity by delivery outcomes, not activity. Track speed and stability together (change lead time, deployment frequency, change fail rate and rework), add review time and cost per task, and compare against a baseline from before the change. Ignore lines of code and suggestion acceptance rates: they rise easily and say little about whether working software reaches users faster.

Measuring AI developer productivity

Why this is harder than it looks

Two findings show why "it feels faster" isn't enough:

  • Feeling faster isn't the same as being faster. In a randomized study published in July 2025, METR found that 16 experienced open-source developers took 19% longer on 246 tasks when AI tools were allowed, even though they expected AI to speed them up. In a February 2026 update, METR said developers are likely more sped up by AI now than in early 2025, but that its newer data is only weak evidence of how much, partly because many developers no longer want to work without AI.
  • Speed can come at the cost of stability. Google's DORA research team found in its 2025 report on AI-assisted software development that AI adoption now has a positive relationship with delivery throughput, but software delivery instability continues to rise. DORA describes AI as an amplifier of a team's existing strengths and weaknesses.

The lesson: measure your own team, measure outcomes, and measure speed and stability together.

Step by step

What to measure: throughput, stability, quality and cost

Step 1: Decide what "productive" means for your team

Write one sentence: what outcome should AI improve? For example:

  • "Ship client features faster without more production incidents."
  • "Clear the bug backlog without hiring."
  • "Deliver more fixed-scope projects per quarter with the same team."

Every metric you pick should connect to that sentence.

Step 2: Use DORA's delivery metrics as the core

DORA's software delivery metrics are widely used and measure outcomes, not activity. DORA groups them into throughput and instability:

Throughput

  • Change lead time: time from a change being committed to it running in production.
  • Deployment frequency: how often you deploy.
  • Failed deployment recovery time: how long it takes to recover when a deployment fails.

Instability

  • Change fail rate: share of deployments that need urgent follow-up, such as a rollback or hotfix.
  • Deployment rework rate: share of deployments that are unplanned and caused by a production incident.

If throughput goes up and instability goes up too, AI is moving the problem downstream, not solving it.

Step 3: Add the AI-specific signals

AI changes where time goes. These measures show whether it's helping or just shifting work:

  • Review time per change. If AI produces more code, does review become the bottleneck?
  • Rework rate. How often is AI-assisted work reopened, reverted or rewritten within a few weeks?
  • Tests per change. Is test coverage keeping pace with code volume?
  • Cost per task. Tokens and tool spend per completed task, alongside people's time.
  • Plan accuracy. For agent workflows: how often does the approved plan survive contact with the code?

Step 4: Add developer experience

Numbers miss things. The SPACE framework (from researchers at GitHub, Microsoft Research and the University of Victoria, published in 2021) reminds teams to look at satisfaction and well-being, performance, activity, communication and collaboration, and efficiency and flow. A short monthly survey works:

  • Did AI tools help or get in the way this month?
  • How much time did you spend reviewing or fixing AI output?
  • Where did you feel blocked?

Step 5: Set a baseline, then compare like with like

Collect four to six weeks of data before a change in tools or process. Afterwards, compare similar work over a similar period. Don't compare a quiet month with a release month, or a greenfield project with legacy maintenance.

Step 6: Review monthly and act on it

Look at the metrics together once a month. Typical actions:

  • review time rising → smaller changes, better plans, more automated tests
  • rework rising → stricter plan approval before coding
  • cost per task rising → check which tasks run long, and why

Metrics to avoid as targets

MetricWhy it misleads
Lines of codeAI makes code cheap to produce; more code means more to review and maintain
Suggestion acceptance rateAccepted suggestions can still be wrong or reworked later
Number of pull requestsEasy to inflate by splitting work
Hours saved (self-reported)People's estimates of AI speedup can be unreliable
Story pointsTeams re-estimate, so points drift

These can be useful context. They just shouldn't be the goal.

Common mistakes

  1. No baseline. Without "before" data, every result is an anecdote.
  2. Measuring speed alone. Faster delivery with more incidents isn't a win.
  3. Trusting self-reports. Ask how people feel, but check it against delivery data.
  4. Measuring individuals instead of teams. Delivery is a team outcome; individual metrics invite gaming.
  5. Ignoring cost. Agent runs cost money. Without cost per task, you can't price work or compare options.
  6. Deciding too early. The first weeks with a new tool include learning time.

How Devfab helps

Devfab logs the data most teams struggle to collect. Dev agents update ticket status as they work, the QA agent records test results, and the cost of each run is logged and shown per task and per project. The Team Delivery Report shows delivery performance across the team, so you can track throughput, rework and cost from one place instead of stitching together several tools.

Checklist

  • [ ] One sentence on what AI should improve
  • [ ] DORA throughput metrics: lead time, deploy frequency, recovery time
  • [ ] DORA instability metrics: change fail rate, rework rate
  • [ ] AI signals: review time, rework, tests per change, cost per task
  • [ ] Monthly developer experience survey
  • [ ] Four to six weeks of baseline data
  • [ ] Like-for-like comparison after the change
  • [ ] Monthly review with actions

FAQ

What is the best metric for AI developer productivity?

There isn't one. Use a small set that covers speed and stability together, such as change lead time, deployment frequency, change fail rate and rework, plus cost per task. A single metric is easy to game and hides trade-offs.

Are lines of code or AI acceptance rates good productivity metrics?

No. They measure activity, not outcomes. More code can mean more to review and maintain, and accepted suggestions can still be wrong or reworked later.

Does AI actually make developers faster?

The evidence is mixed and changing. A 2025 METR randomized study found experienced open-source developers took 19% longer with AI on their own repositories, though they expected a speedup. METR's 2026 follow-up suggests speedups are likely larger now but says its data is weak evidence of their size. Measure your own team rather than relying on general claims.

How long should we measure before deciding?

Collect at least four to six weeks of baseline data before changing tools, and compare similar work over a similar period afterward. Shorter windows are dominated by learning effects and unusual weeks.

Frequently asked questions

What is the best metric for AI developer productivity?

There isn't one. Use a small set that covers speed and stability together, such as change lead time, deployment frequency, change fail rate and rework, plus cost per task. A single metric is easy to game and hides trade-offs.

Are lines of code or AI acceptance rates good productivity metrics?

No. They measure activity, not outcomes. More code can mean more to review and maintain, and accepted suggestions can still be wrong or reworked later.

Does AI actually make developers faster?

The evidence is mixed and changing. A 2025 METR randomized study found experienced open-source developers took 19% longer with AI on their own repositories, though they expected a speedup. METR's 2026 follow-up suggests speedups are likely larger now but says its data is weak evidence of their size. Measure your own team rather than relying on general claims.

How long should we measure before deciding?

Collect at least four to six weeks of baseline data before changing tools, and compare similar work over a similar period afterward. Shorter windows are dominated by learning effects and unusual weeks.