AI Services Market
AI Services Market › Use cases › Software & DevOps
Software & DevOpsDone with Claude Nov 2, 2026

Bulk-refactor a 1M-line codebase for stricter compiler settings

Claude systematically converts whole classes of compiler errors into cleaner code, using custom skills or scripts, across 200K+ lines in a large codebase. · Nov 2, 2026

Bulk-refactor a 1M-line codebase for stricter compiler settings preview
What They Did
On a mono-repo of about 50 projects and over 1M lines, they tighten compiler settings, which surfaces tens of thousands of errors. Claude takes whole classes of errors and converts them to cleaner code, using the team's custom skills or by writing new scripts. They sort refactors into logic, performance, and cosmetic buckets, and bulk-run only the latter two.
How It Went
Claude handled changes across 200K+ lines that the author calls near impossible for a human in an IDE. The team also ported all code to dotnet 10 LTS and can upgrade dependencies wholesale. No timings are given.
Worth Knowing
Keep business-logic changes out of bulk runs and in dedicated sessions, since the domain is complex and breakages are unaffordable; bulk-refactor only performance and cosmetic changes.
Try it yourself with Claude

In the codebase at [path], I want to enable the stricter compiler setting [flag or warning level]. Build the project, group the resulting errors by type, and pick the most common type first. Write a reusable script or skill that fixes that whole class of error safely, apply it, and rebuild to confirm the error count dropped and tests still pass. Repeat for the next error type, and stop when the build is clean or you've done [number] rounds. Show me the diff summary before you commit anything.

Read the original ↗