You file the provisional patent application on a Tuesday, pay the small entity fee, and feel like you've finally done something real for the company. Eleven months later your CTO forwards you a Slack thread: a developer who left six months ago just published a repo with a suspiciously familiar scheduling module. That's when you realise the patent protects the idea, but nothing protects the code—because nobody made him sign an invention assignment agreement.
I've watched this exact scene play out more than once, and it's the reason I now think the best way to protect intellectual property for a tech startup is almost never the flashiest one. It's the boring paperwork you do before the first commit.
Key Takeaways
- Trade secrets—not patents—are usually the right primary tool for software, because source code moves faster than the patent office.
- Copyright covers your code automatically, but only if you can prove who wrote which line and when.
- Every founder, employee, and contractor needs an invention assignment clause, signed before they touch the repo.
- AI-generated code introduces ownership questions that no contract fully resolves yet; document your inputs and review the output.
- A provisional filing buys you twelve months of "patent pending" for a modest fee, but it only helps if you file the follow-up in time.
- Trademark is the cheapest, fastest protection you can get, and the one most startups forget until a cease-and-desist lands.
The four main types of IP protection, and which ones actually fit a software startup
When people ask what the main categories are, the textbook answer holds up: patents, trademarks, copyrights, and trade secrets. The textbook stops there, though, and that's where founders get into trouble—because those four tools have wildly different price tags, timelines, and failure modes when applied to software.
What are the four main types of IP protection?
Patents grant a limited monopoly on an invention in exchange for publishing how it works. Trademarks protect the mark under which you sell—your name, your logo. Copyright covers original expression, including source code, the moment it's fixed in a tangible form. Trade secrets cover information you keep confidential and that has commercial value precisely because it's secret.
The one that surprises people: copyright attaches automatically. You don't register anything to own it. What registration buys you in most jurisdictions is the ability to enforce it more easily—in the US, for instance, you generally need a registration before you can sue on a US work, so it's a procedural gate rather than the source of the right.
What is the best way to protect intellectual property?
There isn't one. There's a best combination for your asset type, and getting that mapping wrong wastes money you don't have.
Here's how I'd assign it in practice:
| Asset | Primary protection | Why | Typical cost profile |
|---|---|---|---|
| Source code | Copyright + trade secret | Automatic, cheap, and doesn't require disclosure | Near zero to modest |
| Brand name, logo | Trademark | Fast, inexpensive, and protects customer recognition | Low, per class and jurisdiction |
| A novel algorithm or hardware method | Patent, possibly | Only if it's genuinely technical and non-obvious | High, and slow |
| Training data, heuristics, tuning | Trade secret | Unpatentable, but valuable if it stays private | Near zero, but requires discipline |
| Product design, UI copy | Copyright | Automatic, protects expression not function | Near zero |
Notice what dominates the middle column. For a typical early-stage software company, trade secret and copyright do most of the work, and patents are the exception you pursue when you have a genuinely defensible technical claim and the budget to see it through.
How can you protect the intellectual property of software?
Start with the uncomfortable truth: patents and software are a poor match more often than the patent bar would like to admit. By the time a patent issues, the codebase has moved on. The mechanism that felt novel at filing might be commoditised.
So the practical answer is process, not paperwork.
Close the ownership chain first
Before you think about filing anything, ask yourself one question: can I prove that this company owns everything in this repository? If a single contributor wrote code without an effective assignment of rights, you have a gap, and gaps are what kill deals in diligence.
What that means in practice:
- Employee agreements with an invention assignment clause that covers work made in the scope of employment
- Contractor and freelancer agreements with an explicit assignment of IP, not just a work-for-hire label (work-for-hire language doesn't automatically cover everything you'd expect)
- A register of contributors and what each one touched, so you can trace provenance
- Written consent for any open-source dependency with copyleft terms—know what you're pulling in and under which licence
I once reviewed a repo where the entire auth layer had been written by a contractor paid in invoices labelled "consulting." The assignment clause was absent. Fixing it meant a new agreement and a payment—uncomfortable, but far cheaper than discovering it during an acquisition.
Treat trade secret as an operating discipline, not a legal filing
Trade secret protection requires that you actually keep the thing secret. That's a behavioural requirement, and it's the one most startups fail. Reasonable steps, in plain terms:
- Access controls on repositories and production systems, with named owners
- NDAs with counterparties before detailed technical conversations
- Confidentiality clauses in employment agreements, with clear definitions
- A short, written list of what counts as a trade secret in your company—because "everything" is not a policy
If you can't produce any of that in a dispute, the argument that something was a secret gets much harder to make.
How to protect intellectual property when using AI
This is the part of the conversation that most older guides skip entirely, and it's now the question I get asked most often. The honest answer: the law is unsettled, and your best protection is documentation and review, not any single contract clause.
Who owns AI-generated output?
In several major jurisdictions, human authorship is a requirement for copyright. Where a work is generated with substantial machine contribution and no meaningful human creative input, protection may be unavailable. Where a human directs, selects, and edits, the picture is better—but the line is not bright.
What you can do:
- Keep a record of what was AI-generated and what was human-authored
- Have a human review and substantially revise generated code before it enters the main branch
- Check your AI provider's terms for input and output ownership—they vary widely, and some reserve rights or use inputs for training
- Avoid pasting sensitive trade secrets or client data into consumer tools without a confidentiality commitment
The mistake I made early on was assuming that because I'd prompted the model, I owned the output. Reading the terms properly took an afternoon and changed how the team used these tools.
AI-assisted inventions in a patent application
If AI contributed to an invention, you need to be able to identify the human inventor(s) who conceived the claimed subject matter. Naming an AI system as an inventor has been rejected in major patent offices. If you can't identify a human who conceived the invention, you likely don't have a patentable invention to file.
Which brings up an obvious problem: invention records matter more than ever. Keep dated notes on who conceived what and when, because the inventor declaration is a sworn statement.
Filing sequence: what to do, in what order
Founders often ask me whether to file a patent "just in case." My answer, honestly, is usually no—not at pre-seed, unless the technical claim is the company's entire defensible asset.
Provisional versus non-provisional—what's the difference in practice?
A provisional application is a lower-cost filing that establishes a priority date and lets you mark the product "patent pending." It does not itself become a patent. You have twelve months to file a non-provisional application claiming that priority, and if you miss the window, the provisional lapses and you lose the date.
The trap: the provisional must describe the invention well enough to support the claims you later make. A thin, hastily written provisional gives you a date but weak coverage. I've seen founders pay for a provisional written in an afternoon and then discover at conversion time that the claims they needed weren't supported.
Do the trademark before you fall in love with the name
Trademark is the cheapest, quickest protection available, and it protects the thing your customers actually recognise. Search the mark before you buy the domain and the merch. Filing early in your home market and in the jurisdictions where you sell is usually the right call.
Real talk: a rebrand after launch is expensive in a way that a trademark search is not.
What to do this month, in order
- Audit who has contributed code, and confirm each contributor has signed an assignment clause
- Lock down repository and production access with named owners
- Search and file your trademark
- Write a one-page list of what you treat as trade secrets, and store it somewhere controlled
- Review your AI tool terms for ownership and training clauses
- Only then, evaluate whether a provisional filing is worth it—and consult a patent attorney if the answer looks like yes
None of this is glamorous. The patent filing feels like progress because it comes with a receipt. But the ownership chain and the access controls are what let you sleep at night—and what let a diligence team finish their review without finding a hole in your cap table's most valuable asset.
The question I'd leave you with: if a former contributor published your repository tomorrow, could you show the paper trail proving it was never theirs to publish? If the answer is a pause rather than a yes, that's your next task, and it costs far less than the alternative.