logoalt Hacker News

All AI-generated code should be Open Source

1118 points • by jcubic • yesterday at 2:46 PM • 602 comments • view on HN

Comments

bossyTeacher • yesterday at 5:33 PM

If AI-generated code should be open-source, then if an AI generates the code for Pokemon red, does that mean that it becomes open-source? I agree with the high level idea, but the way it is stated is too problematic.

willmadden • yesterday at 5:31 PM

Here here!

freejazz • yesterday at 4:55 PM

Well it is certainly not covered by copyright and to the extent it could be covered by trade secret is perhaps a debate.

outside1234 • yesterday at 4:09 PM

This will never happen because it would essentially destroy every corporation now, the economy, and therefore every politician's funding source.

idiotsecant • yesterday at 4:09 PM

The output of machine intelligence has to be available to everyone or we're just breeding a new demigod class. We should make it a public utility, like water or electricity.

yogthos • yesterday at 4:02 PM

I can get behind that.

ViktorRay • yesterday at 4:01 PM

I think the legal standard currently in the United States is that all AI output is public domain.

This means that all AI generated code is public domain at the point of it being generated.

Of course just because something is public domain that doesnt mean you have to release the code publicly. Public domain just affects what others can do with the output. It doesnt mean you have to release the code yourself.

The new Epic Games Store is apparently entirely vibe coded. So that technically would mean that the source code for it would be public domain right? But people still can't copy the store or do whatever they want as you have trademarks protecting it. And Epic is under no obligation to release the code..

I am not a lawyer. It's possible I am completely misunderstanding the situation. Is there something I am getting wrong?

➕ show 1 reply
TZubiri • yesterday at 3:40 PM

>First of all, AI models were trained on a massive corpus of Open Source code written since RMS announced the GNU Project and the Free Software Movement. That code was simply scraped from the internet and used without permission or proper attribution. The models were also trained on Stack Overflow and Stack Exchange sister projects, which are released under Creative Commons licenses that legally require attribution. Turning this collective knowledge into proprietary, closed-source code feels like license laundering.

Strong argument, but the case that such a strong transformation should maintain the original licence only applies to my knowledge to GPL, which consists of a very small portion of the training set. Creative Commons would not even require the source code to be distributed, just attribution, which may already be the case by the nature of the models.

>"The second reason is legal: purely AI-generated code is not written by a human, meaning it should not be copyrightable. The foundation for this principle in the US goes back to the famous Monkey Selfie dispute, which established that non-humans cannot hold copyrights."

But no one claims that the AI holds the copyright, unlike Greenpeace which claimed that Naruto the monkey held the copyright.

sneak • yesterday at 3:32 PM

Why do people think that people receive the gift of open source software are somehow obligated as a result of receiving that gift?

Yes, it was trained on free software. Why does that mean my privacy should be invaded now if I distribute binaries I made?

➕ show 2 replies
artursapek • yesterday at 3:30 PM

There is still substantial human effort and R&D that goes into developing a complex code base with AI agents.

FrameworkFred • yesterday at 4:29 PM

Downvoting sentiments that don't agree with the author's position is gross.

singpolyma3 • yesterday at 3:59 PM

I think this misses the point a bit. All code should be open source. Full stop.

➕ show 1 reply
EGreg • today at 1:24 AM

I can actually get behind this idea... but it would need the force of law, I think. In short, it's not enough that AI-written code wouldn't be copyrightable, but it would be required to be published, like some sort of viral GPL.

Well, maybe the best you can do is try to convince the AI labs to add this to their license. Good luck with that.

ratelimitsteve • yesterday at 4:48 PM

other copyrightable things aren't copyrightable if they're ai generated. why is code different? for clarity, i'm not at all being rhetorical, i don't know the answer to this question and i'd love some education if you're handing it out.

cyanydeez • yesterday at 3:20 PM

agreed. The problem is _which_ open source, because what we're probably going to slowly realize is most software will now be a public good and proper governance is needed thats indistinguishable from a public utility.

But we're not headed in that direction are we.

_DeadFred_ • yesterday at 5:24 PM

And AIs should be under libraries as AIs are the repository of all human knowledge scraped up without permission. Libraries are societies repositories/solution for this sort of access/use of shared knowledge like that used to create AI.

sashank_1509 • yesterday at 3:38 PM

I strongly agree. Look at what we’ve done here:

1. Software had a strong movement of freely sharing all code because they believed this technology was too important to be controlled by corporations.

2. AI companies managed to create millions of RL environments from GitHub PR’s and similar, and train their model to learn what it means to code from all the human labour in the world from the past 30 or so years.

3. Companies now use these closed source AI models, to automate and fire their human workers who enabled this.

Something has gone seriously wrong here, whether this falls under copyright or not is besides the point.

We weaponized a fundamentally good instinct that generated a lot of value for society and allowed corporations to rent seek on all the data these humans generated to help other humans not trillion dollar corporations.

“Well we’ll give them a UBI check”, the AI company says which is a complete non-sequitur. It’s not about the money, most of us have saved enough.

The only solution that sounds good to me, is a model trained on Open Source Data must be Open Source and all the code it generates must also be open source. This is the only way to stop the coming rent seeking. Even mathematicians will be happy with this change!

➕ show 1 reply
g-b-r • yesterday at 3:20 PM

Even if you modify it before using it, it's still based on open source (often GPL) code, so just everything based in part on LLM output should be open source.

d--b • yesterday at 4:41 PM

it’s not a hot take, it’s something most people wont bother to read cause it’ll never happen.

the only merit or such claim is to maybe move the overton window a tiny bit. maybe that’s worth the blog post

add-sub-mul-div • yesterday at 3:34 PM

We already have a growing discoverability problem in many areas of content and throwing more slop into the mix is not the solution. This place for example has become a dumping ground for people, usually with no other activity here, to advertise their shovelware AI projects.

rvz • yesterday at 3:29 PM

The author needs to realize that this is unenforceable.

In fact I'd argue that free software and open source is economically dead and unsustainable because of AI generated code and almost no one wants to pay for their tools because an AI can generate the missing feature for them close to $0.

Maintaining it is another thing, but assuming that the cost of tokens get cheaper, why wait for open source developers to maintain it when a frontier AI model can do it for far cheaper and quicker?

I am just saying what the average manager turned vibe coder would say who will refuse to donate or pay for established open source projects that they use for free.

➕ show 1 reply
thetrendtimes • today at 12:40 AM

[flagged]

u1hcw9nx • yesterday at 7:31 PM

[dead]

mariogamas • yesterday at 10:06 PM

[dead]

etherlink • yesterday at 11:21 PM

[dead]

octaviocriollo • yesterday at 4:57 PM

[flagged]

DrJohanson • yesterday at 6:39 PM

[dead]

washsalecheck • yesterday at 4:38 PM

[flagged]

mollyrasmussen • yesterday at 3:31 PM

[dead]

scaringStr8s • yesterday at 8:04 PM

[dead]

blackcat101 • yesterday at 7:13 PM

[dead]

dzink • yesterday at 3:39 PM

Here is a different angle. A programming language is a material like wood, aluminum, or stone. If you know the syntax and properties of it can you start trying to bend it to your will - you can make a ship, a satelite, or a children’s toy wihh tv the same language. You first have to spend years mastering the material and its limitations before you can bend it, so only a small number of the people who want to make stuff get to. Some people release open versions of a ship and a satelite you can start from, to lower the threshold of making stuff. They protect them to make sure giant shipbuilder doesn’t go making an army of their ships to kill their trade.

AI comes along and now grandma, who was formerly a midwife and teenager from home can start bending aluminum and carving wood with their words through AI. There are a bunch of open ships and satellites in the market, but Grandma is using her midwifing skills to ask AI to bend a new tool for her that helps turn breach babies around without requiring a c-section. No open source breach tools or medical tools on the market Grandma just needs aluminum and wood combination she would never be able to achieve without AI. She hammers down a lot - sending 1000 follow-up prompts to make the AI do stuff nobody has done before. Next her grandson decided to combine tungsten and wood to make a new toy that helps kids go airborne and land safely every time - like an egg-drop but for real life people. No open source code for that out there - he used the AI which knew the properties and the languages needed to get his idea to work. He hammers the AI with follow up questions and edits a bunch of the code where the AI defaults to the wrong setup, by trained convention. But he succeede. By this plan should they be allowed to copyright their work? Should their work be automatically open source so they can never monetize it either?

skorobogatko • yesterday at 3:49 PM

I will be the first to make all my work free and open-source once I can obtain air, clean water, basic food, shelter for myself and my family, electricity, heating, medicine, education and internet access for free.

Until then, I’m sorry, but I have to feed my family while we all navigate this goddamn global transformation process.

➕ show 2 replies
kashnote • yesterday at 4:52 PM

Can someone help me understand who is still writing code by hand? Even though it’s been only 7 months since I stopped, it seems like such an outlandish concept to me. Can’t imagine opening up neovim and typing “const sm = …” nowadays.

I keep seeing posts like this (especially on reddit) that infer some people are still writing code by hand and its confusing.

➕ show 3 replies
yipinwong • yesterday at 3:33 PM

Articles like this promotes extreme views while we should be moderate on what should be OpenSource or not.

First of all, nobody must force OpenSource. Period. Second, such exterme views spawn extreme views in the opposite side.

Discussion is good, but this article is too draconian to be practical.

➕ show 7 replies
ozgung • yesterday at 3:30 PM

This means “all software should be Open Source unless written fully by humans”, which practically means almost all software in the near future, which is a terrible idea for multiple reasons.

➕ show 1 reply
jacobgold • yesterday at 3:40 PM

No, but all models trained on public data should be open weights by law.

➕ show 1 reply
sqreept • yesterday at 3:36 PM

This is like saying: All humans who learned from open source code should only produce open source code.

➕ show 1 reply