Using AI to Refactor Large Codebases

How I used Claude Code to refactor 50K+ lines. Strategy, prompts, and pitfalls.