RepoSniffer
There's a repo for that. Let RepoSniffer find it.
AI-first GitHub repo discovery. Describe a feature in plain language — "markdown editor with live preview" — and RepoSniffer returns a ranked, adoption-grade list of open-source projects that implement it, with evidence and quality signals (stars, activity, license, archived status).
Built to be the grounding layer for coding agents: stop hallucinating repos, get a verifiable "best of kind" answer with reasons.
Quickstart
# CLI
uvx reposniffer "markdown editor live preview" --language python --top-k 5
# MCP server (stdio) — wire into opencode, Claude Code, Codex, Cursor, ...
uvx reposniffer-mcp
Set GITHUB_TOKEN to raise search rate limits (authenticated = 30 req/min vs ~10).
Wire into your agent
opencode — add to opencode.json:
{
"mcp": {
"reposniffer": {
"type": "local",
"command": ["uvx", "reposniffer-mcp"],
"environment": { "GITHUB_TOKEN": "ghp_..." }
}
}
}
Claude Code: claude mcp add reposniffer -- uvx reposniffer-mcp
Codex/Cursor: add an MCP server pointing at uvx reposniffer-mcp (stdio).
MCP tools
| Tool | Purpose |
|---|---|
find_repos |
Feature query → ranked candidates with score breakdown, snippet evidence, license verdict, recommendation |
repo_intel |
Verify an existing repo (alive? licensed? best-of-kind?) + 2 alternatives |
health |
Embedding backend, model, auth status |
Every result carries as_of (a freshness timestamp agents can cite), a flags list
(archived, no-license, strong-copyleft, stale, ...), a license_category
(permissive / weak-copyleft / strong-copyleft / unknown), and a targeted
snippet showing why the repo matched.
Architecture
- Coarse candidate fetch — GitHub Search API (
in:readme, language/license/stars filters). - Hybrid rerank — embed each candidate's description + README front matter (not the whole README, to avoid dilution), cosine vs embedded query, plus a lexical-overlap boost for literal matches.
- Quality scoring — popularity (log stars), activity (pushed_at half-life), license
category, archived penalty; weights differ by
intent(adoptvsstudy). - Adoption safety — permissive/weak/strong-copyleft classification flags GPL/AGPL repos before you depend on them.
- Local SQLite cache — repos, READMEs, embeddings, query results → fast repeat queries, index grows over time.
Embeddings are pluggable: default is a zero-config local fastembed ONNX model
(no torch, no API key); set REPOSNIFFER_EMBED_BACKEND=api plus an OpenAI-compatible
endpoint for stronger quality.
Eval
Ground-truth queries live in eval/queries.py (feature → known-good repos). Run with a
token (each query fetches ~25 READMEs):
GITHUB_TOKEN=ghp_... uv run python -m eval.run
Reports hit@1 / hit@3 / hit@5. Add cases as the golden set grows.
Project layout
src/reposniffer/
config.py # env-driven settings
cache.py # sqlite store (repos, readmes, embeddings, query cache)
engine/
github.py # GitHub REST client + search query builder + text/snippet utils
embed.py # Embedder protocol: local fastembed + OpenAI-compatible API
score.py # quality + license-category + lexical scoring
search.py # orchestration (Engine)
mcp/server.py # MCPServer (mcp 2.x)
cli.py # Typer CLI
eval/ # golden query → repo eval harness
tests/ # offline (fake transport + fake embedder)
Development
uv sync
uv run ruff check .
uv run ruff format --check .
uv run pyright
uv run pytest
CI (lint/format/type/tests) runs on every push and PR. Publishing to PyPI happens on v*
tags via trusted publishing — enable it once on the PyPI project settings, then:
git tag v0.1.0 && git push --tags.
Note: mcp 2.x is used — MCPServer (FastMCP was renamed in mcp 2.0). Pin mcp<2 if you need the v1 API.
License
MIT
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file reposniffer-0.1.0.tar.gz.
File metadata
- Download URL: reposniffer-0.1.0.tar.gz
- Upload date:
- Size: 112.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd651bb8a74f3dd677c6f704483b3ca6b362b25fc3e87c2dfc110f82afc5c033
|
|
| MD5 |
f1b3a025a628bfa03c323893987f8ff5
|
|
| BLAKE2b-256 |
214adb5815eb6059c23fdbb42c17634ea55b30d0a12e475796f740eb040c0604
|
Provenance
The following attestation bundles were made for reposniffer-0.1.0.tar.gz:
Publisher:
publish.yml on nathan-hoche/RepoSniffer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
reposniffer-0.1.0.tar.gz -
Subject digest:
cd651bb8a74f3dd677c6f704483b3ca6b362b25fc3e87c2dfc110f82afc5c033 - Sigstore transparency entry: 2752398989
- Sigstore integration time:
-
Permalink:
nathan-hoche/RepoSniffer@22555871a1631685b77389bf5fd6edaa13bf43b7 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/nathan-hoche
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@22555871a1631685b77389bf5fd6edaa13bf43b7 -
Trigger Event:
push
-
Statement type:
File details
Details for the file reposniffer-0.1.0-py3-none-any.whl.
File metadata
- Download URL: reposniffer-0.1.0-py3-none-any.whl
- Upload date:
- Size: 18.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be9f85795dc567d8f8892a94c7a151bd4cca988188bfffa8419689f2569b3a9d
|
|
| MD5 |
49fe49a211da36054ff1318737571d9f
|
|
| BLAKE2b-256 |
2b67839f807970dd6222ef9f63235ca7e288f39f62ece8a2bf664331933c08f0
|
Provenance
The following attestation bundles were made for reposniffer-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on nathan-hoche/RepoSniffer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
reposniffer-0.1.0-py3-none-any.whl -
Subject digest:
be9f85795dc567d8f8892a94c7a151bd4cca988188bfffa8419689f2569b3a9d - Sigstore transparency entry: 2752399037
- Sigstore integration time:
-
Permalink:
nathan-hoche/RepoSniffer@22555871a1631685b77389bf5fd6edaa13bf43b7 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/nathan-hoche
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@22555871a1631685b77389bf5fd6edaa13bf43b7 -
Trigger Event:
push
-
Statement type: