Skip to main content

Agent Finder registry adapter for Hugging Face Spaces

Project description

hf-agentfinder

A small Agent Finder registry adapter for Hugging Face Spaces.

It exposes Hugging Face Spaces semantic search as:

  • a CLI: agentfinder spaces search "remove background from image"
  • an Agent Finder-ish REST API: POST /search
  • generated skill artifacts for Spaces via GET /skills/huggingface/{owner}/{space}/SKILL.md

Search results default to application/ai-skill entries. Each result points to a generated SKILL.md route that wraps the Space's agents.md instructions.

Features

Space Search and Skill Generation

agentfinder uses Hugging Face Spaces semantic search as a registry backend. A search request returns matching Spaces as Agent Finder catalog entries. By default, results are presented as application/ai-skill artifacts: each entry points to a generated SKILL.md URL served by this project.

The generated skill wraps the Space's agents.md instructions with the required skill frontmatter (name and description) plus source metadata such as the Space ID, Hub URL, app URL, and original agents.md URL. This lets clients discover a relevant Space, fetch the generated skill, and install or load it using their normal skill flow.

For clients that want raw Space descriptors instead of skills, the same search endpoint can return application/vnd.huggingface.space+json entries with inline JSON metadata.

Release Automation

Releases are built through the same quality gates as CI: locked dependency sync, Ruff format/lint checks, ty type checking, and pytest. The local release script then builds both source and wheel distributions, inspects the artifacts, and smoke-installs the wheel in a clean Python 3.14 virtual environment.

Run the local release check with:

./scripts/release-local.sh

Optionally assert the expected project version:

./scripts/release-local.sh 0.1.0

Tagged pushes matching v* run the release workflow and attach the built artifacts to a GitHub Release. The workflow currently builds and publishes GitHub artifacts only; it does not publish to PyPI.

Usage

uv run agentfinder spaces search "generate image" --limit 5
uv run agentfinder spaces search "generate image" --json
uv run agentfinder serve --port 8080
curl -X POST http://localhost:8080/search \
  -H 'content-type: application/json' \
  -d '{"query":{"text":"remove background from image","mediaType":"application/ai-skill"},"pageSize":5}'

Fetch a generated skill:

curl http://localhost:8080/skills/huggingface/mcp-tools/FLUX.1-Kontext-Dev/SKILL.md

To get generic Hugging Face Space descriptors instead of skill wrappers, request:

{"query":{"text":"remove background from image","mediaType":"application/vnd.huggingface.space+json"},"pageSize":5}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hf_agentfinder-0.1.0.tar.gz (350.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hf_agentfinder-0.1.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file hf_agentfinder-0.1.0.tar.gz.

File metadata

  • Download URL: hf_agentfinder-0.1.0.tar.gz
  • Upload date:
  • Size: 350.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for hf_agentfinder-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e4d127c1c59aa6eca6cafe23c4d6a69c22ba6a285752fdf6c2e13239d7d84b79
MD5 d252e6fcca5291f10d3a10207c4ce25d
BLAKE2b-256 a757bf5bf68a89c6a35212965a94a81f8be71e82bb14aec662ec7beda8b3fb44

See more details on using hashes here.

File details

Details for the file hf_agentfinder-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: hf_agentfinder-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for hf_agentfinder-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 daa9e29c8fd35b466159442d51dfbcb40383793205930c099932aeaa0511ecec
MD5 59612c00d22eeeef768804adc24474ea
BLAKE2b-256 b1b2809f6595a14e5ad859f3f6830550059eae6e736dd69a7ffc206192e99501

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page