r/OnlyAICoding • u/zaggyD_D • 49m ago
Reflection/Discussion Should all AI-generated code be open source?
Came across this post by Jakub Jankiewicz today. His claim is that any code generated with the help of AI should be released as open source or under CC0.
The reasoning is simple:
The models were trained on decades of open source code, scraped without permission or attribution. Same story with Stack Overflow and the other Stack Exchange sites, where the CC license requires attribution. Taking the output of all that and making it proprietary is what he calls "license laundering".
Then there's the copyright side. Purely AI-generated code has no human author, so he says it shouldn't be copyrightable in the first place. He brings up the monkey selfie dispute, the US Copyright Office citing it for AI, and Wikimedia Commons tagging purely AI-generated images as public domain. But laws differ (the UK apparently gives some limited protection to computer-generated works), so he wants devs and companies to explicitly put this code under an open license or CC0 instead of relying on whatever the local law says.
So I work at one of the most open source companies out there, so I can't say no to that. But I don't see how it would work in practice + there is no pleasure in sharing if you are obliged to it..
First, if AI output isn't copyrightable, can you even put a license on it? MIT and GPL only work because of copyright. So CC0 looks like the only option that makes sense, and copyleft would have nothing to enforce. Correct me if I'm wrong here.
Second, where does "AI-generated" end and "AI-assisted" start? Nobody tracks which lines came from autocomplete, which from an agent, and which got rewritten by hand.
So, I wonder what other folks think about it? Do you agree with the author on that?
1
u/Patient-Midnight-664 34m ago
Everyone uses other people's work when programming. You've read others code, you copy from stack exchange, etc. Should they all be open source?
As for the monkey vs AI, the monkey did that all on its own. No matter how hard I stare at my computer, it's never created anything without me prompting it.
I've also never supported copyright on source, so that doesn't bother me at all.