Your Code Might Not Be Yours Anymore. Your Brand Still Is.


Key Takeaways
- AI-generated code likely cannot be copyrighted under current US law — the Copyright Office requires human authorship, and writing a prompt usually doesn't qualify.
- Every AI-generated line of code either risks infringing someone else's copyright, inheriting an open-source license, or having no copyright at all.
- Patents and trade secrets can fill some gaps, but each has real limits for software startups — especially for anything you ship to customers.
- When code is easy to replicate, your competitive moat shifts to things that can't be generated: customer trust, proprietary data, distribution, and your brand name.
- Federal trademark registration has no authorship requirement — it's one of the few IP protections that works exactly the same whether humans or AI built your product.
Nearly 90% of developers now use AI coding tools — but AI-generated code may be impossible to copyright under current US law. Here's why your brand name is now your most defensible asset, and what founders and engineers should do about it.
If your team ships most of its code through Copilot, Cursor, Claude or another AI agent, you may own less of your product than you think.
That's the core argument of a new paper from Stanford Law professor Mark Lemley, bluntly titled _The End of Software Copyright_. As World Trademark Review reported last week, nearly 90% of developers now use AI coding tools. Lemley's view is that much of the code those tools produce probably can't be copyrighted at all under current US law.
I'm a lawyer, but this post isn't for lawyers. It's for founders, CTOs and engineers who are shipping fast with AI and haven't stopped to ask what that does to the value of the codebase. The short version: your code is becoming easier to copy, so your moat has to move somewhere else. For most startups, the asset that holds up best is the one you may be thinking about least: your brand.
Why AI-written code is hard to own
US copyright protects human authorship. The Copyright Office and the federal courts have said repeatedly that work generated by a machine, without enough human creative control, doesn't qualify. Writing a prompt usually isn't enough.
Lemley takes that rule and applies it to code line by line. He argues that every AI-generated line falls into one of three buckets:
- It closely matches proprietary code in the training data. Then you may be infringing someone else's copyright, not creating your own.
- It closely matches open-source code in the training data. Then it may carry that license's terms, which can mean anyone is free to copy it.
- It's new. Then no human authored it, so there's no copyright.
None of those buckets gives you a strong, exclusive right. You can still own the parts a human wrote, such as the architecture choices, the hand-tuned logic and the code someone rewrote. But that coverage gets thinner as the agent does more of the work.
There's also a practical problem engineers will recognize right away. Lemley points out that "Git doesn't record which lines came from the model," and agent labels attach to the commit, not the line. If you ever need to prove which parts of your product a human wrote, the tools you use every day probably can't show it.
Patents and trade secrets help, but only partly
The usual fallback options each come with limits for a software startup.
Patents. They need a human inventor too. The USPTO has allowed inventions that humans make with AI assistance. But if a human comes up with the idea and the AI writes the code, the human's contribution may look like an abstract idea, and software patents already struggle with that. Patents are also slow and expensive for a seed-stage company.
Trade secrets. They have no authorship requirement, which is why many AI-heavy teams rely on them. They work well for things you never ship, like backend services, internal tooling, model weights, pricing logic and data pipelines. They work badly for anything you hand to customers. Once something is public it stops being a secret, and anything a competitor can lawfully reverse-engineer is fair game.
Contracts. Your terms of service, EULAs and NDAs still do real work: they bind the people who agree to them. They don't stop a competitor who never signed anything from building the same feature from scratch.
None of these are silver bullets. Use a mix of copyright, trade secret, contract and patent protection, and assume each will cover less than it did five years ago.
When code is cheap, the moat moves
The bigger point isn't legal. Even code with full copyright protection is worth less when a competitor can rebuild your feature set in a weekend. There are a number of stories of companies skipping Slack, Teams and other software because they vibe-code versions that match their needs better in a weekend. Whether that's exaggeration or not, the future of coding will make it pretty easy to copy the functional features of software. AI lets competitors "draft around" protected code, so software companies will have to compete on other things.
So what stays scarce when anyone can produce code?
- Customers who trust you. Switching costs, integrations and relationships don't come out of a prompt.
- Proprietary data and feedback loops. What your product learns from real usage is hard to copy.
- Distribution and support. Being the team that answers the question in plain English with actionable next steps still counts for a lot.
- Your name. This is the one founders most often skip.
That last item matters because, unlike copyright, trademark law has no authorship problem. Federal trademark rights come from using a name in commerce and registering it. It doesn't matter whether a human or a model wrote the code behind it. A registered mark can last as long as you keep using it, and it gives you nationwide priority and a clear way to shut down copycats.
In a market full of near-identical AI-built apps, your name is how customers find the original and avoid the clones. It's also one of the few assets an acquirer can clearly see you own. For more on why trademarks matter for early-stage companies, see Are Trademarks Important for Startups? What Founders Should Protect and When.
A practical checklist for founders and engineers
- Lock down your name early. Run a clearance search before you commit to a product name, and file a federal trademark application for your company name and flagship product. An intent-to-use application can hold your spot before launch.
- Record what humans contribute. Keep short notes or design docs for the architecture and the parts you write or substantially rework by hand. Commit conventions that flag human-authored modules can help. You won't capture everything, and that's fine.
- Know which parts are secret. Decide what never leaves your servers, such as backend logic, data, prompts, evals and model configs. Restrict access, and make sure employees and contractors sign confidentiality and IP assignment agreements.
- Check what your AI tools pull in. Run license and code-similarity scanning in CI. Open-source obligations and accidental copying are real diligence risks.
- Tighten your customer terms. Make sure your ToS and EULA prohibit scraping, reverse engineering and building competing products where the law allows it.
- Invest in what can't be generated. That means data, integrations, support and community, all sold under a brand you own.
- Expect investors to ask. Questions about AI-generated code and IP ownership are increasingly showing up in diligence. Have clear answers ready.
If you're building with AI tools and haven't thought through your trademark strategy yet, Can You Trademark a Chatbot Name? Rules, Classes, and Filing Steps and Can You Use AI to Register a Trademark? are good places to start. And if your brand uses a logo generated by AI, read Can You Trademark an AI-Generated Logo? Copyright Won't Help Here before you file.
The bottom line
AI hasn't made software worthless. It has made software code less defensible on its own. The startups that hold their value will be the ones customers recognize and trust, and that recognition rests on a name you own outright.
Your codebase may be partly public domain someday. Your brand doesn't have to be. If you haven't protected your company or product name yet, start your trademark registration with Trademark Engine — run a search and file a federal application in minutes.
_This post is for general information only and isn't legal advice. Talk to an attorney about your specific situation._
Frequently Asked Questions
Under current US law, probably not on its own. The Copyright Office requires human authorship, and courts have consistently held that machine-generated work doesn't qualify. If a human made significant creative choices — architecture, hand-written logic, substantial rewrites — those parts may still be protected. But the more an AI agent does, the thinner your copyright coverage gets.
You can still use a combination of trade secrets (for anything that never leaves your servers), contracts (NDAs, EULAs, and ToS), and patents (for inventions where a human contributed the inventive concept). None of these are perfect substitutes for copyright, so using all of them together is the smart move.
Because trademark law has no authorship requirement. Rights come from using a name in commerce and registering it — it doesn't matter whether humans or AI wrote the code behind your product. A registered federal trademark gives you nationwide priority, the right to stop copycats, and an asset that lasts as long as you keep using it.
An intent-to-use (ITU) application lets you file a federal trademark before you've actually launched your product. It locks in your priority date so no one else can claim the name while you're still building. This is especially valuable for startups that want to secure a brand name before going public.
That's exactly the problem Professor Lemley highlights — standard tools like Git don't record which lines came from an AI model. The best practice is to maintain commit conventions or design documents that flag human-authored modules, and to keep notes on significant architectural decisions made by your team. It won't be perfect, but it creates a defensible paper trail.
Get Trademark Tips and Compliance Guidance
Subscribe for updates, insights, and resources that help you stay compliant and grow your mission.