GitHub as prior art: when open source blocks a patent

Short answer: Public repositories, packages, and gists can defeat novelty (§102) and support obviousness combinations (§103). If your invention already shipped in a public repo before your effective filing date, a patent application is usually the wrong spend.

Software inventors tend to search patents and stop there. But prior art is not limited to patents, and code can be prior art even if you never saw it. Here is how that works, including when your own repo is the problem.

Why a repo can count as prior art

Under 35 U.S.C. 102(a)(1), subject matter "described in a printed publication" or "otherwise available to the public" before your effective filing date can be prior art. The USPTO's examining manual treats online material as a printed publication if it was accessible to people concerned with the field. It also says there is no need to prove anyone actually looked at it.

Two details matter for repos. The first is accessibility: a repo with no stars can still count, but the question is whether people in the field could have found it. The second is the date: the manual treats electronic publications as available from when they were publicly posted, so an undated item is harder to rely on. Commit history and release dates can help establish timing, though how much they prove depends on the facts.

What can count for code

The license does not matter to this test. Nothing in §102 turns on whether code is MIT, GPL, or unlicensed.

Novelty and obviousness are different problems

Novelty asks whether one reference already discloses what you claim. Obviousness asks whether the differences would have been obvious. Under §103, the question is whether the claimed invention as a whole would have been obvious to a person of ordinary skill before your effective filing date. So you can clear novelty, because no single repo has everything, and still face a rejection built on combining references. That is common in software, where most systems are assembled from known parts.

When the prior art is your own repo

In the US, you generally have up to one year from your own public disclosure to file. Section 102(b)(1) excepts an inventor's own disclosure made one year or less before the effective filing date. Other places can be stricter. Article 54 of the European Patent Convention counts everything made available to the public before the filing date, so a public push before filing can be a serious problem there.

  1. Note the date anything first went public: repo, package, launch post, demo.
  2. Count back from that date, not from when you decide to file.
  3. If international rights might matter, file before you publish.
  4. A provisional application can set an earlier date, but only for what it discloses in enough detail, and you have 12 months to follow up.

AI coding tools raise the risk

Copilot, Cursor, and ChatGPT often surface patterns already common upstream. That does not prove your code is copied, but it does suggest the neighborhood is crowded. Score the inventive module and review overlap before you file. Tool guide: patent GitHub Copilot code.

How to search without becoming a librarian

  1. Search for the mechanism (conflict-free sync, attestation flow), not the brand name
  2. Check patents and open-source neighbors
  3. Search the words a maintainer would use in a README, not the words from your pitch
  4. Run Patent PreCheck for a free prior-art teaser
  5. Upgrade to Interactive Code Review for a deeper overlap narrative before counsel hours

If you find close art

Narrow claims to what is truly different, improve the technical story for Alice, or choose trade secret if disclosure would not help. Finding it now is cheaper than having an examiner find it after you have paid for drafting. Related: prior art search for code.

Common questions

Does a repo nobody starred count as prior art?
It can. Nobody has to have actually read it. For an online publication, the question is whether it was accessible to people working in the field and when it was posted.
Does my own public repo count against me?
In the US you generally have up to one year from your own public disclosure to file. Other systems can be stricter. The European Patent Convention counts what was public before the filing date, so a public push can end rights there.
Is a private repo prior art?
Keeping code private avoids making it available to the public through the repo itself. Sales, demos, public use, and marketing posts are separate routes to disclosure, so check those too.

General information, not legal advice. A score is a screen, not a legal opinion, and no tool or attorney can promise a patent will issue. Talk to a registered patent attorney before you file or rely on any of this.