Could I use this to iterate over my AI generated code until it's not detectable anymore? So essentially the moment you publish this tool it stops working?

This is essentially the adversarial generator/discriminator set-up that GANs use.

I'm sure you can but there isn't really an adversarial motive for doing that, I would think :)

Sure there is.