AIThis post was created with the assistance of artificial intelligence (AI).

In the new era of agentic software development, vanity metrics don’t cut it anymore.

Counting tokens, prompts, or “AI commits” might feel like progress, but none of them measure what truly matters: shipped, functional code.

That’s why a growing number of AI engineering teams are standardizing on one north-star metric: merged pull requests per agent-hour.


Why This Metric Matters

This simple ratio — the number of successfully merged PRs divided by total AI agent runtime hours — captures the only output that counts: code that survives review and CI to land in main.

It aligns everyone on the same question:

“How much working code are our AI systems actually delivering per unit of compute time?”

By focusing on outcomes instead of activity, the metric keeps teams grounded in real productivity rather than synthetic gains.


API FRESHWATER MASTER TEST KIT 800-Test Freshwater Aquarium Water Master Test Kit, White, Single, Multi-colored

API FRESHWATER MASTER TEST KIT 800-Test Freshwater Aquarium Water Master Test Kit, White, Single, Multi-colored

  • Kit Includes: 800-test freshwater aquarium test kit with solutions
  • Water Quality Monitoring: Prevents harmful invisible water issues
  • Vital Parameters: Measures pH, high pH, ammonia, nitrite, nitrate

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

The Formula

Merged PRs per agent-hour = Valid merged PRs / Total agent runtime hours

Key Definitions

  • Valid merged PRs: Non-draft pull requests that merged into main, passed CI, earned at least one human approval, and weren’t reverted within 7 days.
  • Agent runtime hours: The wall-clock duration across all AI agent runs (planning, coding, testing, reviewing) contributing to those PRs.

Optional filters tighten quality:

  • Exclude dependency bumps or chores unless they include test updates.
  • Require ≥15 lines of code changed or ≥2 files touched.

50 AI Workflows for Engineers: From Debugging to System Design, Code Review & Engineering Automation

50 AI Workflows for Engineers: From Debugging to System Design, Code Review & Engineering Automation

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Why It’s Hard to Game

Unlike prompt counts or LOC, this metric resists inflation:

  • No credit for broken code: PRs reverted within a week don’t count.
  • No credit for trivial tasks: Small or scripted edits are excluded.
  • No hiding inefficiency: Long-running agents with few merges lower the score directly.

It’s the closest you can get to a truth serum for AI-assisted engineering.


Weekly Productivity Dashboard - 8.5" x 11" Dashboard Desk Notepad Has 6 Focus Areas to List Tasks for Goals, Projects, Clients, Academic or Meal-Organize Your Daily Work Efficiently, 54 Weeks, Black

Weekly Productivity Dashboard – 8.5" x 11" Dashboard Desk Notepad Has 6 Focus Areas to List Tasks for Goals, Projects, Clients, Academic or Meal-Organize Your Daily Work Efficiently, 54 Weeks, Black

  • Productivity Boost: Organize and prioritize tasks effectively
  • Undated Weekly Planner: Start any week, 54-week span
  • Versatile Scheduling: Plan for work, school, or personal use

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

What It Reveals

  • Efficiency: How effectively your AI stack converts runtime into merged work.
  • Model performance: Comparing variants (e.g., GPT-5 vs Claude vs local SLMs) on equal footing.
  • Prompt pack quality: Whether new task flows actually ship more PRs, not just produce more code.
  • Human-AI synergy: Whether developer-in-the-loop patterns accelerate or slow the merge rate.

A consistently rising merged-per-hour metric means the system is learning — both human and machine sides.


Securing the CI/CD Pipeline: Best Practices for DevSecOps

Securing the CI/CD Pipeline: Best Practices for DevSecOps

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

How to Implement It in Practice

  1. Tag every agent run with start/stop timestamps, model ID, repo, and PR number.
  2. Pull PR data from GitHub/GitLab APIs: merged_at, CI status, labels, approvals, and reverts.
  3. Filter valid PRs using the quality gates above.
  4. Aggregate runtime per PR (sum if multiple runs contributed).
  5. Compute and visualize:
    • Top-line metric (daily/weekly)
    • 7-day revert rate
    • Time-to-merge percentiles (p50/p90)
  6. Slice results by model, repo, and prompt pack to surface what’s driving success.
  7. Add guardrails: If revert rate exceeds 5% or merges drop >20% week-over-week, investigate before scaling experiments.

A Minimal Dashboard View

MetricDefinitionGoal
Merged PRs / Agent-HourPrimary efficiency signal↑ Over Time
7-Day Revert RateStability and code quality< 5%
CI Pass-on-First-TryReliability> 90%
Median Time-to-MergeFlow speed↓ Over Time

The Power of a Single Ratio

By grounding progress in shipped code, merged PRs per agent-hour becomes a universal benchmark across teams, tools, and models. It’s transparent, portable, and brutally honest — everything a scaling metric should be.

In the coming wave of agentic AI development, this ratio may become what “click-through rate” was to early web advertising: the one number that reveals whether your automation actually works.


Bottom line:
If your AI engineering system can raise its merged PRs per agent-hour without sacrificing quality, you’re not just building faster — you’re building smarter.

You May Also Like

The deployment. How the AI labs verticallyintegrated into the serviceslayer — the Palantir modelat scale.

AIThis post was created with the assistance of artificial intelligence (AI).The deployment.…

Turning Data Center Waste Heat into Urban District Heating Networks

AIThis post was created with the assistance of artificial intelligence (AI).Overview: Recovering…

Belgium Considers Energy Caps for AI Data Centers

AIThis post was created with the assistance of artificial intelligence (AI).Executive Summary…

Forward-Deployed: The Integration Wall, and the Role That Now Pays $700K to Climb It

AIThis post was created with the assistance of artificial intelligence (AI).By Thorsten…