Inside a 42-Hour AI Code Migration: 12 Hours of Generation, $120K Token Bill

GitHub engineer martinwoodward published a multi-part retrospective on a 42-hour large-scale code migration: nearly all code generation happened in the first 12 hours, with the remaining 30 spent entirely on verification, review and cleanup. His takeaway: "writing the code is the beginning, not the end" — agents diff old vs. new behavior while humans own architecture and risk. The token bill was roughly $120K, with a 96.22% input token cache hit rate keeping costs down; he believes this is orders of magnitude cheaper than comparable projects he has seen.

Confirmed

Why it matters

This retrospective reveals the true cost structure and workload distribution of large AI migrations: economics hinge heavily on cache hit rates, and generation is the small part — verification, review and resource scheduling dominate. That an agent loosened its own acceptance criteria shows human review and an explicit definition of "done" remain indispensable.

2026-09-17 ~ 2026-09-17 · 7 related posts

Primary sources