GitHub Copilot

Can you patent GitHub Copilot code?

Short answer: Yes, Copilot-assisted code can support a patent when you conceived the inventive solution. The bigger risk is novelty: public code can be prior art, and a technique already out there can block you even if you never saw it.

Copilot helps developers move fast, and it works in a world full of public code. So a Copilot user should ask two separate questions: did I conceive this, and was it already public? This page covers both, plus how licenses fit in.

The public-repo novelty trap

If the technique was already public, it can count against you whether or not you ever saw it. Under 35 U.S.C. 102(a)(1), subject matter "otherwise available to the public" before your effective filing date can be prior art. Copilot users often reinvent patterns already committed upstream. Completing a pattern quickly can feel like inventing it, so treat a suggestion that arrived fully formed as a reason to look.

Patent PreCheck flags overlap and shows the closest matches with links before you pay filing fees. Guide: Prior art search for code

Autocomplete versus invention

Copilot completing your line is different from Copilot choosing your design. The USPTO treats AI systems as tools, so accepting completions does not by itself cost you inventorship. What you need to be able to show is that you conceived the specific solution.

For the second case, be careful about claiming that part as your invention, and raise it with your attorney. Inventorship basics: USPTO AI inventorship rules.

Licenses and patents are separate questions

A license tells you whether you may copy code. It does not tell you whether a technique is new. Nothing in the §102 prior-art test turns on MIT, GPL, or no license at all. If a suggestion resembles existing code, you may have a copyright or license question and a separate novelty question. Do not assume that clearing one clears the other.

What to do when a suggestion looks familiar

  1. Name the mechanism in plain words and search for that, not your product name.
  2. Read the closest public code and patents. Note what they do not do.
  3. Find the difference that produces a technical result, such as lower latency or a failure mode removed.
  4. If there is no real difference, consider dropping that part from your claims. Trade secret may fit other parts better.

Watch your own repo too

Your own public commits are disclosures. The US gives inventors a one-year grace period for their own disclosures, but the European Patent Convention counts anything made available to the public before filing. Moving a repo from private to public is worth a pause if patents might matter.

GitHub Action: patentability on every PR

Ship the official Patent PreCheck GitHub Action. It scores a representative source file (or paths you configure) on each pull request. Marketplace-ready composite action; no repo clone required.

uses: Patent-PreCheck/Patent-PreCheck/.github/actions/patent-precheck@v1

Details: GitHub Actions integration

README badge

Show reviewers you ran a precheck:

[![Patent PreCheck](https://patentprecheck.com/img/badges/patent-precheck-scored.svg)](https://patentprecheck.com/analyze)

Common questions

Does Copilot assign inventorship?
No. Inventors must be humans who conceived the invention. Copilot is a tool; document your design decisions.
If a repo I never saw has the same technique, does it count against me?
It can. Prior art does not depend on whether you knew about it. If the technique was available to the public before your effective filing date, it can defeat novelty or support an obviousness rejection.
Does an open-source license change whether code is prior art?
Nothing in the prior-art test in 35 U.S.C. 102 turns on the license. Permissive, copyleft, and no license at all raise copying questions, which are separate from whether the code discloses the technique publicly.

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.

Last updated: 2026-11-22

Score your code before you file

Get your free score →