dsh-websearch-stack: DeepSeek Harness Multi-source Web Search Plugin

DeepSeek Harness (DSH) adopts an “everything is a plugin” architecture. When building agents or running tasks that require real-time information, a stable and configurable web search backend is essential. dsh-websearch-stack aims to solve the challenges of multi-source search and configuration management by registering a search provider for DSH and building an ordered fallback chain on top of its backends.

What It Is

This is a plugin that provides multi-provider web search for DeepSeek Harness (dsh). The plugin registers a search provider on the ctx.web interface and runs an ordered fallback chain composed of the backends you enable.

  • Maintainer: orfeomorello
  • License: MIT
  • Current version: v0.1.0 (MVP)

Core Features

Multi-backend support
The plugin implements six search backends:
* Tavily: supports keyless mode.
* Parallel MCP: no credentials required.
* SearXNG: supports self-hosting.
* Brave, TinyFish, Exa: require the corresponding API keys or local instances.

Ordered fallback chain
When a request encounters a recoverable error (such as network timeout, rate limiting, or an abnormal response), the system automatically switches to the next backend in the chain. If an unrecoverable error occurs, it aborts and reports the error. If all backends fail, the error message lists details for each attempt.

Dynamic configuration
* Keys without restart: The four backends that require keys (Tavily, Brave, TinyFish, Exa) can be configured via the Plugins page in the web client. Keys are written into the host’s credential store and take effect on the next request.
* Startup configuration: Fields such as chain order, SearXNG URL, result cap, timeout, and cache TTL are volatile and must be set through the configuration layer.

Installation and Enablement

Run the following install command:

dsh plugin --profile web add github:orfeomorello/dsh-websearch-stack

After installation, restart the corresponding profile. The default fallback chain ['tavily', 'parallel-mcp'] works without any configuration: Tavily runs in keyless mode, and Parallel MCP requires no credentials. After restarting the profile, ask directly for tasks that require up-to-date information; web_search will return results through this chain.

Configuration

Configuration spans two layers because the Plugins page in the web client currently can only write credentials.

1. Dynamic key configuration (no restart required)

On the Plugins page in the web client, locate this plugin and enter API keys via the settings card (e.g., TAVILY_API_KEY). These keys are resolved through the host’s credential store and take effect on the next request without restarting the profile.

2. Startup configuration (restart required)

In dsh-client-ui-plugin-manager version 0.2.0-rc.2, when the Plugins page in the web client renders plugins.bundle.config, it does not include a configuration form for the bundle’s own fields. Therefore, fields such as chain order and SearXNG URL need to be set through the configuration layer.

Typically, you configure this via the profile’s cordis.patch.yml or a --patch overlay. Below is an example enabling SearXNG:

# ~/.dsh/profiles/web/cordis.patch.yml
- id: websearch-stack
  name: dsh-websearch-stack
  config:
    enabled_providers: [searxng, tavily]
    searxng_url: http://localhost:8080
    default_max_results: 5

Configuration reference:
* enabled_providers: The order of the fallback chain; default ['tavily', 'parallel-mcp']. Supports tavily, parallel-mcp, searxng, brave, tinyfish, exa.
* searxng_url: The base URL of the SearXNG instance (e.g., http://localhost:8080).
* default_max_results: The default number of results returned per query (1–20); default 5.
* default_timeout_ms: Backend request timeout in milliseconds; default 10000.
* cache_ttl_seconds: Cache expiration time for identical queries (seconds); default 60.

Self-hosted SearXNG setup:
If you use a self-hosted SearXNG, enable JSON output in core-config/settings.yml (HTML only by default):

search:
  formats:
    - html
    - json

Use Cases and Notes

  • Use cases: Scenarios that require information from multiple search engines or want fault tolerance across different backends.
  • Version limitations: The web client’s configuration form currently supports writing credentials only; more complex startup configuration still relies on patch files.
  • Validation status: The plugin is currently in MVP stage. Validated, working backends include Tavily (keyless) and Parallel MCP. Brave, TinyFish, and Exa require corresponding API keys or local instances, but have not yet been validated.

Conclusion

dsh-websearch-stack provides the infrastructure for multi-source web search within DSH. With an ordered fallback chain and flexible configuration, it lowers the barrier to building web-connected agents.

  • GitHub: https://github.com/orfeomorello/dsh-websearch-stack
  • Catalog page: https://www.skillhub.cn/plugins/orfeomorello/dsh-websearch-stack
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye