dsh-search: Structured Web Access using DeepSeek Official Search/Fetch

Preface

When adding web capabilities to an agent in DeepSeek Harness (DSH), the common approach is to rely on the host’s built-in web_search / web_fetch. These can perform basic retrieval and scraping, but their return shape is often too “raw webpage”-like or has too few fields, and the number of results, body length, search syntax, and cost are not easily unified under a single interface.

@vfvrpq/dsh-search (repo 439436269-ctrl/dsh-search) wraps DeepSeek’s official Search / Fetch APIs into three Harness tools, emitting structured results to the model (including rerank score, authority, publish time, long summaries, etc.), and comes with search operators and a derivable billing scheme. Maintained by 439436269-ctrl, it is categorized as a “web tool” in the community catalog.

What Is This

In one sentence: @vfvrpq/dsh-search is a web-enabled plugin for DSH, based on the official Search/Fetch interfaces, providing search, single-page fetch, and a one-stop “search + multi-page body” research capability; implementation-wise it consists of three tools, one config block, and zero runtime dependencies (see repo README).

The plugin provides the agent with structured web results rather than piles of full-page HTML; compared with built-in web tools, the differences emphasized in the README include: search syntax, controllable result count and body, and derivable cost.

Three Tools and the Billing Scheme

After successful installation, the tools will appear in the tool table; no need to restart DSH (restart only required when upgrading the plugin).

Tool Purpose Billed Requests
deepseek_search Search; returns title/URL/snippet/summary/optional body/date/authority/rerank score 1
deepseek_fetch Single page converted to Markdown (title + body) 1
deepseek_research Searches and fetches the body of the top N pages, producing research conclusions in one go 1 + N

Regarding cost (from the README):

  • About ¥5 per 1000 successful requests, i.e. about ¥0.005 per request; Search and Fetch are priced the same.
  • Billed only when HTTP 200 is returned and results are produced; empty results, failures, and timeouts are not billed.
  • count does not change the unit price; it is advisable to fetch enough results in one request to avoid splitting into multiple small requests.
  • Search and Fetch each have an account-level rate limit of 5 QPS; exceeding it returns 429, and the plugin backs off and retries according to configuration.

When interpreting results, the README recommends: treat rerankScore >= 1.5 as a high-quality result (marked with ★ during rendering), and authority >= 3 as highly authoritative. summary is a secondary summary; version numbers, dates, prices, API fields, etc. should be verified against the original text via deepseek_fetch, and the original URL should be cited when referencing.

deepseek_search and Query Syntax

deepseek_search allows operators to be written in query, or passed in via parameters. Supported operators include: site:, -site:, -word, -"phrase", "exact", lang:, after:, before:.

Installation and Activation

Install the published version from npm (commands from the repo README):

dsh plugin --profile desktop add @vfvrpq/dsh-search@0.1.0

If installing from a source-built package: the plugin depends on @deepseek-ai/*, so a tgz package must be used; directory symlinks may cause the host to fail to resolve dependencies. The flow is to run pnpm pack first, then execute:

dsh plugin --profile desktop add /absolute/path/vfvrpq-dsh-search-0.1.0.tgz

package.json states the runtime environment is Node >=22, and is marked compatible with DSH 0.2.0-rc.2 in plugin metadata. License is MIT.

Before installing, it is recommended to review the repo source and license yourself; the plugin runs with the permissions of the current DSH process, and API key resolution reads environment variables and the user-side key file (see below), so do not write keys into configuration readable by others.

Typical Usage

The following examples come from the README and can be reproduced in tool calls:

deepseek_search  query="llama.cpp 安装" site="github.com" after=2025 count=5
deepseek_fetch   url="https://api-docs.deepseek.com/zh-cn/guides/search"
deepseek_research query="DeepSeek V4 上下文长度" count=5 top=2

Configuration items can be adjusted in the profile (defaults in the table below). apiKey defaults to empty; the README explicitly recommends not putting the key in the profile, but relying on the four-layer runtime resolution.

Key Default Description
apiKey "" If empty, resolved in the four-layer order below
baseUrl https://api.deepseek.com Only change when using a proxy
defaultCount 5 Number of results when count is not passed
maxContentChars 8000 Per-result body cap for deepseek_search
fetchMaxChars 20000 Body cap for deepseek_fetch
timeoutMs 30000 Per-request timeout
maxRetries 2 Number of retries for 408 / 429 / 5xx
promptEnabled true Whether to contribute a usage section to the system prompt
promptOrder 55 Ordering of that section

Key resolution order:

  1. Plugin config apiKey
  2. Environment variable $DEEPSEEK_API_KEY
  3. DEEPSEEK_API_KEY=... in ~/.secrets/keys.env
  4. refs: DEEPSEEK_API_KEY: sk-... in $DSH_HOME/.credentials.yaml

Applicable Scenarios and Known Boundaries

Suitable for scenarios where the official Search/Fetch should be used uniformly within DSH and the agent should receive structured fields with controllable result count/body; when you need to perform a search and read several pages of body to summarize in one go, deepseek_research can reduce round-trips.

Boundaries listed in the README include:

  • Cannot fetch pages requiring login, heavy interactivity, or non-HTML responses; such needs should use browser-automation-style plugins.
  • Some SPA documentation sites still return 200 with the site shell for non-existent paths; if the body shows the homepage slogan, it may be a fallback and requires human judgment.
  • The Markdown returned by Fetch may escape certain punctuation with backslashes; this is an upstream artifact and can be unescaped as needed.

The community plugin catalog dsh-search page on skillhub.cn and the GitHub repository are independently indexed; the catalog site has no official affiliation with DeepSeek / High-Flyer, and installation and billing are subject to the repo documentation and DeepSeek API docs.

Conclusion

@vfvrpq/dsh-search consolidates the official Search/Fetch into the three tools deepseek_search, deepseek_fetch, and deepseek_research, using structured output and clear billing rules to reduce noise and trial-and-error cost when the agent goes online. To learn more, visit the plugin catalog page and the GitHub repo.

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

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

Xiaoye