Can this be used to refactor a codebase? Or is it meant to be used on just a single file?
What's refactoring? Usually when we say refactoring we want to get from one state into another - like making code testable. Do you want AI to do this for you? Do you trust that it will do a good job?
Having it create a testing suite definitely helps. But it makes fewer mistakes than I would normally make... it's not perfect but it IS way better than me.