AI Copyright 4 min read

Who Owns the Code Claude Code Just Wrote?

A question keeps showing up in developer Slacks and Hacker News threads: “I shipped this feature with Claude Code — can my employer claim it? Can I?” It sounds simple. The answer, as of 2026, is a mess. AI-generated code lives in a legal gray zone that neither Congress, the Copyright Office, nor any clean court ruling has fully mapped.

Start with the cleanest rule: the US Copyright Office (USCO) has said, repeatedly, that output generated solely by AI without meaningful human creative input is not copyrightable.

The principle traces back to Thaler v. Perlmutter (2023) and was codified further in the USCO’s 2025 AI guidance. Translation: if you typed “make a login page with JWT auth” and shipped what came out, that code is — in the eyes of US law — closer to public domain than to anything you own.

Which immediately raises the next question. If nobody owns it, what happens when you commit it to a GPL repo? Or your employer’s private monorepo? Who’s liable when something breaks?

“Sufficient Human Authorship” Is the Whole Ballgame

Anthropic’s terms of service contain a clause worth reading: Anthropic assigns to the user all right, title, and interest in Claude’s outputs. OpenAI says something similar. The AI vendors have collectively walked away from any ownership claim.

But that’s a contract between you and the vendor. It doesn’t tell you whether the government will actually enforce a copyright on the resulting code. That depends entirely on how creatively you intervened.

The USCO’s working framework, simplified:

  • Pure prompt-to-output, no edits: not protectable
  • Meaningful modification or restructuring of generated code: only the human-authored portions are protected
  • AI used as a tool while the human designs the architecture: likely protectable

The catch: “meaningful modification” has no consistent legal definition. Every case is a fact-finding exercise.

There’s a sharper concern hiding behind the copyright debate, and it’s not really about copyright at all. It’s training data contamination.

What happens if Claude Code emits a function that turns out to be near-identical to a chunk of GPL-licensed code it saw during training? This is the “memorization” problem. Suddenly your closed-source SaaS contains GPL-derivative code, and the GPL’s viral clause means your entire product could be argued into open-source obligations. That’s an existential risk, not a legal nuisance.

This is also why Doe v. GitHub — the class action over Copilot reproducing licensed code without attribution — is still grinding through the courts. The outcome will set the rules for every AI coding assistant on the market.

The Practical Playbook

Strip out the legal theory and three habits actually move the needle:

Check your employer’s policy first. Most large companies now have AI coding guidelines. Some require generated code to be flagged in comments. Some restrict you to a specific approved tool. Some forbid AI-generated code in security-sensitive paths entirely. Don’t assume.

Run a license scanner. Tools like FOSSA and Snyk have aggressively expanded their AI-output scanning over the past year, specifically to catch GPL-style contamination before it ships. This is now table stakes, not paranoia.

Be able to defend the code. If you can’t walk a code reviewer through every function — what it does, why it’s structured this way, what you’d change — you’re exposed both technically and legally. Document your edits. Code review comments, commit history, and refactor diffs are exactly the breadcrumbs courts use to identify “human creative contribution.”

The Bigger Question

The copyright fight is really a proxy for something deeper: what counts as authorship when the tool can write the first draft? The smarter the tool gets, the harder it becomes to point at any single line and say I made that.

Look at the code Claude Code wrote for you yesterday. How much of it is genuinely yours? If you can answer that with confidence, you’re already ahead of half the industry — and probably half the lawyers arguing about it.

AI Copyright Claude Code AI Coding Intellectual Property Open Source

Comments

    Loading comments...