Course outline
The CTO's playbook for AI coding agents · Module 2: Measuring impact
Vanity metrics to avoid: why the easy numbers lie
Lines of code, acceptance rate, % of AI-written code and PR count are easy to collect and easy to game. Learn why they mislead and what question each one should be replaced by.
Lesson 5 / 20 · ⏱ 8 min
The first dashboard most organizations build after rolling out coding agents is the one the vendor console gives them for free: suggestions accepted, lines generated, active users. It looks like proof. It is mostly a measure of activity, and activity is the one thing agents make cheap.
Activity is not outcome
- ActivityLines, suggestions, PRs opened
- OutputChanges merged and deployed
- OutcomeWorking software users rely on
- ImpactRevenue, retention, risk reduced
An agent can multiply activity by ten without moving anything on the right. If your metrics stop at the first box, you will report a triumph while delivery stays flat, or gets worse.
The usual suspects
| Metric | Why it’s tempting | Why it misleads |
|---|---|---|
| Lines of code | Free, precise, goes up fast | More code is more surface to review, test and maintain. Deleting code is often the best work. |
| Suggestion acceptance rate | Shipped by every tool console | Accepting is not keeping. Code accepted then rewritten an hour later still counts. |
| % of code written by AI | Sounds like a transformation KPI | Says nothing about value. It rises when people paste boilerplate, and falls when they do hard design work. |
| PR count | Easy to pull from your forge | Split one change into five PRs and you’ve “quintupled” output while slowing reviewers down. |
| Active users, sessions | Proves people opened the tool | Adoption is a precondition, not a result. Logging in is not shipping. |
Myth vs reality
Flip each card before you read the back. Ask yourself which of these your own leadership deck currently relies on.
🃏 Five things your dashboard might be telling you
Tap a card to flip it
What to ask instead
Each vanity metric hides a real question. Keep the question, drop the number.
✕ Vanity number
- –Lines generated
- –Acceptance rate
- –% AI-authored code
- –PR count
- –Active seats
✓ The question behind it
- +Did we ship more working change per week?
- +Did the code survive review and stay in main?
- +Which kinds of work got faster, and which didn't?
- +Did lead time and review wait time go down?
- +Who uses it on real tasks, and who gave up, and why?
None of this means you throw usage telemetry away. Adoption data is useful diagnostically: it tells you where to look when outcomes don’t move. It just doesn’t belong on the slide that claims success. The next lesson builds the stack that does.
For the broader program view (owners, cadence, scorecard), see the developer productivity initiative guide. Here we stay on the decision a CTO has to defend.
Spot the vanity metric
🧠 Vanity or signal?
Score: 0 / 3
1. Your VP proposes a target: 'raise AI acceptance rate from 25% to 40% this quarter'. The main risk?
2. Which number is closest to an outcome?
3. Usage telemetry is still worth collecting because…
Before you move on
✅ Key takeaways
0 / 4 completed