Journal / Process

Measuring AI engineering output: LOC vs verified features shipped.

Measuring software velocity by lines of code (LOC) or pull request volume was always problematic. In the age of AI coding agents, it is completely broken.

RL
RBB LAB
Studio
Published 31 Aug 2026 7 min read
met:loc RBB/LAB PROCESS RBB LAB · JOURNAL 7 MIN READ

AI coding tools make generating 1,000 lines of code trivial. Consequently, engineering managers who look at PR size or commit counts conclude productivity has tripled overnight.

In reality, unvetted AI code shifts engineering bottlenecks from writing code to reviewing code. When developers submit massive AI-generated PRs without thorough specification or self-testing, code review queues back up and production bug rates increase.

5x
Code Volume Inflation
0
Value in Unverified LOC
3
Modern Velocity Metrics

Why Flawed Metrics Mislead Engineering Teams

Legacy Metric AI Flaw Modern AI-Native Metric
Lines of Code (LOC) AI models generate verbose boilerplate effortlessly Verified features merged to production
Pull Request Count Splitting AI noise into small PRs inflates counts PR review queue dwell time
Commit Frequency Automated AI tool calls produce hundreds of commits Mean time to production recovery (MTTR)
Code is a cost, not an asset. The ideal AI engineering outcome is achieving maximum business capability with the fewest lines of maintainable code.

Three Metrics That Actually Matter

1. Verification Lead Time: The duration from when an AI agent generates code to when a human engineer verifies and merges it.

2. Rework Rate: The percentage of merged AI-assisted code modified or rewritten within 30 days due to edge-case bugs.

3. Spec-to-Production Cycle Time: Time elapsed from approving a spec document to deploying verified software.

Aligning Team Incentives

Rewarding engineers for concise, thoroughly tested code rather than raw generation volume ensures AI tools accelerate true product velocity rather than technical debt.

For more context on building effective small teams, read our reports on what an AI-native team looks like in 2026 and toolchain consolidation.