Skip to content

THE ENGINEERING AI ROI GUIDE

Measure AI ROI
in Engineering.

AI ROI starts with a business outcome—not an adoption target. Track where AI is used through AI Leverage, then measure what changes in engineering Velocity, Quality, and Efficiency. Choose one metric to improve and use the others as guardrails to decide whether to expand your AI investment.

Build your ROI framework

CONNECT AI USE TO BUSINESS RESULTS

The Larridin AI ROI framework

Track AI Leverage on the input side. Measure what changes in Velocity, Quality, and Efficiency.

OUTCOME

Efficiency

What does delivery cost?

AI spend · tokens · engineering effortExplore AI spend ↗
Example AI Leverage metrics
AI adoption
Active AI users and usage frequency across engineering.
AI Code Share
Share of attributable added code that is AI-assisted or agent-authored.
AI reviews
AI vs. Human Review tracks bot and human participation. Verify which bots are AI tools.
AI SRE usage · team-tracked
Track AI-assisted incident response and operational tasks in your incident system.
Agent Effectiveness
Session quality, verification practices, and task outcomes—not just session counts.
AI Output Share
Share of Engineering Output attributed to AI-assisted or agent-authored work.

More AI Leverage is not ROI. Improve a business-relevant outcome while protecting the others.

01

ALIGN ON THE OUTCOME

Align Engineering with business goals

Agree with Product and Finance on the outcome, Engineering’s role, an owner, and a review date.

Deliver customer commitments soonerExpand roadmap capacityReduce failure costsComplete a migration within budget

Avoid Making AI adoption or code volume the goal. Neither proves business value.

02

ALIGN METRICS WITH OUTCOMES

Align engineering metrics with your business outcome

Choose Velocity, Quality, and Efficiency metrics that show progress toward the outcome you agreed on.

Example metrics

VELOCITY

Measure meaningful output

Engineering Output
Complexity-weighted merged work, adjusted for size and reduced for missing tests and AI slop.
Output / week / eng
Output per contributing engineer across complete weeks.
PR Review Cycle Time
Elapsed time from PR open to merge.
Don’t count PRs or lines of code as productivity.

Check complexity, quality, and delivery—not just volume.

More velocity metrics
Change Lead Time · DORA
Time from code change to production.
Deployment Frequency · DORA
How often changes reach the target environment.
Review and Merge Time
Where changes wait before merging.
Innovation Rate
Share of shipped work devoted to features versus bug fixes and maintenance.
Features shipped · team-tracked
Customer-ready features delivered against the roadmap. Define “shipped” and compare scope—not counts alone.

Output is assessed work, not hours saved or business value. Compare consistent teams, repositories, and complexity mix. Output / week / eng counts engineers with positive Output each week. PR Review Cycle Time is elapsed time, not hands-on work.

Engineering Output definition ↗

QUALITY

Track early risks and later failures

Leading: AI Slop Index
Low-quality, churn-prone code patterns.
Leading: Unit Tests
Share of test-warranting PRs with unit tests.
Lagging: 30D / 90D Rework
Added code rewritten, reverted, or deleted within the window.
Don’t judge quality at merge.

Follow early signals with mature rework and failure data. Rework is not always a defect.

More quality metrics
Change Failure Rate · DORA
Lagging: share of deployments causing failures or incidents.
Time to Restore Service · DORA
Lagging: recovery time after a failed deployment.
Rubber Stamp Rate
Leading: reviews without substantive human discussion or change requests.
Review Pushback
Leading: share of merged PRs with changes requested.
Comment Quality
Leading: share of human review comments classified as substantive.
PR Size
Leading: lines changed per PR; a reviewability signal, not productivity.

AI Slop Index: 1–5, lower is better. Unit Tests is not line coverage. Rubber Stamp Rate is a discussion proxy, not proof of careless review. Recent rework is provisional.

Quality definitions ↗

EFFICIENCY

Measure token use and engineering effort

Token Efficiency
Input/output tokens; cached versus fresh input.
Review Speed
Time to First Review and Time to First Approval.
WorkGraph: Effort Split
Observed attention across development, design, code quality, incidents, and other work.
Don’t optimize the token bill alone.

Include review and rework. Wait times aren’t labor hours; attention shares aren’t savings.

More efficiency metrics
Cost per Output
AI cost per unit of Engineering Output, on a consistent cost basis.
Cache Hit Rate
Cached input reads as a share of fresh plus cached input.
Input Tokens
Fresh and cached input token volume.
Output Tokens
Generated token volume.
Uncached Input %
Share of input tokens not served from cache.
Deploy Duration P50 / P95
Typical and tail deployment duration.

Cache Hit Rate excludes cache writes; it is not a savings percentage. Review waits overlap—don’t add them. Cost per Output uses the selected AI cost basis, not total delivery cost.

WorkGraph definition ↗
03

SET YOUR TARGET

Pick a primary metric aligned with your goal

Optimize one outcome pillar; use the others as guardrails. Agree on the baseline, scope, and review period before rollout.

BUSINESS GOAL

Expand roadmap capacity.

PRIMARY METRIC

Increase Output / week / eng.

GUARDRAILS

No increase in mature 30D Rework. Keep AI Cost per Output within budget.

Avoid Picking metrics after seeing the results. Before-and-after gains alone don’t prove AI’s contribution; account for staffing, scope, and other changes.

ILLUSTRATIVE COMPANY & DATA

Quality scores improved.
Rework still rose.

A software company expands AI-assisted development with required tests and human review. Quality is the priority; AI spend must stay within budget.

AI ROI Dashboard

Board review · not a customer result
BUSINESS GOAL

Reduce customer-impacting defects
within the existing AI budget.

AI LEVERAGE · INPUTRollout: AI-assisted development with required tests and human review.
Baseline vs. next 8 weeks · equal 8-week periods · same team, repositories & cost coverage · mature 30D rework cohorts
OPTIMIZATION PILLAR · QUALITY

Quality Score

72 → 84

Score / 100 · higher is better

Target ≥ 80 met
GUARDRAIL PILLAR · VELOCITY

Engineering Output

+25%

8,000 → 10,000 · complexity & quality adjusted

Floor ≥ 8,000 held
GUARDRAIL PILLAR · EFFICIENCY

AI spend

$12k → $12.12k

Up 1% · same scope and cost basis

Budget ≤ $12,500 held

SECONDARY METRICS · BASELINE → REVIEW

30D Rework

12% → 13%Limit ≤ 12% breached · mature cohorts

SLA uptime

99.90% → 99.95%Service availability

Code Review Cycle Time

24 h → 23.5 hPR open → merge · elapsed time

AI Slop Index

3.2 → 2.4Lower is better

More Output went to bug fixes & KTLO

Innovation Rate · share of Engineering Output

FeaturesBug fixesKTLO
Baseline
Review

Bug fixes + KTLO: 40% → 55%.
Feature Output fell: 4,800 → 4,500.

KTLO = maintenance. All Output classified in this example.

Efficiency guardrails held

GuardrailBaselineReview
Time to First ReviewWait ≤ 6 hours6 h5.8 h
Cache Hit RateFloor ≥ 97%97.4%97.8%

These guardrails held. Review wait is not hands-on effort.

BOARD TAKEAWAY

The primary target was met, but the rework guardrail failed. Added Output went to bug fixes and maintenance; feature Output fell.

DECISION

Keep the AI rollout at its current scope. Investigate rework and confirm whether the maintenance shift was planned before expanding.

Owner: VP Engineering · review again in 30 days
Calculate financial ROI

ROI = (incremental realized benefit − incremental investment) ÷ incremental investment. Validate AI’s contribution and use the same period. Include tooling, enablement, and added human verification costs. Don’t double-count benefits or treat estimated capacity as realized savings.

IMPROVE THE WHOLE SDLC

Find and fix delivery bottlenecks

PLAN & DESIGN

Clarify the work

Check WorkGraph’s design and collaboration effort.

Improve specs and acceptance criteria.
BUILD

Improve generation

Check Output, token use, AI Slop Index, and Unit Tests.

Improve context and task boundaries.
REVIEW

Reduce review waits

Check Review Speed, PR Size, and Rubber Stamp Rate.

Assign owners; keep changes reviewable.
RELEASE & OPERATE

Unblock releases

Check Change Lead Time, Deployment Frequency, and failures.

Remove avoidable waits; preserve quality gates.

Fix the constraint—not just coding speed. These signals are not additive time buckets.

LARRIDIN

Build your engineering ROI plan

Use Larridin’s Output, quality, cost, and SDLC metrics to measure progress against your business goals.

Build your plan with Larridin