Measuring an AI rollout without counting lines of code

When 255 engineers got AI coding tools, the first question was whether it was working. The easy answers (more commits, more lines, more merge requests) are exactly the ones AI inflates for free. This is the index I built to answer it with outcomes instead, what I learned building it, and how to start using it on your own teams.

The question

I led the rollout of AI coding tools across Bloomreach's engineering organization: about 255 engineers in four product groups, from a pilot to more than 160 engineers actively using the tools. Licences and API usage cost real money, and the question from leadership was fair: is this making us better?

The tempting way to answer is to count things. Commits per engineer, lines changed, merge requests merged. Those numbers are easy to collect, they go up and to the right, and since AI tools arrived they say almost nothing. An assistant that writes a hundred lines where twenty would do makes every volume metric look great. So does a habit of small commits, or a refactor. Volume is capacity, not productivity.

What I wanted to know was whether teams shipped more often, whether what they shipped broke less, and whether they recovered faster when it did. Those are the DORA metrics, and there was no consistent way to see them across four product groups with different pipelines, issue trackers and incident tools. So I built one: the Engineering Productivity Index, EPI.

What it measures

EPI reports each metric on its own, with a band (Concerning, Acceptable, Happy, Elite) and a 13-month trend, so you always see the same month last year.

  • Delivery (DORA): deployment frequency, lead time from commit to production, change failure rate, and time to restore after a serious incident.
  • Quality: rework rate (bug fixes as a share of feature and fix commits) and defects reported after a release.
  • Team health: bus factor (how many people cover 80% of the commits) and knowledge distribution (how much of the code more than one person touches).
  • AI, as its own lens: adoption (AI co-authored commits and merge requests, editor analytics), readiness (are repositories set up so AI tools can work well in them: tests, ticket references, a README or CLAUDE.md, CI) and spend per month.
  • Volume, as context only: merge requests, commits and lines per engineer are shown, but never banded or scored. They explain movements after a reorg or a tooling change; they are not a target.

The DORA metrics come from real events where possible: deployments from GitLab's deployments API or from a one-line call in any CI pipeline, incidents from GitLab or an incident export. What can't be measured yet can be entered by hand, and the dashboard marks it as manual.

How it works

EPI is a small Python package with no server and no database. Collectors run monthly (a scheduled CI job is enough) and write plain JSON and YAML files per product into a git repository. A scoring step turns those into per-metric bands, and a report generator renders a static HTML dashboard: an overview of all products, a page per product and a page per repository. Every page has a chat panel that gets that page's numbers as context, so a manager can ask "why did lead time go up last month?" without exporting anything.

Keeping the data as files in git was deliberate. Every number has a history, a reviewer can see exactly what changed, and nothing depends on a vendor's dashboard staying around.

What I learned

One number is one number too many. The first version had a composite score: 0 to 100 per product, built from weighted components, designed for a board-facing report. Teams experienced it as a grade, and a grade invites argument about the weights instead of conversation about the work. I removed it. Each metric now stands on its own, because one number hides exactly the trade-offs between speed, quality and sustainability that you want a team to talk about.

Don't put a band on a count. Merge requests per engineer and features shipped still had bands, so a team could be "Elite" at volume. Once AI tools made output cheap, that turned a count into a target. Volume is now reported without bands, as context next to the outcomes. The pull toward counting output is strong, especially when spend on AI tools has to be justified. I think it is the wrong instrument, and the "Recommended use" section in the repository is that view written down.

Measure teams, not people. Per-person commit counts are off by default. "Per engineer" charts are team totals divided by headcount, a rate, not a personal score. The moment a dashboard can rank individuals, it will be used to, and the team stops trusting it.

Introduce it with the managers, as their tool. Metrics work when a team owns them to find its own bottlenecks, and fail when they arrive as an evaluation. If a metric becomes a target, it gets gamed, and AI makes gaming volume metrics effortless.

Built with Claude Code

I don't write production code in my day job anymore, but I built EPI myself, with Claude Code as a pair programmer: the collectors, the scoring, the dashboard and the tests. It was also a useful way to feel what the engineers in the rollout were going through, including where the tools help and where they confidently produce something plausible and wrong.

Get started

EPI is open source under the MIT licence: github.com/mjmetter/EPI. It was extracted from internal work at Bloomreach and published with permission.

You can see the dashboard on synthetic example data in five minutes, without connecting anything:

git clone https://github.com/mjmetter/EPI.git && cd EPI
make setup && source .venv/bin/activate
generate-productivity-report --base-dir examples --output-dir reports
open reports/productivity.html

Then point it at one team. Copy repos.yaml.example to repos.yaml, list that team's repositories, set a GitLab token (Jira or Linear optional), and run the collectors for the last few months. Add record-dora-event to the team's deploy job so deployment frequency, lead time and change failure rate come from real events from then on.

How I would roll it out again:

  1. Start with the four DORA metrics and nothing else. Add quality, health and AI metrics when the team asks for them.
  2. Review it monthly with the team, not about the team. The trend starts the conversation; the band is not a verdict.
  3. Involve your works council or employee representation before you start. Engineering metrics are about people's work; agree up front on what is measured, and what isn't.

If you're rolling out AI tools and someone asks whether it's working, you'll want an answer that isn't a line count. Run the example tonight, try it on one team next month, and open an issue or a pull request if something doesn't fit how you work. I'd like to hear how it goes.

← all writing