We really need to have an open source sw license that specifically forbid any use of the code by AIs
At best that would be like a Don't Track Me flag. Some will follow it, though ironically it is also useful for fingerprinting and can signal you may be doing something worth tracking.