explaingit

davanstrien/hf-find

Analysis updated 2026-05-18

10PythonAudience · developerComplexity · 2/5Setup · easy

TLDR

A command line extension for the Hugging Face hf tool that lets you search datasets and models by meaning, with a special output mode for AI coding agents.

Mindmap

mindmap
  root((hf-find))
    What it does
      Semantic search
      Datasets and models
      Similar repo lookup
    Tech stack
      Python
      hf CLI
      DuckDB
    Use cases
      Dataset discovery
      Agent friendly output
      Offline bulk queries
    Audience
      Developers
      AI agents
      Researchers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Search Hugging Face datasets or models by meaning instead of exact keywords.

USE CASE 2

Find repos similar to one you already know about on the Hub.

USE CASE 3

Let a coding agent query and parse Hugging Face search results automatically.

USE CASE 4

Query the full underlying dataset offline with DuckDB for bulk analysis.

What is it built with?

PythonHugging Face HubDuckDB

How does it compare?

davanstrien/hf-findaarav90-cpu/fetchitadammartinez271828/x4-analysis
Stars101010
LanguagePythonPythonPython
Setup difficultyeasyeasyeasy
Complexity2/52/52/5
Audiencedeveloperdevelopergeneral

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Requires the hf CLI already installed, installed as an extension with a single command.

No license information was found in the README.

In plain English

hf-find is a command line extension for the official Hugging Face hf tool that lets you search for datasets and models on the Hugging Face Hub by meaning instead of exact keywords. Typing a phrase like medieval manuscripts will return datasets that are conceptually related, even if that exact phrase does not appear in their titles, because the tool searches over embeddings and summaries covering roughly 536,000 dataset cards and 636,000 model cards. Once installed with a single hf extensions install command, you get several subcommands: searching datasets, searching models, finding repos similar to a given one, checking what is trending, and viewing the backend's health status. Results come back as a table showing a similarity score, likes, downloads, and a short summary, and you can filter by things like task type, license, programming language, or how recently a repo was modified. Model searches can also be filtered by parameter count, accepting shorthand like 2B or 500M. A notable feature is that hf-find automatically detects when it is being run by an AI coding agent rather than a human, using environment variables set by tools like Claude Code, and switches its output format accordingly. In agent mode it prints clean tab separated data to standard output and sends hints, like suggested follow-up commands, to a separate error stream, so an agent can parse results reliably. There is also a plain JSON output mode for structured integrations. Errors are designed to always include a one-line explanation plus a suggested next step, rather than a raw failure message. For users who want to search or analyze the entire dataset offline rather than one query at a time, the README points to a public Hugging Face dataset containing all the underlying summaries and embeddings, which can be queried directly with a tool called DuckDB.

Copy-paste prompts

Prompt 1
Show me how to install and use hf-find to search Hugging Face datasets by meaning.
Prompt 2
Explain how hf-find's agent mode output differs from its human readable output.
Prompt 3
Help me filter an hf-find model search by license and parameter count.
Prompt 4
Write a DuckDB query against the hf-find embeddings dataset for offline analysis.

Frequently asked questions

What is hf-find?

A command line extension for the Hugging Face hf tool that lets you search datasets and models by meaning, with a special output mode for AI coding agents.

What language is hf-find written in?

Mainly Python. The stack also includes Python, Hugging Face Hub, DuckDB.

What license does hf-find use?

No license information was found in the README.

How hard is hf-find to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is hf-find for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.