r/webdev • • Oct 06 '26

AI generated code copyrights

Does anyone consider the copyright of code generated by AI? Because, based on research I've done on Copyright and Artificial Intelligence, generated code fall to the public domain, and if you modify it, only the modified parts belong to you. Also, a detailed prompt isn't enough.

This is, in my view, a major issue; yes, we can ignore it and consider it backward law, but no one knows what would happen in the future, and this law could be used against you.

Edit: here sources for USA https://www.congress.gov/crs-product/LSB10922 ,
For Europe : https://www.europarl.europa.eu/thinktank/en/document/EPRS_BRI(2025)782585
blog : https://smpl.as/blog/ai-code-ownership-legal ...

0 Upvotes

53 comments sorted by

30

u/mekmookbro Laravel Enjoyer ♞ Oct 06 '26

Coinbase CEO was quite proud to announce their codebase is 50% ai written, I wonder if they'll open source it lol

1

u/LemonFishSauce Oct 06 '26

You’ve drawn that conclusion based on your research and it’s your interpretation, isn’t it?

1

u/maher1717 Oct 06 '26

No, I edited the post to include the sources; they are from official websites.

1

u/LemonFishSauce Oct 06 '26

Would help if you also include the exact quotes that made you draw the conclusion.

2

u/maher1717 Oct 06 '26

Here is text from the USA
>In January 2025, the Copyright Office published the part of its Copyright and Artificial Intelligence report addressing the copyrightability of AI-generated works. Reinforcing the AI Guidance's emphasis on "creative control," the report concludes that, "given current generally available technology, prompts alone do not provide sufficient human control to make users of an AI system the authors of the output." The report contends that the Copyright Act's distinction between copyrightable "works" and noncopyrightable "ideas" precludes copyrightability for works generated by AI in response to user prompts. Specifically, the report argues, "‍‍[p]rompts essentially function as instructions that convey unprotectible ideas" and "do not control how the AI system processes them in generating the output."

Also in the end, they said :

>Regarding works that combine human-authored and AI-generated material, the Copyright Office reports that, in the time since it issued the AI Guidance, it "has registered hundreds of works that incorporate AI-generated material, with the registration covering the human author's contribution to the work." The office contends that new legislation regarding "the copyrightability of AI-generated material" is currently not needed, indicating that courts "will provide further guidance on the human authorship requirement as it applies to specific uses of AI" and that, since each work must be analyzed individually, "greater clarity would be difficult to achieve" through legislation.

2

u/Gremlation Oct 08 '26

None of that matches what you claimed. /u/LemonFishSauce was right, it's your interpretation, not what was said.

4

u/maxxon Oct 06 '26

Not sure how you can definitely prove that some code is a result of an LLM output. And vice versa. Even if you can fully explain how your code works it doesn't mean you wrote it completely by hand. Maybe a product can be copyrighted, a brand, a service. But the code under the hood? This is like trying to copyright words and letters.

3

u/arcrad Oct 07 '26

Watermarking?

2

u/maxxon Oct 07 '26

It’s just text. Any watermarks can be removed.

1

u/glenpiercev Oct 07 '26

They’re developing tools to “watermark” the ai output by saying things like, “we write the functions in a certain order and the variables in a certain way that is statistically observable to be unique to our output”… never tested in court though.

2

u/stupidcookface Oct 08 '26

I heard about this and I just thought to myself...what the fuck are your priorities if you have to focus on watermarking instead of ya know...fixing the alignment problem

1

u/glenpiercev Oct 08 '26

In some fairness, Europe is requiring it.

1

u/Consistent_Bus_2614 29d ago

How are they going to watermark the code? Maybe files at magic bytes, but some kind of files doesnt work like that. I can be a "expert" or "good" at specific technology how court , and laywrs will know the code were generated by a llm . the point of ia technology were to make us to produce more products, a better world with services, etc. you dont fill a patent because you built a dashboard or an ERP

2

u/zick-one Oct 06 '26

how can they know if a block of code was AI vs Human written though???

1

u/clajon 7d ago

As I’ve understood it, you need to prove human authorship. Your git history is one way this could be done apparently.

1

u/ErnestTheStar 5d ago

Subpoena the Claude account during the lawsuit and count the overall lines of code.

-8

u/dweebyllo Oct 07 '26

AI models have invisible watermarks that are applied to text and code outputs. Unless you type it out yourself line by line then it's traceable back to AI, and thus non-copyrightable

2

u/Edward_Yeoman Oct 07 '26

Text watermarks are generally achieved by tailoring word choices and grammatical patterns. If they started using alternate glyphs that looks like regular characters but where of a different encoding, the code compiler would break

Typing the code out yourself would have no effect on removing 'watermarks' like these

1

u/zick-one Oct 07 '26

Interesting, I did not know that was a thing!

-5

u/dweebyllo Oct 07 '26

Inconsistencies in things like use of spaces between variables and formatting and other best practice inconsistencies are going to be the biggest giveaway really.

3

u/Own-Poetry-9609 Oct 07 '26

You've never seen a live code base if you think best practice inconsistencies are a sign of AI. I've seen two different seniors at a company be asked a question about how to implement something similar by a junior in the same day and give two different answers

1

u/readeral Oct 07 '26

But linting and prettifying?

0

u/Altruistic_Spirit_64 Oct 07 '26

code = ''.join(sentence.split())

2

u/otw Oct 07 '26

It's most likely un-copyrightable and public domain yeah. But that also doesn't mean you can't sell it or that you are required to provide the source. You are allowed sell public domain stuff or generally make money off of it. Stock footage companies sell public domain footage all the time.

That being said, none of this has really been challenged and modern corporate culture doesn't really ever risk going to court. So it's pretty unlikely we will see any definitive answer on this. Anytime there's a dispute, it will probably be settled behind close doors.

I hate copyright though and think this is generally a good thing. I'll also just say I think closed source software is generally dead. Even if you were able to retain the copyright, it's now pretty trivial for someone to replicate your product without infringing or stealing the code.

If you have a business model based on you owning the copyright to code, I would say probably give up on that.

1

u/FredFredrickson Oct 08 '26

I think the real worry is whether or not the code it creates is based on something propriety or otherwise legally unusable.

1

u/FPKodes Oct 08 '26

Lol you’re saying a bunch of nothing. Who the hell is gonna tell me my AI-assisted code is part of “public domain” when my repo is private. Gtfoh, stop fear mongering.

1

u/zionsati Oct 07 '26

Not to mention copilot is recently fully AI ported to Rust by Toub. Claude code itself too is mostly AI written. Most companies use AI extensively to write code these days.

-1

u/Comfortable_Job8847 Oct 06 '26

>n sum, the use of a machine as a tool does not negate copyright protection, but the resulting work is copyrightable only if it contains sufficient human-authored expressive elements.

>he Office agrees that there is an important distinction between using AI as a tool to assist in the creation of works and using AI as a stand-in for human creativity. While assistive uses that enhance human expression do not limit copyright protection, uses where an AI system makes expressive choices require further analysis. This distinction depends on how the system is being used, not on its inherent characteristics.

>As described above, in many circumstances these outputs will be copyrightable in whole or in part—where AI is used as a tool, and where a human has been able to determine the expressive elements they contain. Prompts alone, however, at this stage are unlikely to satisfy those requirements.

seems like the answer is, probably you are fine.

-2

u/Automatic_Currency77 Oct 07 '26

your employment contract already assigns everything you produce to your employer. public domain or not, it was never yours to begin with.

0

u/[deleted] Oct 06 '26

[deleted] — view deleted comment

5

u/stayBlind Oct 06 '26

I will make sure to reference this tweet in a court of law if I end up there. Thanks.

1

u/maher1717 Oct 06 '26

That for the AI company part, also AI in law is considered a non-entity, so you can't legally hire it, and what you pay is for company services, not for AI itself.

It is a mess, and I hate bringing up this topic. Also, the lawmakers who dictate this use AI to generate laws themselves, even laws about AI using AI. So probably got the bait to be pro-AI, anti-humans.

0

u/[deleted] Oct 06 '26

[deleted] — view deleted comment

0

u/maher1717 Oct 06 '26

I am not against you. I really hate these backward laws; I see that they are ignorant of what they try to regulate. The real issue is the lawmakers.

We know what AI is from a technological perspective, but this is about the lawmakers' perspective; that is the real difference. I am just reflecting what the law is saying.

1

u/nickcash Oct 06 '26

You do not

0

u/[deleted] Oct 06 '26

[deleted] — view deleted comment

2

u/nickcash Oct 06 '26

You can keep saying this but unless you can find a more authoritative source than OP's, it's just wishful thinking.

0

u/[deleted] Oct 06 '26

[deleted] — view deleted comment

1

u/nickcash Oct 06 '26

lol okay

1

u/[deleted] Oct 07 '26

[removed] — view removed comment

1

u/maher1717 Oct 08 '26

Yes, thank you so much. I updated the post to include your corrections.

9

u/[deleted] Oct 07 '26 edited Oct 07 '26

[removed] — view removed comment

10

u/Willing_Comb_9542 Backend developer Oct 07 '26

I only see this as a good thing to prevent another "oracle v Google"

Everyone is so fucking protective over their function to add two numbers together and it's weirder than "inventors" with their parents 

1

u/[deleted] Oct 07 '26

[removed] — view removed comment

0

u/stupidcookface Oct 08 '26

Is this just going to apply to one-shot code? What if your continuously shaping the direction of the code in other ways? I can see so much grey area here depending on how you're prompting and interacting with how the code gets built. And this is just code I'm talking about, not images or videos or music. I mean...its all 0s and 1s at the end of the day but saying that code can be copywritten before ai and then saying it can't be copywritten if ai wrote any of it seems insane to me.

2

u/flyby_apis Oct 07 '26

Not a lawyer but I think people are worrying on wrong things

For closed-source code, copyright isn't really what it's protecting you, trade secrett law is

If you have your codein a private repo and you keep it confidential, it's protected. "Public domain" only matters if someone can actually get the code

Where it does matter is that you're publishing: open-source licenses rely on you having copyright, so AI gives your license less to enforce

And the bigger risk is the reverse: AI sometimes reproduces existing licensed code which is an infringement risk

1

u/[deleted] Oct 07 '26

[removed] — view removed comment

2

u/zorecknor Oct 07 '26

So long as the code doesn't get leaked.

You get protection even if it is leaked (if you have a big enough warchest). The code itself may not be copyrigthable, but the concepts expressed by the code can be trade secrets.

You can patent a new algorithm and give the GenAI generate the code to the patent office as an example, and nobody can use that code in their product because the algoritm itself is protected.

Same with Trademarks. I can create a character and trademark it. Then I can use GenAI to create an image of it. The image itself is not protected by copyright, but I CAN force you not to use it because I need to defend my trademark.