How to measure developer productivity?
You should measure developer productivity at the team level with three kinds of data: system metrics, developer experience surveys, and business outcomes. System metrics show how work flows from idea to production, surveys usually answer the “why” behind each metric, and business outcomes show whether the work moves the business forward.
System metrics
System metrics show where work waits. The five DORA software delivery metrics are a good baseline: change lead time, deployment frequency, and failed deployment recovery time measure throughput, while change fail rate and deployment rework rate measure instability. Flow metrics like pull request review time, work in progress, and batch size explain those numbers.
Read speed and stability together. A team that deploys twice as often but breaks production twice as often hasn’t improved.
Split those metrics by who did the work: engineers alone, engineers using AI assistants, or coding agents that open pull requests on their own. One blended number can hide an issue you wouldn’t have found otherwise.
Watch review metrics once AI review agents join, because a bot’s first comment can make time to first review look instant while the pull request still waits for a human. Swarmia flags agent reviews separately and shows each review agent’s effect on time to first review, time in review, and cycle time.
Developer experience surveys
Surveys catch what system data can’t see: interruptions, unclear requirements, slow local builds, or a review process everyone dreads. They also explain the metrics. Cycle time tells you work is slow, and a survey tells you engineers lose afternoons to flaky tests.
Ask about focus time, ease of code review, confidence in releases, clarity of priorities, and tooling. With agents in the mix, also ask how much time goes to reviewing and steering agent work. Keep surveys short, run them regularly, and share the results and action points with everyone.
Use surveys to find friction, not to measure speed. People misjudge their own pace: in METR’s 2025 trial, experienced open-source contributors using early-2025 AI coding assistants took 19% longer on tasks, yet afterward estimated AI had made them about 20% faster.
Business outcomes
Business outcomes keep system metrics and surveys honest. A team can have fast cycle times and happy engineers while spending most of its time on unplanned work or projects nobody needs.
Track where engineering time goes (roadmap work, maintenance, and unplanned work), plus progress and cost for key initiatives, AI tool and agent spend included. That’s what connects day-to-day work to the investment decisions leaders make.
CDQ used Swarmia’s investment balance to find that only 38% of its engineering time went to “product impact,” meaning new features and improvements. The team set a goal of 50–60% and has since reached it.
How to read the three together
One data source rarely tells you what to fix. Combined, they point at specific problems:
- Cycle time is climbing, and survey responses name code review as the biggest source of friction. The constraint is review capacity, not coding speed, and agents that open more pull requests make it worse.
- Deployment frequency looks great, but most engineering time goes to bugs and unplanned work. The team is fast at the wrong things, and the roadmap slips.
- Delivery metrics are steady, but one team’s survey scores drop two quarters in a row. That’s an early warning about burnout or attrition, months before it shows up in delivery.
What not to measure
The worst metrics are easy to count and easy to game, and AI assistants and agents make many of them go up on their own.
| Metric | Why it misleads | Measure this instead |
|---|---|---|
| Lines of code | Rewards verbose code, and AI makes it nearly free. Deleting code is often the most useful work. | Whether changes reach production and stay there |
| Commits or pull requests per engineer | Easy to inflate by splitting work, and one engineer can now run several agents at once. Says nothing about value or quality. | Team throughput, batch size, and change lead time |
| Agent pull requests opened | Agents can open pull requests faster than anyone reviews them, and some get closed without merging. | Share of agent pull requests merged, and how often they cause failures or rework |
| Individual rankings and leaderboards | Punish reviews, mentoring, and unblocking teammates. People stop collaborating and start competing. | Team-level flow metrics and survey results |
| Story points as output | Points are estimates, not results, and comparing them across teams invites inflation. | Points for planning inside one team only |
| Share of code written by AI | Measures tool usage, not outcomes. As a target, it rewards merging AI output without enough human review. | Speed and quality of assisted and agent work compared with the rest |
Individual data still has a place, like an engineer reflecting on their own week or a manager using it as context in a one-on-one. It stops being useful the moment it becomes a way to stack rank people.
How to get started
- Pick a handful of metrics that represent your biggest bottlenecks. Three to five system metrics, one short survey, and a view of where time goes might be enough to get you started.
- Measure at the team, system, and org level, and make the data visible to the engineers it describes.
- Use historical data to establish a baseline, so you can tell whether any change you made has actually helped.
- Review the data with each team, and let the team set their own targets.
- Check again after a few weeks. Keep what worked, and drop metrics nobody uses.
