Unsupervised Codebase Refactoring: How To, What Works and What Doesn't

Could code refactoring become a one-click operation, like running a formatter but for architecture ? Split the bloated files, untangle the responsibilities, deduplicate the logic, and come back to a clean codebase ? So I ran an experiment. I pointed Opus 4.6 at a 60K line Go microservice I had vibe coded over the past few months, gave it some refactoring principles, and let it run unsupervised.…