If you are talking about having the copyrighted source code not be used to train an AI, you could look at the discussions surrounding a recent license change in the Reticulum project [1].
I had previously been curious about this, and made a post on HN that got limited attention [2], but if you are wanting your software to not be used to create training data for third-party models, it could be a little relevant.
It’s an interesting idea, but not open source, and IMO not particularly useful. It says the software can’t be used to harm humans. Folks, this is why philosophy is a required course. What does it mean to harm someone? Is using it to help someone get an abortion harmful? Is using it to make a self-defense weapon harmful? Is using it to automate a beer brewery harmful? Yes, if you’re anti-abortion, a pacifist, or a tea-totaler. No, if you’re not.
I had previously been curious about this, and made a post on HN that got limited attention [2], but if you are wanting your software to not be used to create training data for third-party models, it could be a little relevant.
[1]: https://github.com/markqvist/Reticulum?tab=License-1-ov-file...
[2]: https://news.ycombinator.com/item?id=43384196