Introduction¶
When DeepSeek Harness (DSH) agents need to access external data during development, they typically rely on the official LLM search API, which consumes tokens and is tied to a specific service provider. To address this, community developer loommii maintains the dsh-thin-search plugin, which accesses multiple free search engines via native HTTP requests, providing DSH with a password-free, pluggable backend option.
What It Is¶
dsh-thin-search is a web search provider plugin for DSH. It registers a WebSearchProvider with id: thin-search, coexisting with other providers and selected via the Host’s global search settings. It does not depend on the official DeepSeek search API; instead, it uses plain HTTP requests to query five free engines, supporting automatic fallback, time-range filtering, and result caching. It only invokes a model when query enhancement is explicitly enabled.
Core Features¶
- Automatic fallback across five free engines: Defaults to Bing, with a fallback order of AnySearch, SearXNG, DuckDuckGo HTML, and DuckDuckGo Lite.
- Native search provider: Registers a
WebSearchProvider(id: thin-search), selectable through global web search settings. - Time range:
advanced_searchsupports fixed tiers (day/week/month/year), relative durations (12h, 3d, 2mo, 1y), and absolute dates (2026-07-01). - Result caching: In-memory LRU with TTL in minutes; the cache is consulted before any enhancement query, and a cache hit never invokes a model.
- Optional query enhancement: Rewrites queries using the current Agent model, with exclusive
provider:modeloverride and prompt file support. - Eight platform adapters: GitHub, V2EX, Bilibili, Reddit, Hacker News, Stack Overflow, Wikipedia, and npm.
- Three Agent tools:
free_search_test,platform_search, andadvanced_search, all forwarding cancellation signals and rendering results as text content blocks. - Native configuration card: Located on the installed plugin detail page (Plugins → Installed → dsh-thin-search → Configure), providing the
/thin-search-enginecommand. - No deployment files touched: No HTTP bridge, no private config store, no profile patches. Provider switching goes through ConfigForms and takes effect immediately.
Environment Requirements¶
- DSH:
0.2.2-rc.3or0.2.2-rc.5(declared inengines.dshand peer dependencies). - Node: Node 24.9 or later (
engines.node:>=24.9.0). - Cordis:
~4.1.0. - Runtime dependencies:
@deepseek-ai/schemastery,node-html-parser.
Installation and Activation¶
Install command (from the README):
dsh plugin --profile web add dsh-thin-search
After installation, restart dsh web once. The bundle patch inserts the thin-search line and writes first-boot defaults:
- insert:
- id: thin-search
name: dsh-thin-search
config:
provider: bing
bingMarket: zh-CN
- id: web
config:
searchProvider: thin-search
fetchProvider: http
The patch only sets web.searchProvider and web.fetchProvider; it never rewrites the profile and does not edit any other lines.
Uninstall command:
dsh plugin --profile web remove dsh-thin-search
Restart after uninstalling and let the deployment re-select the provider.
Typical Usage¶
In the configuration card of the installed plugin, you can switch the search provider and engine. The command /thin-search-engine is used to change the preferred free engine:
/thin-search-engine duckduckgo
The configuration card lists the providers reported by the Host via ctx.remote.web.listProviders(), and switches the global selection using configForms.get("web").set("searchProvider", id). Once the Host accepts the write, it takes effect immediately without a restart.
Search Enhancement and Prompt Files¶
Enhancement is disabled by default. When enabled, every cache miss sends a short request to the current Agent model (or the configured provider:model) to rewrite the query. enhanceModel is exclusive: if that model fails, the original query is used and no other model is invoked.
The system prompt comes from enhanceSystemPromptPath:
- Empty: the built-in prompt is used.
~/...or an absolute path: the file is read on every enhancement request, can be cancelled along with the search, and is capped at 64 KiB.- A relative path is invalid: the built-in prompt is used and a warning is logged.
- If the file is unreadable, the content is blank, or the size exceeds the limit, it falls back to the built-in prompt and logs a warning.
The prompt content never enters cordis.patch.yml. It is recommended to use a plugin data file, e.g., ~/.dsh/thin-search/system-prompt.md.
Tool Reference¶
| Tool | Timeout | Purpose |
|---|---|---|
free_search_test |
65 s | Probes engines one by one and reports the status of each. |
platform_search |
30 s | Queries one enabled platform. |
advanced_search |
60 s | Web search with timeRange support and an optional preferred engine. |
All three tools pass exec.signal into the HTTP client, so cancellation aborts in-flight requests. Every failure a tool throws is a WebError with a preserved error code: WEB_INVALID_REQUEST for invalid parameters, WEB_ABORTED for cancellation, and WEB_PROVIDER_ERROR for upstream failures with the original error attached to cause. A single-engine failure is data, not an error: free_search_test reports it in the result rather than throwing.
Use Cases and Caveats¶
Well suited for agent developers who need password-free web search, want to reduce token consumption, or require a controllable backend. The plugin runs with the current dsh process permissions; review the source code and license (MIT) before installing.
Conclusion¶
dsh-thin-search provides DSH with a password-free, pluggable web search backend through its native HTTP search provider and configuration card, making it a good fit for scenarios where reducing token costs or controlling search behavior is a priority.
- Plugin directory page: https://www.skillhub.cn/plugins/loommii/dsh-thin-search
- GitHub repository: https://github.com/loommii/dsh-thin-search