GitVelocity: AI Scoring of 50k PRs Reveals Insights on Code Complexity

How GitVelocity Works
GitVelocity connects to your GitHub, GitLab, or Bitbucket repositories and uses Claude (defaulting to Sonnet 4.6, which performs nearly as well as Opus 4.6 at lower cost) to analyze every merged pull request. Each PR receives a score from 0-100 across six dimensions:
- Scope (0-20)
- Architecture (0-20)
- Implementation (0-20)
- Risk (0-20)
- Quality (0-15)
- Performance/Security (0-5)
The six dimension scores are added together, then scaled by change size using a multiplier—a 10-line fix scores lower than a 500-line refactor even at the same complexity. The full formula is available at gitvelocity.dev/scoring-guide.
Key Findings from 50,000+ PRs
The analysis of over 50,000 PRs across multiple languages revealed several counterintuitive patterns:
- Big PRs don't automatically score high: An 800-line migration with low complexity scores worse than a 200-line architectural change. Size gets you the full multiplier, but the base score still has to earn it.
- You can't score well without tests: The quality dimension (0-15) won't give you points without test coverage. At similar experience levels, this was the clearest separator between engineers.
- Juniors started outscoring some seniors: They adopted AI tools faster and took on harder problems. Once they could see their own scores, they aimed higher.
- AI-generated code is scored the same as human-written code: Code is code. An engineer who uses AI to ship more complex work faster is more productive, and their scores reflect that.
Technical Implementation Details
Scoring consistency was the hardest technical problem. Without reference examples anchoring each dimension, Claude's scores drifted 15+ points between runs. The team solved this by creating 18 calibrated anchors (three per dimension at low/mid/high), which reduced variance to 2-4 points on the same PR.
The tool uses a BYOK (bring your own Anthropic API key) model and costs pennies per PR. No source code is stored—diffs are analyzed and discarded immediately.
Behavioral Impact and Team Features
The team observed what they call "the Fitbit effect"—the tool doesn't make you ship better code, but seeing the score does. Engineers started referencing their own scores in 1:1s unprompted, because the numbers matched what they already felt about their work.
Every score is fully visible to the engineer who wrote the PR, with per-dimension breakdowns and reasoning. There's no hidden dashboard that management sees and engineers don't.
GitVelocity recently added team benchmarks (gitvelocity.dev/demo/benchmarks). Once you're scoring PRs, you can see how your team compares to others across the dataset—about 1,000 engineers on 60 teams so far. Teams that were skeptical about individual scores got genuinely curious once they could measure themselves against the field.
📖 Read the full source: HN AI Agents
👀 See Also

Kontext CLI: Credential Broker for AI Coding Agents
Kontext CLI is a Go-based credential broker that provides AI coding agents with short-lived access tokens instead of long-lived API keys. It uses RFC 8693 token exchange, streams audit logs for every tool call, and works with Claude Code today.

Open-source methodology for agentic AI partnership with Claude
A developer has published a 25,000-word paper and open-sourced templates for building a persistent partnership system with Claude that uses shared memory across sessions, cognitive monitoring, and multi-AI consultation.

Claude Code Skill Converts Stitch Designs to Next.js with Zero Pixel Drift
A Claude Code skill converts Google Stitch AI designs to Next.js components with mandatory verification checkpoints to prevent pixel drift, preserving exact values and handling assets.
Claude Prototypes Real Estate Analysis App in 3 Hours Using Live Zillow Data via clawhub
A developer used Claude with the zillow-full clawhub tool to build a rental cash flow analysis app — pulling live Zillow API data, prototyping the UI around real JSON responses, and delivering a working prototype in one afternoon.