DSH Native Search: Integrating DSH web.search using model-native hosted search

Introduction

In DeepSeek Harness (DSH), the common path for web connectivity is an independent search API or a built-in fetch backend: the web_search tool receives a query, and the web.search service then returns summaries and sources. If you have already configured provider-native web search such as OpenAI Responses, Anthropic Messages, or Gemini on your model routing, but still want DSH to go through the same web_search contract, you need a Host plugin to mount “hosted search” onto DSH’s search provider — rather than secretly injecting search tools into the main chat request or treating ordinary model replies as search results.

Below we introduce the community plugin DSH Native Search (dsh-native-search), maintained by luhcow, categorized as a web-connectivity tool in the SkillHub plugin directory. The project is MIT licensed, initial version 0.1.0, with 0 GitHub stars (as shown on the directory page).

What This Is

DSH Native Search is an experimental Host plugin: it connects the native managed web search of an already-connected model provider into DSH’s web.search service for use by the existing web_search tool. The package name, plugin entry ID, and search provider ID are all dsh-native-search.

Unlike approaches that “stitch $web_search into multi-turn Chat Completions” or “fall back to other backends when there is no evidence”, this plugin emphasizes: strictly a single request, no retries, no degradation, no continuation. Each plugin search issues at most one HTTP POST; it sends only the current search term, not conversation history, does not modify the DSH core, and does not inject search tools into the main chat request. The server may perform multiple searches internally within that single request, but the plugin will not disguise answers consisting only of reference links or free text as verified search results.

Supported Protocols and Routes

Protocol selection priority: plugin explicit protocol > model api > route api > known provider default when api is undeclared. A declared but unsupported api fails before the request is sent — it will not automatically switch to another protocol based on the provider name; an explicit protocol means you confirm that the endpoint implements the corresponding native search protocol, and the plugin will not probe or fall back.

Protocol / Route Key points
openai-responses (azure-openai-responses mapped the same) POST /responses, tools: [{ type: "web_search", ... }]; must have a completed web_search_call
anthropic-messages POST /v1/messages, web_search_20250305; must have a paired server_tool_use and a successful web_search_tool_result
google-generative-ai models/{model}:generateContent, google_search; must have valid webSearchQueries or web groundingChunks
xai-responses xAI Responses web_search; must have a completed web_search_call
copilot-responses Copilot Responses web_search; credentials must be a usable token, no OAuth refresh implemented

When no api is present, openai, anthropic, google, xai, and github-copilot use the default protocols in the table above. The xAI / Copilot adaptations remain experimental. Moonshot $web_search Chat Completions multi-turn round-trips are not implemented, and moonshot-chat is not provided; ordinary Chat Completions, Bedrock, Vertex, ChatGPT subscription OAuth, or openai-codex-responses and other out-of-scope routes are not supported.

Installation and Dependencies

Requires Node.js 20.3.0+. Peer dependencies align with the current DSH 0.2.0-rc.2 (@deepseek-ai/dsh-web, dsh-settings, dsh-credentials, dsh-llm-pi-ai, etc.). A public GitHub repository does not mean it has been published to npm; the README explains that currently you must package from source and hand it to the profile’s plugin manager for installation (the manager resolves runtime dependencies and checks version compatibility).

In an existing plugin source directory, you can run the unit tests before packaging (tests do not install the DSH runtime, read credentials, or issue real searches):

npm test
npm pack --ignore-scripts

Hand the generated .tgz to the plugin manager of the target DSH profile for installation. If the manager prompts for a restart, restart DSH. The installation patch creates the dsh-native-search entry, but does not automatically switch the search provider; modifying local source code also does not automatically replace an installed older version.

Configuration and Enablement

First configure credentials for the corresponding route in DSH model settings; the plugin resolves references on every search and does not cache keys. Built-in openai, anthropic, google, and xai can reuse default endpoints and credential environment variable names (OPENAI_API_KEY, ANTHROPIC_API_KEY, GEMINI_API_KEY, XAI_API_KEY). github-copilot has no default credential name and requires apiKeyEnv configuration. Custom routes provide baseURL, apiKeyEnv, and a recognized api in llm-pi-ai (or an explicit protocol in the plugin). For example, if an xAI chat route declares api: openai-completions, you must set protocol: xai-responses explicitly in the plugin for it to use the separate Responses search endpoint.

Plugin configuration example (you can also override an installed entry by ID in the profile patch):

- id: dsh-native-search
  config:
    provider: anthropic
    model: claude-sonnet-4-5
    searchContextSize: medium
    timeoutMs: 30000
- id: web
  config:
    searchProvider: dsh-native-search

provider is the DSH model route ID, and model is the model ID on that route that supports hosted search. searchContextSize is only used for OpenAI Responses. The default timeout is 30 seconds, configurable up to a maximum of 5 minutes.

Final step: in the DSH web search configuration, manually select dsh-native-search as the searchProvider. If no provider is specified and both DSH’s built-in search and this plugin are available at the same time, it reports WEB_PROVIDER_AMBIGUOUS. Keep the original fetchProvider: this plugin is only responsible for search; the body is still handled by the existing fetch backend. If the model and route are not filled in, the plugin registers but reports itself unavailable.

Request and Response Contract

  • Pure query: OpenAI / xAI / Copilot use input: query, Anthropic uses a single user message, Gemini uses a user text part; a valid query is preserved verbatim, with no system message or “Search the web for…” prefix added, and no history included.
  • Success is determined by completion status and search evidence: HTTP 200 does not equal success; Responses requires status: completed and a completed search call; Anthropic requires stop_reason: end_turn and paired call/result; Gemini requires finishReason: STOP. Incomplete statuses (e.g. Anthropic pause_turn) fail directly, without additional requests.
  • Search evidence present but empty sources may still succeed: for example, an Anthropic successful result with content: [], or a Gemini result with queries but no grounding chunks, can return sources: []; it will not fabricate URLs or claim unsourced text as source-backed.
  • What is returned is DSH’s content / sources / truncated service contract; source URLs are in public http(s) form, and summaries are synthesized model answers. At most 8 URLs by default, adjustable via maxResults, with a cap of 20; output is at most 2048 tokens, the query limit is 4096 characters, and the response limit is 2 MiB.

On failure, a stable error.code is provided (e.g. HOSTED_SEARCH_UNSUPPORTED, HOSTED_SEARCH_NOT_EXECUTED, HOSTED_SEARCH_INCOMPLETE, etc.), with no retries and no fallback to other protocols.

Suitable Scenarios and Notes

Suitable for: developers who have already configured native search capabilities such as OpenAI Responses, Anthropic, Gemini, xAI Responses, or Copilot Responses in DSH, want the Agent’s web_search to have a clear division of labor with the existing fetchProvider fetch pipeline, and can accept that “one search = one independent model POST, fixed search model that does not switch per session”.

Notes:

  • The plugin runs under the permissions of the current DSH process; before installing, read the GitHub source and the MIT license, and perform end-to-end acceptance after accepting the corresponding costs and data boundaries.
  • Availability depends on endpoints, models, regions, account permissions, and tool support; evidence validation follows protocol fields and is not an independent audit of gateway honesty.
  • The Gemini adaptation is fixed to generateContent, not the Interactions API; when displaying full grounding / Search Suggestions to end users, you need to supplement the official display requirements yourself; this plugin’s contract does not carry the complete display data of Gemini searchEntryPoint.

Revoking the searchProvider selection or uninstalling the plugin restores the original search scheme.

Conclusion

DSH Native Search connects “provider-native hosted search” to DSH web.search in a strictly single-request, verifiably-evidenced manner, decoupled from the main chat. It suits teams that already have model routing credentials and want a unified web_search entry point. Directory page: https://www.skillhub.cn/plugins/luhcow/dsh-native-search; source and documentation: https://github.com/luhcow/dsh-native-search.

羽毛球分组比赛记分
小程序二维码

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

Xiaoye