By this logic, shouldn't any code using an open-source framework or language also be open source? Even before AI, devs learned from Stack Overflow and plenty of open source code.
You're confusing writing code with software engineering. Devs never just wrote code, they took ownership of the outcome. Business owners put their money on the line for product decisions.
To say that just because devs or founders use AI to write code, the code is no longer their intellectual property is ridiculous. Humans take responsibility for the outcome and are willing to accept the losses. AI can't do that. AI doesn't have any stakes in the output it generates, humans do.
My two cents. I'm on both sides of this (as I'm sure many here are): AI was trained on my open-source code. Also I use AI to build proprietary code.
My stance is that AI is a tool, like a compiler is a tool. AI generated code should not be considered public domain or forced to be open source or ineligible for copyright.
Even if AI writes every line, the direction and engineering that I put in has been substantial (current project in mind), months of heavy AI use for heavy refinement and direction of complex software. That human input, even if it isn't lines of code, counts for a lot.
Furthermore, what does society gain from my code being made open source if anybody else could just themselves go to Claude Code and ask for the same thing? Just go have Claude make one for you. Is it the token cost barrier? That is IMHO negligible compared to the value that we are getting out of AI right now. We are in a golden moment, anybody can create amazing things, rapidly, at low cost and little barrier to entry.
I am the author of multiple AGPL systems, many in mainstream use. Early LLM models would spit out my code almost verbatim. Modern systems borrow heavily on the creative design of those systems.
One company first pirated my AGPL code (e.g. shipped it without my name, copyright notices, source availability, etc.). I sent them violation notices. After many months of fighting, they had an LLM clone the system. The LLM clone feels:
a) Buggy and bad compared to my code
b) Still, like it's basically my creative content
It's as if you asked an LLM to rewrite Harry Potter, with the same plot, but bad dialogue.
Doe v. GitHub already decided (I'm simplifying, read the actual thing yourself) that LLM output is not automatically open source - or specifically it doesn't infringe on the open source training material and doesn't inherit the oss copyright notice.
Thaler v. Perlmutter (again simplified) showed 100% AI output can't be given any copyright.
The directions the current cases are going are very much opposed to that idea and I wouldn't expect things to change in the opposite direction.
I think we need to go one level up in the law, and recognize that existing models of copyright and ownership simply don’t apply here, and come up with something new.
There is an undeniable core mathematical principle that should be recognized in law somehow: the emergent capabilities of LLMs are not possible without, effectively, the entire recorded intellectual output of human civilization since the dawn of recorded history as training data.
Trying to determine who “owns” that data, or each individual piece of it, leads us to insane distortions like LLM labs scanning and destroying books. Nobody, including the labs, thinks this is the best solution, but they’re doing it to comply with today’s interpretation of the law.
The reality is that if we are considering the entire corpus of training data, we all own it. We’re not really talking about who owns one book. We’re talking about who can be said to own all the knowledge in all the books. Who can be said to own the existence of books, or the conditions of civilization that cause us to value and preserve books in general.
The preservation and archiving of knowledge that enabled the emergence of LLMs is the product of a system of social relations that belong to the entire civilization. It is a commons. And when we talk about the future impact of these systems, we’re generally talking about taking the value of that commons, and concentrating the value of it in the hands of about a dozen people.
To me, there is no other way to think about a situation like that, where a tiny handful of people realize all the surplus value latent in the entire intellectual inheritance of human civilization, as anything other than theft.
One-off settlements with individual rights holders don't fix that. Neither does scrambling the output of LLMs so that they don’t reproduce their training data verbatim. I don’t think making LLM output non-copyrightable, or all LLM output open source, fixes it either.
I think we need to establish an entirely new framework for thinking about this stuff, and then go forward from there.
The article contradicts itself.
It's important to remember that the purpose of the license is to allow the copyright owner to exercise their rights in a manner they deem fit. Even if they choose to give the code away, that choice is captured in the form of a specifically worded license (MIT, BSD, etc.).
This means that licenses exist because code is copyrightable in the first place, with the license governing the use of said copyright. If AI code is not copyrightable, then no license can govern it.
I really have to wonder what context this person is operating in. The vast majority of software written in the world is proprietary, written for a company to aid some business process, and ridiculously specific to its use case, and freely intermixed with proprietary business information.
“Open sourcing” is not just a legal state, it’s an affirmative act that takes work to prepare the codebase for public consumption. Saying that all the weird business code in the world should be involuntarily publicized is an incoherent concept. What precisely would OP expect to happen in a world that adhered to their opinion? Because to be clear, 90%+ of all code being written today is LLM-generated, so OP suggests that companies should no longer have any privacy wrt their internal software, all LLM code just gets yeeted into the public. How could that possibly work?
Given how easy it is to write software now, this perspective seems to overindex on a past state of the world that no longer applies.
Kind of a silly position. I mean, if it's you're code verbatim, then yeah, it's a violation. Shouldn't be allowed. But like... it saw open-source code and therefore all output must be open source? I don't know about that.
Here's where I can get on board. I think people should be putting AI to work to improve everyone's lives for free. Your version of "should" is like "we should make this a law." My version of "should" is more like a moral recommendation -- we should be using as much of our subscriptions as possible to benefit everyone instead of enriching a handful of people. I view it as a natural extension of the spirit of free software to begin with. Software should be free (as in freedom), and we finally have enough development power to make real headway on that.
Strongly disagree.
Just because AI was involved doesn’t mean significant human thought and effort didn’t go into the production of those artifacts.
My agentic software development loop requires heavy involvement of real-world feedback. The ratio is huge. 20 mins of agentic software coding against hours or days of testing, trying it out, real-world contact, thinking about what feature is next or what tweak would make it more usable, smooth, intuitive. That feedback is baked into the product. Forcing it to be open source steals all that time and effort for me, and takes from me the decision as to how and whether to open-source it. So you mean the code that I’ve agentically written to help manage my private financial affairs (on local models, for privacy) or my kids’ complicated school schedules must now be open sourced?
My manners begin to fail, so I’ll stop here.
I have some projects I've been working on over a year. Sitting down working making design decisions. Research. Using ai doesn't mean I did no work. It doesn't matter if the ai was trained. I still did work.
I don't understand this view point. Using ai and making high quality stuff is not pushing a button. Its hard. It takes real effort and diligence. And you have to pay actual money out of pocket to deliver it.
The other take is AI code generation machines are directed by human inputs and will never start without that human input, so therefore it was created by a human.
Much like how a photographer 'just' clicks a button on a machine and through a very complicated process it creates media, so does the human who makes media via an AI machine.
I think because of how corporate power works and how much money is at stake this will end up as the end result. Laws are made up by humans and a majority vote in a parliament can set this to be so, previous rulings be damned. And most treaties never really ever think about how media was made because this was never an question until recently. Copyright are not constitutional rights in most counties.
Whilst the first training sets would have used Stack overflow and open source projects.
I have my suspicions that the AI companies have been using reverse engineering to gain more training data.
Ethics don't really concern these companies so...
When you have essentially infinite compute and are constantly looking for more training data. To me the next logical step is to start reversing compiled programs.
It could also explain why these AI models are so good at it too...
How do you copyright stolen material?
This article is mostly ragebait, and it's claim is hollow when looked thru the lens of computing history.
Let us skip the whole Bell Labs C/C++/unix/sh/ksh -> BSD csh/vi/bsd/tcp/ip, and other proprietary unix variants/utils and focus instead on today's landscape.
There are two axes we can partition the whole ecosystem. Free/OpenBSD, Clang/LLVM, musl, busybox, X11/Xlib, sqlite, postgresql, nginx, Python, Go, Rust, many embedded rtos, vendor sdk, utilities etc.. and then there is Linux/GCC/glibc, etc. Along the licensing spectrum there is GPL and then the rest of the permissive licenses MIT/BSD/Apache etc where source code publishing is not a requirement.
These permissive license offerings are more prevalent compared to the GPL offerings and as such one can gain all the knowledge needed to build a fully functional system. LLM could memorize, or copy the pattern, so even though it is not a clean room, courts seem to be ok as long as things are not spit out verbatim.
Add to this, the fact the there are tons of research articles, user manuals, RFCs, so one can learn and understand how to build the needed reusable component if small and give their own prompt (and bugs) and and let LLM do as user described.
In the US, purely AI-generated code isn’t copyrightable, but it also doesn’t mean you have to publish it. Also, putting an open-source license on code nobody holds a copyright to has no legal effect. So, ethically or otherwise, there is no strong and convincing argument that open sourcing is the right thing to do.
What 'creators' could do is to compile a list of all the frequently used permissive licenses that are applicable to their system and just make it part of their software license attribution.
[1] https://redmonk.com/sogrady/2026/03/25/open-source-licensing...
There's a huge difference between Open Source (even FOSS) and public domain.
Open Source depends on copyright, and makes the source available. The restrictions that (e.g.) the GPL makes are enforced by copyright law, and derive from the author's copyright protection of their work. Effectively the author is granting the recipient permission to use their copyrighted work under certain conditions.
AI-derived works cannot be copyrighted and so cannot be made Open Source in the sense that FOSS means. There can be no restrictions on what the recipient does with the code, because the code is public domain already. Effectively the recipient has as much ownership of the code as the author.
However, the author has no obligation to publish their code, even if it is public domain. And no-one has any right to request a copy of the code, even if it is public domain.
Essentially the current situation is the reverse of FOSS. In FOSS you get a copy of the code along with restrictions on your use of it. With AI code, you don't get the code even though there can be no restrictions on your use of it.
If we did as the author suggests, and all AI-generated code was Open Source by default, we'd be in a worse position - we'd still have no obligation on them to publish, and we'd have to give the author ownership again.
Instead, we probably want some obligation to publish any AI-generated code because it's in the public domain. Though how you'd protect the human-generated bit would be interestingly tricky.
Well, standard disclaimer: I am not a lawyer.
That being said...
I can kind of buy the argument that we humans were trained on open source code when we read it... and then many of us went on to write closed source code. I would also, say, however, that any laws we had in place never expected a single entity to "read" the entire output of human civilization. But that's not really the point I want to make.
The point I really want to make is this:
IF we accept that what the AI companies did when they consumed the entire internet for training was legal (or even ethical)...
Then I fail to see how training other models via distillation of their models is ANYTHING BUT legal (or even ethical)...
I mostly agree and have pretty much every one of my projects open source. One in particular, though, is not. And that is because the design of it is heavily domain specific and is built on loads and loads of experience. Not sure how to reconcile that...
I don’t know about one-shot-prompt toy apps, but when it comes to building real stuff with AI, it still takes significant effort from devs to get the results we need. There’s a difference, right? “Give me the best result” vs “Give me the result I want”. Most serious projects, at least from what I know, run on the “Give me the result I want” principle, and that’s where the dev effort goes. I know the future is heading toward “Give me the best result with no mistakes”, but that changes how much effort it takes, not who owns the output. Even if the code is generated by AI, humans own the result, because they worked with the machine to get the result they wanted. Same was true before AI: humans worked with the machine to get the result they wanted. It’s just way faster now. Using a machine to build something has never meant you don’t own what you built.
The problem with this is the assumption that models used are not a factor of the code already written by the user and ingested as context to determine the future state of the code according to the specifications.
All purely AI-generated code should be Open Source.
I've got plenty of technical designs that should not be Open Source and follow distinct design decisions AI can work with, not necessary know how to deal without context. If AI is additive it is just adding on the existing design not changing it.
Also I would dislike AI rot following into the codebase of Open Source projects making them unmaintainable.
End of the day question is if AI is driving you or are you driving the AI?
I’m confused. Is this article meant to be a scholarly legal argument (albeit, by a novice)? Or a normative statement about what the author would prefer?
It certainly doesn’t seem to be about practical solutions. It doesn’t even touch on the ramifications of its suggestions. I’m pretty sure that it would be a massive boon to data center operators and cause most of the readers of hacker news to lose our livelihoods.
I can understand the case being made on "purely AI generated code."
But thats also why its buggy.
As soon as I start refining it, and commanding the AI to fix the mistakes, this argument starts to lose ground fast.
The tech community has adopted open standards for as long as I've been alive, and the AI is using these open standards as much as it is actual code.
Perhaps an open standard to prevent code from being used as training ( it probably already exists, i dunno ).
Methods to detect it ( I've seen that showing up recently. Using AI to detect AI. )
Some sanctioned actionable penalty under provable circumstance as the resolution ?
You can see why the copyright office wants to treat this as any other thing.
The details of proving claims get complicated quickly.
Personally I am less concerned with all AI generated code being open source. We will very quickly be drowning in a sea of code, and who even wants to see it if it's easily re-created by AI? Eventually everyone will be using AI and I don't think it's feasible or makes sense for all code to be open source. Personally I _would_ like to see all models trained on public data become open-weights. To me it seems unfair to let a few companies lock up all the value of the collective works of civilization without providing something back for free.
> purely AI-generated code is not written by a human, meaning it should not be copyrightable
There's a lot of room in between code that is closed-source and code that is "copyrightable".
Should code crafted via cut-and-paste from StackOverflow be open source? How about newsgroups before that? What about apps that use "no code" tooling? Is there a threshold for the use of external libraries and packages that cross the threshold for "that code was simply scraped from the internet and used without permission or proper attribution"? How about code I wrote while using auto-complete a lot?
I appreciate the author's sentiment and recognize that LLMs have aggregated the work of many, many people. I'm guessing their work wasn't wholly original either, like so much of the code I wrote before the age of LLMs. Whether those people whose work has been aggregated to train LLMs own that work - those ideas, those thoughts, those strategies - is exceedingly complex and (I speculate) largely won't hold up to real scrutiny.
> All AI-generated code should be Open Source
What problem does this solve, though? If anything, wouldn't this help empower the frontier labs, in particular Anthropic? With everything open sourced, the labs get the knowledge of each company for free, right? Thank about how IBM owned the computation with mainframes until personal computers and workstations became powerful enough.
If we want freedom as the open source movement advocates, we'd need focus on make building open models accessible to millions of engineers and companies. Given the sheer investment required to build the frontier models, though, I'm not sure there's a way unless we have breakthroughs in the AI algorithms or hardware, so that individual engineers or small companies can build competing models.
> The second reason is legal: purely AI-generated code is not written by a human, meaning it should not be copyrightable.
Even if this were correct, a piece of code not being copyrighted does not automatically confer rights onto third parties to have it conveyed to them. As a matter of practice, what more than any other factor keeps proprietary code proprietary is not the legal shield of copyright but the difficulty of getting companies to convey that code to you.
Actually: All AI-generated _Output_ should be Open Source (not just code)
It's the (open) knowledge of humanity, and the thin layer above is only a minor fraction (0.1 if at all) of the 'product', which should not be allowed to be privatized by anyone - let alone destroying originals (like books) to own 'it' !
He’s not wrong, but I would argue a better model is the Derivative Work. This already exists in copyright law.
If I write a space opera that is a LOT like Star Wars there are major legal implications to this. If I write an original work of science fiction involving a weapon that destroys planets as an allegory to the history of the atomic bomb, I’m probably in the clear even if one of the characters is a furry alien with a laser sword.
The challenge now is how to apply that framework when nobody can see the original or resulting code.
What's wrong with this website? When I open it in Safari on macOS, it consumes all my RAM. 20GB to start. I got a system warning to force quit some apps to maintain stability (which was a first in 5 years). When I closed other non-Safari apps, Safari usage then went up to 30GB.
Quitting and relaunching Safari, then returning to the site, produces the same results. The process for this website is what is using the RAM, it persists after closing the tab, and needs to be force quit.
Do we still care if its open or closed? Isn't reverse engineering basically solved anyway?
Open sourcing all AI generated code isn't practical and doesn't really even address the issue. An AI model is never going to be able to properly provide attribution or determine what code used what license anyway. Instead, GPL code should be removed from AI training sets going forward by default. Essentially, anyone who does not want AI to train on their code / work of any sort should be able to opt out.
While this will not impact current models, future models would eventually be free of it.
i think the author presents weak arguments:
> AI models were trained on a massive corpus of Open Source
using open source shouldn't require the final product to be open source. that's pretty much most of proprietary software. most of it is built using open source code but the final product is due to a combination of thoughtful product and software knowledge and must be private since it's really the value you produce.
> purely AI-generated code is not written by a human, meaning it should not be copyrightable.
you can say AI generated code is based on human code, and that human code is open source. depending on the license (likely MIT) its technically legal to choose the generated code to be private.
> To make things fair across all jurisdictions, and to honor the open ecosystem that made AI possible, developers and companies should explicitly release AI-generated code under Open Source licenses or dedicate it to the public domain using the Creative Commons Zero (CC0) license.
i somewhat agree here. AI generated code should include the original license of its authors unless it's purely AI generated using original variable names.
i previously released AI generated products/software as open source but come to think of it, in the world of abundant software, i believe there's more reason to actually privatize your code vs putting it out in the public. especially for paid software products.
Two points I think making AI-generated code opensource Point 1: AI can (or will be able to) reverse engineer all code from how the program works. Thus, there seems to be little point in opensourcing AI generated code because it can just be reversed engineered
Point 2: Correct me if wrong but can AI generated code actually be copyrighted? If someone just keeps prompting but not touching the code would this still be considered pure AI generated work? If this is the case then point 1 and point 2 basically means AI generated code is already open source in effect if not in name.
AI companies should be required to pay repartitions/royalties to the originators of their data. But people aren't ready to talk about this yet.
Matthew Butterick (of https://typographyforlawyers.com/ fame) is involved in a class action suit about LLM being trained on copyrighted material. See https://llmlitigation.com/.
Maybe we should get some high-profile software devs on that as well ...
The article is right. If no human effort is involved then the code should be open source. The article also implies a very detailed line too. It doesn’t say that the human effort part can’t be copyrighted or intellectual property.
As an example, I have developed a set of grounding guidance for my AI models at my work. The specific grammar and vocabulary belong to my employer. But I also have a clean-room version of it that completely strips out that proprietary infringing information while still retaining a similar semantic structure. That will be posted next month on my GitHub under a GPL-3 license like I do with my other non-infringing AI-assisted work.
Alternative view on the problem. if code is really a solved problem , open source becomes a security problem? with all the attacks happening mostly on open source projects, it is not farfetched that a secure bank system will be ai generated with core libraries implementing everything from scratch, including runtime. Big business, big problems.
This idea of no libraries/external dependencies sounds extreme, until you got hacked by a tiny library for http calls and that cost you billions of losses.
> developers more and more rely on AI without even reviewing the generated output, let alone modifying it to fit their specific needs. Code like this, where humans put little effort, except writing prompts, should definitely be Open Source.
A person's contribution here is difficult to measure. This statement reminds me of one of my older bosses who priced software per lines written.
An AI-generated software's quality reflects the author's vision, taste, and expertise (if any). These are there regardless of the number of lines reviewed.
I would've supported open source for completely AI-generated apps including the conception of the idea.
RMS would be proud with this post though.
Definitely agree with that in concept, but there really a fact that nobody realized until recently after all the game decompilation/mix-ups: LLMs can read assembly fairly well and traditional obfuscation techniques doesn't really work on them, so if you have access to the binary and a disassembler, an LLM agent will be able to reverse engineer and reconstruct the likely high level source code of most software given enough time anyways.
In other words, almost nothing is closed source to LLMs if they have access to the binary.
A lot of y'all here are missing something important: open source code is an application of copyright law, and it has already become clear in some countries that the output of an LLM is not coverable under copyright (i.e. it is public domain).
In the UK, the output of an LLM can come under copyright and therefore the author can license it as an open source product, but in the US it can't be done.
AI has already "opened" the source of lots of software anyway, so IMHO this is a moot point. However, what AI is making more people realise is that everything is a derivative work.
By that logic, LLMs that were trained purely on proprietary code should be allowed to generate proprietary code (Microsoft, Oracle, Apple, etc. should have a quite large codebase when combining all their products).
And then again, I wonder which license should be used. Is this a case of copyleft, and therefore everything generated should be something like GPL, or is it more like public domain because no copyright can be exercised?
I wrote up my thoughts about this a while ago here: https://resolve.works/articles/the-tool-is-not-the-author/
Good link in the post https://commons.wikimedia.org/wiki/Commons:AI-generated_medi... happy but not surprised that Wikimedia Commons has a good approach and I lovely template name as part of it: PD-algorithm
Not necessarily IMO. It's not the code, but the IP is what matters. The IP holder should have full rights to make it open or not. Using a tool that leverages open knowledge doesn't prevent someone from building closed solutions.
In a way all LLM code is already open source. We all have open access to the system which generates the code. All you need is the prompt, so that is the non open element.
It seems pretty clear-cut to me. AI companies plundered the commons, but the commons have licenses that come with them that clearly state that their use and derivatives thereof must also include the license and be open source.
This is a chance for great good for humanity and for the AI companies to do the right thing for themselves and for all of us.
Not releasing the code as open source would be just... well... evil.
And a further question arises for me: If we don't start sharing the fruits of the machines now, then when?
I agree with the spirit of this. I'm a longtime open source developer and generally prefer GPL for my manual code. For my AI-generated code I'm using a multiple choice license of Apache, BSD, GPL, MIT.
If you're curious, here's my newest open source which helps build Rust web services along with Axum: https://github.com/publicprojects-io/axa and you can see the LICENSE.md file.
> The second reason is legal: purely AI-generated code is not written by a human, meaning it should not be copyrightable
I think that's the actual point here. AI-generated code shouldn't necessarily be open source, but it is not (or should not be) copyrighted. You can still keep it as a trade secret, but you have no legal protections that prevent others from reusing it once they have access to it.
At this point, since LLMs can reverse executables anyway, making something Open Source is hardly any leverage. Instead we could say that any products generated by AI face a tax.
Actually, why not go straight to the source and tax the AI companies for the public benefit. That is the logical reduction of the argument.
Since last year everything I was generating with AI I put it opensource on github! Some of these tools I use on daily basis others were experiments. It felt natural to do so, I never for a second felt or thought I owned the code output of LLMs even if I am the one who prompted it
In the United States the Copyright Office actually has guidance on this that I feel most people aren’t aware of.
https://www.copyright.gov/ai/Copyright-and-Artificial-Intell...
An excerpt, with emphasis mine:
• Questions of copyrightability and AI can be resolved pursuant to existing law, without the need for legislative change.
• The use of AI tools to assist rather than stand in for human creativity does not affect the availability of copyright protection for the output.
• Copyright protects the original expression in a work created by a human author, even if the work also includes AI-generated material.
• Copyright does not extend to purely AI-generated material, or material where there is insufficient human control over the expressive elements.
• Whether human contributions to AI-generated outputs are sufficient to constitute authorship must be analyzed on a case-by-case basis.
• Based on the functioning of current generally available technology, prompts do not alone provide sufficient control.
• Human authors are entitled to copyright in their works of authorship that are perceptible in AI-generated outputs, as well as the creative selection, coordination, or arrangement of material in the outputs, or creative modifications of the outputs.
• The case has not been made for additional copyright or sui generis protection for AI- generated content.
I am sure there will be many more legal battles and probably legislation about this to come.