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

The Companies Cutting Headcount for AI Will Lose to the Ones Who Didn't
AI headcount cuts trade long-term institutional knowledge for short-term savings. Retaining teams and using AI to amplify their capability is the winning strategy.

RouteLLM Setup for Cost-Effective AI Task Routing
A Reddit user shares a Docker Compose configuration that combines Ollama's local Qwen3.5:4b model with GitHub Copilot via OpenWire, using RouteLLM to route complex tasks to GPT-4o while handling simpler tasks locally.

Local Voice Control Setup for AI Agents on Apple Silicon
Setup local voice control for AI agents using Parakeet STT and Kokoro TTS on Apple Silicon for fast and cloud-independent interactions.

OpenClaw Agent Gains Phone Call Capability Through Custom Skill
A developer created a custom skill for self-hosted OpenClaw agents that enables phone call functionality, allowing the agent to initiate calls based on triggers like build completions or server outages. The implementation provides voice interaction with full chat capabilities including web searches and alert setup.