All AI-generated code: Open Source
Imagine a scenario where the vast ocean of open knowledge, built over decades of collaboration, is used to fuel a new generation of tools that, in turn, generate proprietary products. Does that seem fair? This is the central question when we talk about Artificial Intelligence-generated code. The idea that all AI-generated code should be Open Source might sound like a "hot take," but there are solid arguments behind it that deserve our attention as builders and tech leaders.
The Debt to Collective Knowledge
The first and perhaps most evident reason to advocate for open-source code for AI-generated content lies in its very genesis. The Artificial Intelligence models that today produce lines of code were trained on a massive corpus – a vast set of data and information – of Open Source code (open code, available for viewing, use, and modification by anyone). This code was built over decades, ever since Richard Stallman (RMS) announced the GNU Project and the Free Software Movement, and was simply collected from the internet and used without explicit permission or proper attribution in many cases.
Furthermore, these models were also trained on platforms like Stack Overflow and sister projects of Stack Exchange, which are released under Creative Commons licenses. Creative Commons licenses are a type of copyright license that allow the use of works but legally require attribution to the original author. When collective knowledge, built under these terms of sharing and collaboration, is transformed into proprietary and closed-source code, the feeling is one of "license washing" – a way to circumvent the principles of attribution and openness that allowed the very existence of these AI models. It's a deep ethical question: we can build incredible innovations on the shoulders of giants, but we must honor the foundation that sustains us.
The Copyright Dilemma: Who is the Author?
The second reason to advocate for Open Source for AI-generated code is legal in nature. In many jurisdictions, purely Artificial Intelligence-generated code is not written by a human, which means it should not be subject to copyright. The foundation for this principle in the U.S., for example, dates back to the famous "Monkey Selfie" dispute. In that case, it was established that non-human beings cannot hold copyright over their creations.
This precedent was later cited by the U.S. Copyright Office in relation to AI, reinforcing the idea that human authorship is a fundamental requirement for copyright protection. Following the same logic, Wikimedia Commons requires all purely AI-generated images to be marked as Public Domain – that is, content that is free of copyright and can be used by anyone for any purpose. If code does not have a human author who can claim rights, its natural condition should be that of public domain or, at the very least, open source.
Navigating Jurisdictions and Responsibilities
However, copyright laws differ globally. Countries like the United Kingdom, for example, grant limited copyright protection to computer-generated works, even if there is no direct human author. This legal disparity creates a complexity that needs to be addressed. 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 – which waives all copyrights.
Of course, code is not always 100% manual or 100% automated. The reality is that developers increasingly rely on AI, whether for autocompletion, generating snippets, or even entire blocks of code, often without even reviewing the generated output, much less modifying it for their specific needs. Code like this, where humans dedicate little effort beyond writing the prompts (the instructions given to the AI), should definitely be Open Source. This ensures that the community benefits from innovation, while also acknowledging the original contribution of the vast repository of open knowledge.
Why This Matters To You
As builders and decision-makers, we have a responsibility to shape the future of technology ethically and sustainably. The discussion about AI-generated code and Open Source is not just a legal or technical matter; it's about respecting collective work, maintaining a healthy ecosystem, and clarity regarding authorship. Adopting a proactive stance, by releasing AI code under open licenses, can not only prevent future legal and ethical headaches but also strengthen trust and collaboration within the tech community. It's a fundamental step to ensure that AI innovation builds upon, rather than subverts, the pillars of shared knowledge.
Sources
📬 Enjoyed this? Subscribe to the Vaccari's Code newsletter for the next wave of software & AI trends, straight to your inbox: Subscribe here