Skip to main content

Haunt web extraction provider for Hermes Agent

Project description

Haunt for Hermes Agent

Use Haunt as the web_extract provider inside Hermes Agent.

Haunt turns permitted public pages into clean Markdown. When a page cannot be read, it returns an explicit error such as captcha_required, login_required, or not_found. It does not turn an error page into a successful answer, and failed calls are not charged.

Install

pip install hermes-plugin-haunt

Add your Haunt API key:

export HAUNT_API_KEY="your-key"

Get a free key with 1,000 monthly credits at hauntapi.com.

Select Haunt for extraction in ~/.hermes/config.yaml:

web:
  extract_backend: haunt

Hermes discovers the package through its hermes_agent.plugins entry point. You can also run hermes tools and choose Haunt in the Web Extract picker.

What it does

  • Implements Hermes Agent's native WebSearchProvider.
  • Provides web_extract.
  • Returns Markdown by default and raw HTML when Hermes requests HTML.
  • Preserves Haunt's failure code, billing outcome, and request ID in metadata.
  • Supports more than one URL while keeping the input order.
  • Does not provide web search. Pair it with a search provider if needed.

Example configuration:

web:
  search_backend: brave-free
  extract_backend: haunt

Failure shape

A blocked page remains a failed page:

{
  "url": "https://example.com/challenge",
  "title": "",
  "content": "",
  "error": "captcha_required: The page requires human verification.",
  "metadata": {
    "provider": "haunt",
    "error_code": "captcha_required",
    "charged": false,
    "credits_used": 0
  }
}

This lets the agent retry another provider, ask for an authorised session, or explain the failure instead of reasoning from empty content.

Development

python -m venv .venv
.venv/bin/pip install -e ".[dev]"
.venv/bin/pytest
.venv/bin/ruff check .

The package is independent of Hermes at import time so its unit tests can run without a full Hermes installation.

Links

License

MIT

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

hermes_plugin_haunt-0.1.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

hermes_plugin_haunt-0.1.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hermes_plugin_haunt-0.1.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for hermes_plugin_haunt-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c813134f7c806ac406e04317bf8a0f514f54b39281f647085c50ff6167041bd0
MD5 87c83be51ce54d99ff1975f2d89d2b44
BLAKE2b-256 384c10a251faecbbc76169fc06443a4a90f52b6aaf40f72785d6ce4c613976b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hermes_plugin_haunt-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ab4b2720f6c9d5e115d24f9ea40fdc1f876bf272aeee063f46d6f2b0e6e94f25
MD5 4db9d95f9486de60d81476791612e4e4
BLAKE2b-256 8375808363e398c9ceb4aabced57a8509972b425a173ca4ee90897b4e65f3e1e

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