Introduction¶
In DeepSeek Harness (DSH), the built-in web_search relies on the deployed and selected search backend. If only a single index is used, it is often difficult to balance the Chinese context with global coverage: the official DeepSeek Search API is more aligned with Chinese and has lower latency, while the Google index is broader for long-tail and English materials. The community plugin dsh-serper-search (maintained by Minokun) combines these two retrieval routes into a single WebSearchProvider, hooking into DSH’s ctx.web capability seam. This allows every web_search to fire two direct HTTP requests in parallel when fully configured, interleaving and merging the results based on URL de-duplication at a fixed ratio (default 2:1), so the model can see both sets of indexes in a single call. The README states that under the same set of queries, the URL overlap between the two result sets is approximately 1.3%, indicating complementarity rather than redundancy.
The following introduces the plugin’s positioning, capabilities, and installation verification steps. The installation commands and configuration items are derived from the repository README and package.json (current npm version 0.4.0, MIT license).
What is this¶
dsh-serper-search is a search plugin designed for the DSH web profile: it registers a composite search provider with the id serper (compatible with legacy configurations) that internally parallelizes DeepSeek Search API and serper.dev (Google Search). Starting from v3, it no longer uses DeepSeek native Messages search (the old solution required a full model call for every search). After installation, you can point searchProvider to this plugin; since v0.4.0, upon first startup, it will automatically write a user-level pin if conditions are met, so manual modification of cordis.patch.yml is generally unnecessary.
- Directory Page: skillhub.cn/plugins/Minokun/dsh-serper-search
- Source Code & Docs: github.com/Minokun/dsh-serper-search
Core Features¶
Dual-Route Parallelism and Merging¶
- When
native: trueand keys for both routes are available, each search fires two direct retrieval requests (no auxiliary model calls); if a key is missing for one route ornative: false, only one request is fired. - Results are de-duplicated by URL and interleaved/merged based on
ratio(default2, i.e., approx 6 primary + 2 supplementary);primarydetermines the dominant route and the priority for de-duplication retention (defaultdeepseek). - Optional
demoteSocial,maxPerHost, etc., control source diversity; the official side can injectsummaryinto the snippet (summaryMaxChars, default 600).
Caching and Degradation¶
- Starting from v0.4.0: Successful results are cached for 5 minutes by default (
cacheMinutes, 0 to disable); repeating the same query may result in 0 upstream requests. - Single-route failures enter a cooldown based on type, and a one-line
Note:is provided to the model during degradation; auth/quota cooldown is 10 minutes, rate-limit/server 60 seconds, timeout/network 30 seconds; auth-related cooldowns can be cleared immediately after filling in the key in the settings card.
Auto-Takeover of searchProvider¶
Upon first startup, if the user has not expressed a preference for searchProvider and the current value is still the deployment default, the plugin will write searchProvider: serper into ~/.dsh/profiles/web/cordis.patch.yml and write a one-time marker takeOverProvider: false. If the user has already specified a provider via GUI or other means, the plugin will not hijack it and will only log a warning. The environment variable $DSH_WEB_SEARCH_PROVIDER serves as a fallback; user-patched config takes precedence.
GUI and Self-Check¶
Settings → Plugins → dsh-serper-search provides fields for the Serper API key (written to the credentials domain), API endpoint, gl/hl, result count, and whether to merge DeepSeek Search API (native). Since v0.4.0, there are four buttons at the bottom of the card: Test Both Routes, Check for Updates, Set as Local Default Search, and Restore Deployment Default. “Test Both Routes” corresponds to POST /api/dsh-serper-search/probe, firing 1 real request in parallel for each route (3 results per route), displaying success as e.g., 1234ms · 3.
Installation and Activation¶
Installation¶
dsh plugin --profile web add dsh-serper-search
You can also search for dsh-serper-search in Settings → Plugin Market to install.
Configuring Keys¶
It is recommended to add the following under refs: in ~/.dsh/.credentials.yaml:
SERPER_API_KEY: <serper key>DEEPSEEK_API_KEY: <deepseek key>(most environments already have this)
You can also use environment variables SERPER_API_KEY / DEEPSEEK_API_KEY. Installation is possible without a Serper key, but it will degrade to the official single route.
Restart and Confirmation¶
- Restart
dsh web(a pin will be written on first startup). - Verify configuration:
dsh --profile web --dump-config | grep -A4 "^- id: web$"
You should see searchProvider: serper.
Optional Advanced Parameters¶
Override the web-search-serper entry in the same profile’s cordis.patch.yml, for example:
- id: web-search-serper
config:
serperTimeoutMs: 10000
cacheMinutes: 0
ratio: 1.5
primary: deepseek
autoLocale: true
Parameters such as ratio, primary, summaryMaxChars, various *TimeoutMs, cacheMinutes, etc., are not exposed in the GUI and must be adjusted via patch.
Typical Usage and Verification¶
One Sentence for the Agent¶
You can send the following sentence to DSH, asking the Agent to follow the README’s five steps to perform installation and self-check:
Install dsh-serper-search and run a dual-route self-check, then tell me the results
Manual verification can be simplified to: Install → Search → Click “Test Both Routes”.
In-Session Search¶
Call web_search once in a new session to confirm at least 1 source is returned. The log prefix web-search-serper: should show merged= and cache=store (behavior on cache hit is subject to the README). If Note: serper auth failed ... appears, it indicates the Serper key is not configured correctly and needs to be filled in via the card or credentials.
Uninstallation and Restoration¶
It is recommended to click “Restore Deployment Default” first, then execute:
dsh plugin --profile web remove dsh-serper-search
If the plugin is deleted directly while the patch retains searchProvider: serper, you may encounter provider "serper" is not registered; deleting the corresponding line or the entire - id: web section in the patch will restore it. If reinstalling after uninstallation, due to takeOverProvider: false possibly remaining, you need to click “Set as Local Default Search” or adjust this field and restart for auto-takeover to occur again.
Scenarios and Notes¶
Who it is for: Developers and agent orchestration scenarios already using web_search in the DSH web profile who want to leverage both DeepSeek’s own index and the Google (Serper) index in a single search; the 0.4.0 settings page is suitable for those needing observable dual-route health status, local default search switching, and 5-minute result caching.
Notes:
- The plugin runs with the current dsh process permissions. Review the source code and MIT license before installation; credentials are injected via credentials or environment variables, do not commit keys to version control.
- “Test Both Routes” consumes 1 Serper + 1 DeepSeek search quota each time.
- If logging in only with a DeepSeek account and without an API key, the official route may show “Account login status is only effective within the conversation” in the HTTP route. The README explains this is not counted as an auth failure.
- SkillHub directory is a community plugin index, with no official affiliation with DeepSeek / High-Flyer; metadata such as star counts are subject to the display of each site at the time (the GitHub repository currently has 1 star).
Conclusion¶
dsh-serper-search combines DeepSeek Search API and serper.dev into a single search provider on DSH: dual-route direct connection, ratio-interleaved merging, short caching, and failure cooldowns, with self-check and local default search switching via the settings page. For details, refer to the README’s configuration table and “Uninstallation and Restoration” sections.
- Plugin Directory: https://www.skillhub.cn/plugins/Minokun/dsh-serper-search
- GitHub: https://github.com/Minokun/dsh-serper-search