The problem with this approach is twofold.
- The AI doesn't know what anything is either. It can annotate faster than you, but if it is all wrong, that doesn't help.
- The primary reason the code is bad, and something the AI is particularly weak at without a human doing much of the thinking for it is architecture. Working your way through ship-of-theseus-style isn't going to address the fundamental reason the code is difficult to work with. The architecture.