Worked example: a team spends $100 on model calls during a week and opens 20 pull requests. Eight are merged by the end of that week. Cost per opened PR is $5; cost per merged PR is $12.50 for that accounting window. These fictional figures use the same spending and different denominators. Neither includes human review time.
In episode 76, at 4:33, Sonar CTO Andrea Malagodi describes one engineer with over 500 PRs and low cost per PR, and another with high spending and few PRs. Examining their work revealed different problems: an agent workflow optimized for throughput versus difficult analysis requiring long AI turns. Malagodi cautions against quick judgments from the ratio.
Our recommendation is to compare similar work and record the accounting boundary. PR count does not measure correctness, useful outcomes, or business value. Cost per task asks the same denominator question about tasks rather than pull requests, and measuring whether AI is paying off considers those broader outcomes.
Hear it from the guest
“Without really understanding the context of the problems that are being worked on.”
Quotes lightly edited to remove filler words.
Sources
- Episode 76: Andrea Malagodi on cost per PR — Sonar's CTO describes the metric and cautions against judging engineers without understanding their work; the arithmetic below is illustrative.