← All articles

AI Agents Are Shipping Code. Can Your Metrics Keep Up?

Measure AI coding agents with separate signals for autonomy, accepted output, quality, delivery, and cost. A practical framework with Q2 2026 evidence.

Published Updated Read Time: 4 min
On this page

An AI coding agent can work for a long time without interruption and still fail on its first attempt, require substantial review, or never ship. Engineering leaders should measure autonomy separately from accepted output, delivery, quality, and cost.

What does AI agent autonomy measure?

Autonomy describes how often an agent continues a session without a human correction prompt or an interrupted tool call. It does not show whether the agent solved the task, produced code a team accepted, or improved delivery.

Track these outcomes separately:

  • Autonomy: sessions completed without a correction prompt or interrupted tool call.
  • First-pass success: tasks accepted without another prompt or a substantial rewrite.
  • Accepted output: agent-attributed changes that are reviewed and merged.
  • Delivery: elapsed time from task start to an accepted change or deployment.
  • Quality: reverts, defects, incidents, and rework observed over a stated follow-up period.
  • Cost: tool and model spend per accepted change, with the included telemetry and exclusions disclosed.

A high autonomy rate can coexist with low first-pass success. Treating one as a proxy for the other hides the work required to get from an agent session to a reliable change.

What does Weave's Q2 2026 research show?

Weave's Q2 2026 AI Impact Report pooled 79,518 AI-agent sessions. It reports that 93% completed without a correction prompt or interrupted tool call. In the same population, 3.5% succeeded on the first prompt and sessions averaged 3.7 prompts.

Those figures describe different parts of the workflow: an agent may continue without interruption and still need several prompts. Autonomy is not first-pass success, accepted work, or proof of productivity.

The report also presents a separate cost-and-outcome analysis of 21,907 sessions with both trace and cost telemetry. In that cohort, $26 of every $100 in session spend was associated with work that completed and merged. This is a cohort-specific share of spend, not savings, profit, or a universal return on investment. Do not combine its denominator with the 79,518-session autonomy result.

Coverage matters. The report says about 41% of agent-session outcomes are unclassified; completion and failure rates are calculated over classified outcomes. Show each metric's denominator and missing-data rate, and do not treat unclassified sessions as successful or failed.

How should a team evaluate coding agents?

Use a scorecard that connects tool activity to work a team accepts:

Scroll horizontally if needed →

DimensionUseful measureGuardrail
AutonomySessions completed without correction prompts or interrupted tool callsReport it beside task completion and first-pass success
Accepted outputAgent-attributed changes accepted and mergedDefine attribution rules and show the share of work with usable telemetry
DeliveryTime to an accepted change or deploymentCompare similar task types and repository conditions
QualityReverts, defects, incidents, and rework after mergeSet the observation window and account for outcomes that have not matured
Review effortReview time, rounds, and follow-up changes where capturedVerify that the source data covers the team's review workflow
CostAttributed spend per accepted or merged changeState whether seat costs, API usage, review, and rework are included

This is an evaluation framework, not a claim that every tool or customer exposes each field. For example, session cost and merged-PR attribution depend on connected traces, source-control data, and cost coverage.

How can you compare an agent pilot fairly?

  1. Choose a task family, repositories, and a fixed observation window. Record task complexity and the team's starting delivery and quality measures.
  2. Separate autonomous-agent sessions from developer-assisted work using a documented attribution rule. Keep ambiguous or missing attribution visible.
  3. Measure interruptions and prompt count alongside task completion, review, and accepted changes. Do not use generated lines or PR volume as a success measure.
  4. Follow merged changes long enough to observe reverts, defects, and rework. Recent work will have less time to accumulate these outcomes.
  5. Report the sample size, telemetry coverage, and missing outcomes for every metric. Treat differences as observed associations unless the comparison design supports a causal conclusion.

The Q2 report's Claude Code and Cursor samples have very different sizes, and its completion rates use classified outcomes. They are workflow benchmarks, not a fair ranking of the tools. A team-level pilot should make the same denominator and task-mix limits explicit.

What should buyers verify in an analytics platform?

Ask which agent and editor events are connected, how they are joined to source-control changes, and which cost and quality fields are actually available for your tools. Weave's report documents session-level telemetry and session-to-merge outcome analysis in measured cohorts; it does not establish identical per-agent review-time, defect, or cost-per-accepted-change coverage for every account.

See the Cursor integration, GitHub Copilot integration, and AI impact measurement framework for related coverage and measurement guidance. For spend and output definitions, read the AI ROI methodology.

Which Weave?

This article is about Weave, the engineering intelligence platform at weaveos.com. It is not Weights & Biases Weave, an open-source toolkit for evaluating and monitoring machine-learning applications.

Sources

See the work behind your AI spend

Compare code output, AI cost and quality, then inspect the work behind the trend.

Book a demo