A privacy-first CLI for semantic code search with local embeddings, call-graph tracing, and an MCP server for AI coding agents.
r14dd/patent
A CLI and TUI that searches package registries, GitHub and Hacker News for existing tools matching a plain-English dev tool idea before you build it.
- Stars
- 560
- Forks
- 23
- Open issues
- 4
- Last commit
- 3 days ago
What is it?
patent takes a plain-English description of a developer tool and searches 19 sources, including package registries such as crates.io, npm, PyPI, Homebrew, Packagist and Hex, along with GitHub and Hacker News. Matches are ranked locally by semantic similarity using embeddings rather than keyword matching, so differently worded prior art still appears.
Results are summarised as Open, Crowded or Saturated. Matches untouched for two or more years are flagged, and the verdict covers only what was found in the sources checked, so a clean result means keep looking rather than confirmed novelty. The verdict can be produced by a local Ollama model, an OpenAI-compatible API, or skipped entirely with --fast.
The tool offers an interactive TUI, JSON output for scripts, and exit codes that reflect the verdict. The engine is also published as a Rust library crate.
Key features
- 01Searches 19 sources, including package registries, GitHub and Hacker News, in one query.
- 02Ranks matches by semantic similarity computed locally with embeddings.
- 03Flags matches not updated in two or more years.
- 04Produces Open, Crowded or Saturated verdicts, using a local or OpenAI-compatible LLM or none.
- 05Offers an interactive TUI, JSON output and shell completions.
Use cases
- Checking whether a CLI or developer tool idea already exists before starting to build it.
- Scripting a go/no-go gate in CI using the exit code of the verdict.
- Searching for existing packages across several language ecosystems at once.
Quick start
- 1
Install with Homebrew
brew install r14dd/patent/patent - 2
Search for an existing tool matching your idea
patent "interactive cli to kill whatever's on a port"
Things to know
- On Linux, the prebuilt binaries and cargo install need glibc 2.38 or newer, so older distributions such as Ubuntu 22.04 need a newer container build.
In collections
Topics
FAQ
- What is patent?
- A CLI and TUI that searches package registries, GitHub and Hacker News for existing tools matching a plain-English dev tool idea before you build it. patent takes a plain-English description of a developer tool and searches 19 sources, including package registries such as crates.io, npm, PyPI, Homebrew, Packagist and Hex, along with GitHub and Hacker News. Matches are ranked locally by semantic similarity using embeddings rather than keyword matching, so differently worded prior art still appears.
- Is patent free to use? What license does it have?
- patent is open source under the Apache-2.0 license. Check the license terms before using it in commercial products.
- Is patent still maintained?
- Actively maintained. The last commit to patent was on Nov 3, 2026.
- What can I use patent for?
- Checking whether a CLI or developer tool idea already exists before starting to build it. Scripting a go/no-go gate in CI using the exit code of the verdict. Searching for existing packages across several language ecosystems at once.
- How do I install patent?
- Install with Homebrew: brew install r14dd/patent/patent Search for an existing tool matching your idea: patent "interactive cli to kill whatever's on a port"
- Where can I get patent?
- The source code and installation instructions are on GitHub: https://github.com/r14dd/patent
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
A local-first semantic code search engine that combines vector embeddings with ripgrep so you can query a codebase in natural language.
A CLI code search tool that parses code structure and ranks results by relevance, with no index required.
An OpenCode plugin that shows an inline translation tooltip when you select text in OpenCode Desktop or the terminal UI.
CLI proxy that filters and compresses shell command output before it reaches an AI coding agent's context, cutting token use.
Open-source embedding database for AI apps, storing documents and vectors to power semantic, hybrid and full-text search.