All AI-generated code should be Open Source jakub.jankiewicz.org · 310 points · ...

@best30

All AI-generated code should be Open Source jakub.jankiewicz.org · 310 points · 197 comments · HN thread

TL;DR Jakub Jankiewicz argues that all AI-generated code should be open source, on two grounds: models were trained on open source code and CC-licensed Stack Overflow content without proper attribution, so proprietary output amounts to license laundering; and purely AI-generated code lacks a human author, so it should not be copyrightable and should be released under an open source license or CC0. The thread (197 comments) is largely skeptical, centering on whether AI output is copyrightable at all, how enforceable any such rule would be, and whether humans who learn from open source are obligated in the same way.

  • The author says AI models were trained on open source code and Stack Overflow/Stack Exchange content under Creative Commons licenses that require attribution, calling proprietary output 'license laundering'.
  • The article argues purely AI-generated code is not human-authored and so should not be copyrightable, citing the Monkey Selfie case and Wikimedia Commons' policy on AI images.
  • It notes the UK grants limited copyright to computer-generated works, so it proposes releasing AI-generated code under open source licenses or CC0 to be uniform across jurisdictions.
  • The author limits the rule to code where humans 'put little effort, except writing prompts', acknowledging that most code is a mix of human and AI work.
  • The post is a short opinion piece without a concrete enforcement mechanism or legal analysis.

Discussion The thread is long and mostly critical of the article's premise. Commenters debate whether AI output can be copyrighted at all, citing the US Copyright Office's Part 2 report and cases such as Thaler v. Perlmutter and Doe v. GitHub, and whether a license can even govern uncopyrightable material. A strand of AGPL and GPL authors describe their code being cloned by LLMs and push for enforcement, while many others argue that human steering, iteration and product decisions are real authorship and that learning from open source is not an obligation to publish. The mood is contentious but substantive, with frequent pushback on the article's reasoning and some sympathy for the underlying concern about licence erosion.

  • Open source authors are being harmed; enforce copyleft against AI firms (many): Several AGPL and GPL authors say LLMs have reproduced or cloned their code, and argue this is a clear license violation that litigation or the FSF should pursue. They see the output of copyleft-trained models as needing to be copyleft too.
  • Human steering and iteration make AI-assisted code authored and copyrightable (many): Many developers say significant effort goes into agentic development, including design, testing and feedback, and that the US Copyright Office already protects human-directed selection and arrangement. They reject treating this work as public domain or open source by default.
  • Copyright office guidance is clear enough; prompts alone are insufficient (some): Commenters point to the Copyright Office report stating AI output is not protected without sufficient human control, and that human expression within outputs remains protected. Some note that 'slop' from bare prompts is unlikely to qualify.
  • Not everything should be open source; releasing is a choice (some): Commenters argue that open source is an affirmative act and that most business software is proprietary and intertwined with confidential data. They also note that private use does not trigger open source licences.
  • Learning from open source is not a reason to open source output (some): Several argue that developers learn from open source and Stack Overflow and then write proprietary code, so AI should be treated the same way. Others counter that scale and direct reproduction change the picture.
  • Copyright is broken or unenforceable; the proposal is impractical (a few): Some say copyright mostly protects large companies, and that proving whether code was AI-generated is impossible. Others predict that open source economics will weaken as AI makes cloning cheap.

Links from the comments

#AI #copyright #opensource #licensing #LLM