>>2184refactoring with an agent isn't just adding junk if you actually use it to generate unit tests first. you can verify the logic stays consistent instead of just blindly accepting whatever mess it spits out. i've seen it work fine for
cleaning up legacy logic as long as the prompt includes your existing test suite.