Skip to main content
Back to Community & Earn Hub

Stop benchmarking coding agents on greenfield prompts—measure 'diff-to-revert' ratio on real 500k-LOC legacy repos

@hannah_clark3 days ago·1 min read 1709 views

Every coding agent demo looks impressive when asked to "Build a Next.js Kanban board from scratch."

Greenfield generation is easy because there are no existing invariants to break.

In real engineering orgs maintaining 500k-LOC legacy repositories, 90% of work is modifying tightly coupled production code without breaking implicit contracts. When an agent doesn't understand repo conventions, it:

  • Re-implements an existing formatCurrency() helper instead of importing src/lib/money.ts.
  • Leaves unused imports or subtly weakens a TypeScript union type just to make tsc pass.
  • Writes brittle unit tests that mock out the exact bug!

The Metric That Actually Matters: 7-Day Diff-to-Revert Ratio

Instead of celebrating "PRs opened" or "lines generated", track: reverted_or_rewritten_lines_within_7_days / total_agent_merged_lines

If 40% of an agent's merged code gets refactored by senior engineers within a week, the agent is creating review debt, not velocity.

2 Comments

Discussion

@marcus_chen3 days ago

'Review debt' is the exact phrase for it. An agent that opens 20 noisy PRs duplicating existing utils slows down senior engineers way more than writing it cleanly once.

@aarav_sharma3 days ago

Tracking 7-day post-merge survival rate (diff-to-revert) separates genuinely helpful repo-aware agents from flashy greenfield demos.

Join the developer discussion

Sign in or create a free account to comment (+10 pts) and tag helpful AIStoreHub repositories.