Engineering Management
Analytics
Coding agent productivity metrics that matter
September 24, 2026 - 2 minute read
Engineering Management
Analytics
September 24, 2026 - 2 minute read
Coding agent productivity metrics become misleading when activity stands in for outcomes. Token use, session count, lines changed, and pull requests opened show that a tool is active. They do not show whether software reached users faster or remained reliable after release.
A useful measurement plan connects agent-assisted work to delivery speed, quality, cost, and the organization's priorities. It also preserves a baseline so leaders can separate a tool's effect from staffing changes, seasonal demand, or a large migration.
Use measures that already describe the software delivery system. DORA's software delivery performance metrics cover throughput and instability through change lead time, deployment frequency, failed deployment recovery time, change fail rate, and deployment rework rate. Segment these metrics by service and work type before comparing teams.
For agent-assisted changes, add cycle time from accepted task to merged pull request, review wait time, and time spent on rework. Pair speed with escaped defects, rollbacks, incidents, and failed checks. Faster implementation with slower review or more production recovery is a transfer of work, not a productivity gain.
Compare similar periods and task classes. A documentation sweep should not be measured against a payment migration. Use a pilot group and a credible baseline where possible, then annotate changes to policy, model choice, staffing, and CI capacity that could alter the result.
Measure cost per accepted change or completed task rather than cost per session. Include model usage, compute, reviewer time, and reruns caused by failed validation. A cheap session that produces an abandoned patch created activity without delivered value.
Factory's cost and productivity guidance separates exported activity metrics from hosted cost estimates, then recommends correlating both with issues, pull requests, incidents, and test coverage. This keeps telemetry useful without pretending that file or tool counts establish correctness.
Agent Effectiveness connects Factory sessions to cycle time, work intent, and shipped artifacts. Its output view classifies work such as feature engineering, maintenance, bug fixing, and exploration. That distinction matters because an organization can increase throughput while neglecting planned product work.
Review trends with engineers and code owners, not only in an executive dashboard. A rising change-request rate may point to weak task specifications. High review wait time may mean agent output exceeds reviewer capacity. Repeated test failures may identify missing local setup instructions or brittle CI.
Choose a small balanced scorecard for each rollout. Track one delivery measure, one quality measure, one cost measure, and one adoption measure. Define each measure, its source, and the decision it informs. Avoid combining them into a single productivity score that hides tradeoffs.
Revisit the measures after the pilot. Keep metrics that drive a concrete policy, staffing, or tooling decision. Retire those that reward visible activity or encourage counterproductive local targets. The goal is a clearer view of how agent-assisted work moves through the delivery system, not a larger number attached to individual engineers.
Start building