News for hackers. Stuff that matters.
Re:All AI-generated code should be Open Source by jrmg on Sunday November 15, 2026 @10:49AM (#50507828)
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.

Re:All AI-generated code should be Open Source by fnord77 on Sunday November 15, 2026 @11:27AM (#50508169)
[delayed]
Re:All AI-generated code should be Open Source by jrmg on Sunday November 15, 2026 @11:48AM (#50508369)
It’s always been rather vague. It sort of has to be because humans are always thinking up new ways to express themselves creatively.

Why did Andy Warhol hold the copyright on his painting of a Campbell’s soup can?

Reasonable people have been disagreeing about where human expression begins and ends for centuries.

Re:All AI-generated code should be Open Source by ssalka on Sunday November 15, 2026 @12:02PM (#50508517)
Wait until you learn about how we determine whether use of copyrighted content is an infringement or not:

https://fairuse.stanford.edu/overview/fair-use/four-factors/

Re:All AI-generated code should be Open Source by dspillett on Sunday November 15, 2026 @12:09PM (#50508570)
Of course it is vague, these things always are for both good reasons (it avoids objective limits creating silly situations between what is protected and what can be had through an obvious loophole) and bad (written by lawyers to keep lawyers in business interpreting and arguing about it).

It is fairly explicit in saying that what AI makes for your is not copyrightable, the vague comes from how much work you need to do to make it your output and not the AIs. Too many people seem to equate "asking for something to be made" with "I made this!", as difficult as it will be to make a prescriptive rule about that which pleases enough people (you'll never please everyone) it would appear to be necessary unless we just accept the free-for-all "no one owns anything because it can just be copied, and the copies copied too" option.

Re:All AI-generated code should be Open Source by skhameneh on Sunday November 15, 2026 @11:30AM (#50508195)
It’s so reasonable, it’s almost offensive. /s

I’ve encountered (many times) people talking about the copyright office as if they don’t support copyright of things touched by AI and I’m constantly correcting them that their guidance is driven by human expression (and not the tools used). It seems like a lot of people don’t want to accept that a reasonable premise is set because it doesn’t fit their agenda or outrage engagement.

Re:All AI-generated code should be Open Source by mr_toad on Sunday November 15, 2026 @12:11PM (#50508597)
Would you argue that the output of a zero or one shot prompt was sufficiently influenced by human creativity to qualify for copyright?
Re:All AI-generated code should be Open Source by jrmg on Sunday November 15, 2026 @01:03PM (#50509113)
With the caveat that this is my own extrapolation of the rules - and what I think is reasonable: How creative was the prompt?

"Translate my very detailed pseudocode into Ruby: <pages of pseudocode>": probably.

"Write me a game about a horse. Don't stop until it's finished. Make no mistakes.": probably not.

And unfortunately for us engineers, there's a very big, fuzzy, not-precisely-definable range in between of "I'll know it when I see it".

Re:All AI-generated code should be Open Source by semiquaver on Sunday November 15, 2026 @11:34AM (#50508248)
How dare you disrupt the narrative with facts and reasonable moderate positions? OP is much more excited in tearing the world down with “one weird trick”
Re:All AI-generated code should be Open Source by what on Sunday November 15, 2026 @11:44AM (#50508336)
> Based on the functioning of current generally available technology, prompts do not alone provide sufficient control.

So slop doesn’t qualify for copyright. I’m not sure why you didn’t emphasize this one.

Re:All AI-generated code should be Open Source by timbritt on Sunday November 15, 2026 @12:08PM (#50508568)
This is why I keep a comprehensive and exhaustive record of infrastructural, architectural, business logic and code-level decisions in the form of tasks/issues for everything I build. It’s literally a real-time record of my personal involvement in the design of the system.
Re:All AI-generated code should be Open Source by bilbo0s on Sunday November 15, 2026 @02:18PM (#50509771)
Everyone should have an engineering notebook. A lot of people will find out the hard way that engineering notebooks are just table stakes in the new era.

Having said that, it's important to point out, at least as far as attorneys have advised me, that notebooks do not protect you from copyright claims if an LLM generates a section of your code that is a verbatim (or near verbatim) copy of already copyrighted code. So if you're using llm's to generate something similar to some open source project somewhere, tread lightly. I assume using llm's to generate something similar to some proprietary software package would be less of an issue since the llm would never have had access to that software's codebase in any case.

Re:All AI-generated code should be Open Source by Buttons840 on Sunday November 15, 2026 @03:29PM (#50510372)
Who broke the copyright though? Me who unknowingly copied some code from a webpage that gave me permission to do so, or the webpage that stole it from somebody else?

I guess both?

In this case, the "webpage" is ChatGTP and a trillion dollars of investor money or whatever, so I'm guess they won't be held responsible, but I might, even though I'm arguably guilty of a far lesser crime.

Re:All AI-generated code should be Open Source by tredre3 on Sunday November 15, 2026 @07:20PM (#50512431)
I suppose part of the issue is that you're knowingly and willingly use/buy code that you know to be stolen. There doesn't seem to be any ambiguity in your mind, you used the word "stole" yourself.

Thus in some sense it's like purchasing stolen goods in real life. Sure it's a lesser crime than stealing it yourself. But doing so knowingly is still a crime almost everywhere.

Re:All AI-generated code should be Open Source by Buttons840 on Sunday November 15, 2026 @09:21PM (#50513258)
I'm talking about using code generated by AI and I don't know it to be stolen. In fact, I see that everyone is using the AI and the AI companies themselves are free of criminal charges, and so I assume what the AI gives me is legal to use.
Re:All AI-generated code should be Open Source by gopher_space on Monday November 16, 2026 @12:38AM (#50514408)
There's no reason for us not to assume my work and writing are part of the whole ball of wax, so I hereby give you permission to go nuts.
Re:All AI-generated code should be Open Source by Joakal on Sunday November 15, 2026 @10:54PM (#50513818)
AI companies have bought data legitimately from companies like Stack Overflow. So its not always stolen.

A pawn shop might be a better analogy. Potential to buy cheap goods that could be stolen.

Re:All AI-generated code should be Open Source by jimbokun on Sunday November 15, 2026 @05:45PM (#50511678)
I suppose generating the same functionality with a different programming language than the original would make it very unlikely to accidentally duplicate existing code.
Re:All AI-generated code should be Open Source by bilbo0s on Sunday November 15, 2026 @06:35PM (#50512060)
Insightful

That might actually be a good idea in the future:

Stay away from popular programming languages.

Re:All AI-generated code should be Open Source by LeFantome on Sunday November 15, 2026 @11:18PM (#50513976)
That has already been established not to be a defence.

Which makes sense. I cannot translate Harry Potter to another language and claim it is an original work.

It would make it harder to prove perhaps.

Re:All AI-generated code should be Open Source by jgalt212 on Sunday November 15, 2026 @04:08PM (#50510781)
I guess, but if your ip enters the training set and then others use these models to generate their own but similar ip then the original ip creator is in a similar but weaker position than the NY Times and other copywrite holders are in.
Re:All AI-generated code should be Open Source by trinsic2 on Monday November 16, 2026 @01:36AM (#50514711)
Same here, but I do it to remind myself where I've been and where i am going.
Re:All AI-generated code should be Open Source by beej71 on Sunday November 15, 2026 @12:30PM (#50508805)
> Copyright does not extend to purely AI-generated material, or material where there is insufficient human control over the expressive elements.

Does creatively hitting RETURN count? Asking for a friend.

Re:All AI-generated code should be Open Source by throwawayffffas on Sunday November 15, 2026 @12:47PM (#50508963)
It does not, even if you prompt it to do stuff, it does not.
Re:All AI-generated code should be Open Source by andybak on Sunday November 15, 2026 @02:11PM (#50509725)
"Prompt to do stuff" could mean "make me a game. make it good" or it could mean line by line guidance and specific input on every algorithm.

Sometimes I prompt simply to save me typing.

Re:All AI-generated code should be Open Source by rixed on Sunday November 15, 2026 @12:45PM (#50508950)
It doesn't say much about the copyrights of the many authors whose work was in the model training data, or does it?
Re:All AI-generated code should be Open Source by verdverm on Sunday November 15, 2026 @12:51PM (#50508999)
Courts have been deeming that fair use due to the transformative nature.
Re:All AI-generated code should be Open Source by Animats on Sunday November 15, 2026 @01:36PM (#50509417)
Yes.

One precedent is that it's not unusual for artists to practice by going to art galleries and sketching or drawing the art on display. It's a standard art student assignment. If that's not a copyright violation, an LLM doing something similar isn't.

Re:All AI-generated code should be Open Source by ajmurmann on Sunday November 15, 2026 @02:00PM (#50509619)
What if it’s verbatim though? If I go to a museum and photograph the work and then sell prints of the photo is that find also?
Re:All AI-generated code should be Open Source by dcrazy on Sunday November 15, 2026 @04:39PM (#50511090)
That is a violation of the artist’s copyright.
Re:All AI-generated code should be Open Source by _aavaa_ on Sunday November 15, 2026 @02:04PM (#50509645)
> LLM doing something similar isn't.

Why? An LLM isn’t a human. Why should the same rules apply to it?

Re:All AI-generated code should be Open Source by verdverm on Sunday November 15, 2026 @02:19PM (#50509782)
the same rules apply to the humans building, operating, and using them

objects don't have legal entity status

Re:All AI-generated code should be Open Source by fn-mote on Sunday November 15, 2026 @02:13PM (#50509733)
How is the LLM case similar at all? As soon as the student’s use of the museum piece crosses into the commercial realm (eg pay the student to draw it for you), I expect you to have legal trouble.
Re:All AI-generated code should be Open Source by godwinson__4-8 on Sunday November 15, 2026 @02:33PM (#50509901)
Wrong. You're missing the point. A student goes and trains on preexisting work.

They don't sell that exact work verbatim. It's part of their training as an artist. They don't sell their student assignment. It prepares to them to go on and create their own works, which of course, then they can sell.

In the same way the LLM is synthesizing new works based on training, not a 1:1 copy.

I'm not endorsing a particular perspective but you need to at least understand the argument if you're going to dismiss it.

Re:All AI-generated code should be Open Source by postepowanieadm on Sunday November 15, 2026 @02:46PM (#50510007)
Students only may use works that's been made available for their training.
Re:All AI-generated code should be Open Source by dcrazy on Sunday November 15, 2026 @02:51PM (#50510063)
In the sense that the museum can kick them out, and that they cannot break into another artist’s studio to train on their works.

If I have legal access to copyrighted artwork, the law permits me to train my skills by copying that artwork as long as I haven’t agreed not to.

Re:All AI-generated code should be Open Source by godwinson__4-8 on Sunday November 15, 2026 @02:55PM (#50510093)
That's fine if that's your contention but that's a separate question.

If you want to pursue this digression, I would just caution you. Given how much information is "available" today I just really don't think this is a very compelling point. It seems quite obvious to me LLMs are a child of the internet, that is, of widely available data. They would have gotten sufficient availability at more or less the same pace eventually. It doesn't address the question of the copyright status of their own works at all to bring this up as if it proves something, because I presume you believe there are sufficient cases of theft in the training data to damn the entire effort.

Instead what is happening is people who can prove such violations of their own rights are suing and will be paid out, and the show will go on. Just like if a student downloads a PDF we don't expect to garnish their wages in perpetuity.

Re:All AI-generated code should be Open Source by pessimizer on Sunday November 15, 2026 @03:42PM (#50510496)
It's not a real argument. It's an equivocation over the word "training" when referring to something that is done to and animal or a person, and "training" when it is used as a metaphor for mechanically updating weights in a matrix.

If data for a computer program is literally "training," then I'd like to see a proof that going to college is literally updating weights in a matrix to be processed by a class of computer programs.

I'd also like to rename "shooting people who annoy me" into "paying my taxes in full." That would do double duty, because I'd get to shoot people and my taxes would be covered.

> In the same way the LLM is synthesizing new works based on training, not a 1:1 copy.

This has nothing to do with the "training" argument. I can't reprint Harry Potter if I change every mention of Harry Potter into "Harry Cobbler." I also can't trade zip files of copyrighted material freely, although these don't resemble the original works at all. I can also, as a person, be trained to reproduce 1:1 copies of things. That makes it both indisputably training, and indisputably copyright violation.

The selection of paintings to be copied is particularly convenient because paintings can't be copied exactly (not even a photograph is an exact copy of a painting; it's the image of a painting that can hold a copyright, not the painting itself.) Texts, however, can be copied exactly, and many programmers began their own training by typing in programs from books with their own hands, which we were told would give us an instinct that would help us write our own programs. Those programs were obviously still protected by copyright, even when we typed them up ourselves.

People are playing propaganda games in order to pretend that the copyrights of LLM training material aren't being violated. They're rarely making logical or legal arguments. They just say something about a human learning and a computer "learning," and say since humans learn and own things that they produce based on that learning than computers should be able to "learn," and own things that they produce based on that "learning." It's a motivated word game, not a serious argument.

Re:All AI-generated code should be Open Source by gopher_space on Monday November 16, 2026 @01:13AM (#50514581)
I mean the whole

> A student goes and trains on preexisting work.

point is already shaky. Some of them kind of do?

Re:All AI-generated code should be Open Source by handbanana_ on Sunday November 15, 2026 @04:00PM (#50510701)
Not the same. The LLM--assuming it's using diffusion, has the exact image of the original in its training data. There is really no human equivalent to that advantage.
Re:All AI-generated code should be Open Source by verdverm on Sunday November 15, 2026 @05:50PM (#50511740)
I do not believe they have exact copies, but enough ingrained to produce very similar images. I would be very surprised if they were byte identical, with a margin of error, to the original.

I suspect this applies more to audio/visual than it does text or code.

Re:All AI-generated code should be Open Source by arcwhite on Sunday November 15, 2026 @05:02PM (#50511311)
Taking a photograph of that art and reselling it would be, though.
Re:All AI-generated code should be Open Source by jimbokun on Sunday November 15, 2026 @05:46PM (#50511687)
Do we have to treat humans and LLMs identically under the law?
Re:All AI-generated code should be Open Source by CharlesW on Sunday November 15, 2026 @01:52PM (#50509548)
"Transformative nature" is just one of several factors that go into deciding if something is fair use. Also, fair use is decided case by case in the courts, so one can't say that "training LLMs on copyrighted materials is fair use".

Model vendors know this isn't fair use, given that they're self-censoring the training and/or generation of copyrighted materials by entities big enough to hurt them. As usual, the rest of us have no recourse other than bend over and take it.

Re:All AI-generated code should be Open Source by stale2002 on Sunday November 15, 2026 @03:45PM (#50510538)
> Also, fair use is decided case by case in the courts,

> Model vendors know this isn't fair use

Pick a lane dude. Either it's possible for us to make legal analysis and best guesses or uhh "we have no idea it's up for the courts to decide!"

Yes we know it's up for the courts to decide. And people are making argument about what those courts will do.

That's how legal analysis works.

Yes, it is perfectly possible to talk about fair use and follow existing guidelines on it and the government has already make statements that this stuff is likely transformative.

Re:All AI-generated code should be Open Source by CharlesW on Sunday November 15, 2026 @05:46PM (#50511698)
> …the government has already make statements that this stuff is likely transformative.

Bullshit.

"…the [Copyright] Office rejects two common arguments about the transformative nature of AI training. As noted above, some argue that the use of copyrighted works to train AI models is inherently transformative because it is not for expressive purposes. We view this argument as mistaken. […] Nor do we agree that AI training is inherently transformative because it is like human learning. To begin with, the analogy rests on a faulty premise, as fair use does not excuse all human acts done for the purpose of learning." — Copyright and Artificial Intelligence, Part 3: Generative AI Training, United States Copyright Office

Re:All AI-generated code should be Open Source by verdverm on Sunday November 15, 2026 @06:05PM (#50511851)
Courts are also part of the government and have said otherwise. It is not monolithic, hence the "we view this argument as mistaken..."

Several points in that opinion/report (not a policy document) from the USCO also seem to be contrary to rulings like https://en.wikipedia.org/wiki/Authors_Guild,_Inc._v._Google,....

Re:All AI-generated code should be Open Source by pessimizer on Sunday November 15, 2026 @03:23PM (#50510327)
> Courts have been deeming that fair use due to the transformative nature.

A court has deemed this fair use. The transformation is obviously mechanical, though, unless you think computers are people.

Re:All AI-generated code should be Open Source by postepowanieadm on Sunday November 15, 2026 @02:36PM (#50509928)
Sure it does - completely illegal. Also, to use someones work (a result of creativity) in a certain way you need a permission to use it that way - even if you owned a book you need a specific permission to feed it to llm. However there's also the golden rule - who has gold makes the rules.
Re:All AI-generated code should be Open Source by dcrazy on Sunday November 15, 2026 @02:52PM (#50510074)
You don’t understand copyright law.
Re:All AI-generated code should be Open Source by calibas on Sunday November 15, 2026 @01:50PM (#50509528)
So copyright only applies if there's sufficient human control, and prompts alone do not demonstrate sufficient control. Exactly what counts as "sufficient human control" must be analyzed on a case-by-case basis.

That means I can't know if my AI generated code can be copyrighted unless someone takes it to court?

Re:All AI-generated code should be Open Source by Garlef on Sunday November 15, 2026 @02:42PM (#50509979)
So...

• What about non-ai code generators (such as https://heyapi.dev/)?

• And what about a code generator that is a hybrid? (So: Something like heyapi but with LLM/agents intertwined)

Re:All AI-generated code should be Open Source by za_creature on Sunday November 15, 2026 @04:25PM (#50510946)
Determinism is key.

By which I mean deterministic outputs, not necessarily deterministic processing.

Re:All AI-generated code should be Open Source by acuozzo on Sunday November 15, 2026 @05:45PM (#50511680)
> Determinism is key.

So LLM-generated code is fine as long as the temperature is set to 0?

Re:All AI-generated code should be Open Source by za_creature on Sunday November 15, 2026 @06:21PM (#50511954)
No, but temp = 0 is not enough for determinism anyway

https://news.ycombinator.com/item?id=50108753

Re:All AI-generated code should be Open Source by jimbokun on Sunday November 15, 2026 @05:43PM (#50511664)
I think a lot of people seeking to profit from AI generated content might get a rude awakening if their business model ends up in court, according to this analysis.

Like if a competitor literally copied all of Spotify’s AI generated music and offered it for free, Spotify would have no recourse.

Maybe Spotify doesn’t care, but it’s something I hadn’t considered.

Re:All AI-generated code should be Open Source by hobo123 on Monday November 16, 2026 @01:17AM (#50514601)
That music is worth nothing, so worth is proportional to copyright in this case.

Nobody would Napster and steal that music. And people can generate similar music for very cheap. Nobody will license that music, say, to use on their game or movie soundtrack.

Spotify only uses it to water down costs for the many eyeballs, or rather earlobes, they have.

Re:All AI-generated code should be Open Source by waterTanuki on Sunday November 15, 2026 @07:21PM (#50512437)
> • Copyright does not extend to purely AI-generated material, or material where there is insufficient human control over the expressive elements.

This is the part that needs to be defined either via court ruling or legislation. What constitutes "purely AI-generated material"? If I ask claude code to write a new OS kernel, and then write one comment on one utility function, or change a single variable name, is the code mine? Patent Law lacks a fine-grained model for defining ownership of code bases which are often a plethora of licenses and ownership.