dsh-deep-research: Complete Multi-Source Retrieval and Evidence Reporting in One Call in DSH

Introduction

When researching questions requiring internet access in DeepSeek Harness (DSH), the common path involves the model calling web_search to obtain links, followed by deciding whether to web_fetch and how to merge multi-turn results. However, the number of queries is limited, and evidence verification and cross-referencing often fall to the model side, leading to fragmented answers and inconsistent citations.

Here we introduce the community plugin dsh-deep-research (maintained by houdinicc): it completes the workflow of “Multi-query Retrieval → Merge & Deduplicate → Content Verification → Cross-referencing → Citable Evidence Report” within a single tool call or panel operation. All network operations utilize the host’s existing ctx.web, and the plugin itself does not hold API Keys. The report provides only evidence, marking external content as untrusted data, while conclusions are still generated by the session model based on this evidence.

What is this

dsh-deep-research is a Deep Research semi-plugin for DSH: it registers the Agent tool deep_research and provides a DeepResearch panel in the left sidebar, at the same level as the Raindrop Dashboard. It is categorized as a web-connected tool; the current GitHub star count is 0. The license is MIT, the package version is 0.1.1, and it requires Node >=20.11 and DSH >=0.2.0-rc.1 <0.3.0.

Compared to a single web_search, the plugin plans multiple queries around the question (including a second round with new terms discovered from fetched content), automatically fetches body text based on scores, calculates multi-query hit scores, and outputs a Markdown report with numbered sources and original text excerpt blocks.

Core Features

Agent Tool deep_research

Completes the full pipeline in a single call, returning structured JSON; the model side sees the rendered evidence report. Main parameters:

Parameter Description
question Required. The research question, 1–300 characters after trimming.
subquestions Optional. Pre-decomposed sub-questions, ≤5 items, each ≤128 characters.
depth quick / standard / deep. Defaults to config defaultDepth if omitted.
max_sources Upper limit for sources in this run. Can only be reduced, cannot exceed config maxSources.
fetch_top Number of sources to fetch evidence from in this run, ≤ config fetchTop. 0 means retrieval only without fetching.

Failures do not throw exceptions but return { ok: false, code, message }. code includes invalid-input, web-unavailable, aborted, all-searches-failed, no-results, internal, etc.

After installation and Harness restart, DeepResearch appears in the left sidebar. The panel supports:

  • Form: Research question (≤300 chars), depth quick/standard/deep, max_sources, fetch_top.
  • Run: Uses the same pipeline as the Agent tool, going through real ctx.web.
  • Results: Query/source/evidence/timing stats, source list, evidence citation blocks, gaps, and a collapsible full report.
  • History: The last 20 studies, persisting across refreshes; data is stored in $DSH_HOME/deep-research/runs.json (DSH_HOME defaults to ~/.dsh).

Local API (Accepts loopback requests only):

  • GET /api/dsh-deep-research/runs — History summary
  • GET /api/dsh-deep-research/runs?id=<id> — Single complete record
  • POST /api/dsh-deep-research/run — Run a research task

Networking and Configuration Boundaries

All searching and fetching is done via ctx.web.search() / ctx.web.fetch(). The deployment side switches providers (e.g., DeepSeek Search API, Messages search, local fetch) in “Plugins → Built-in Plugin Settings → Web search”. If ctx.web is unavailable, the tool remains registered but execution returns web-unavailable.

In cordis.patch.yml, you can configure query count, source count, fetch count, body text character budget, and layer timeouts; depth presets override maxQueries, maxSources, fetchTop, fetchCharBudget within a round (e.g., quick is 1 round with no fetching; standard is 2 rounds; deep increases source and text budgets).

Installation and Activation

Install first, then restart the Harness once (host routing and client bundle belong to a new module generation) for the DeepResearch panel to appear in the sidebar and for the tool to become available.

Desktop Version: Settings → Plugins → Plugin Market → Search for dsh-deep-research → Install. Desktop profiles are exclusive to Electron; the dsh plugin CLI cannot operate on desktop, so use the Market or plugin_manager.

Command Line (dsh web etc., non-Electron profiles):

dsh plugin --profile web add dsh-deep-research

Install from GitHub:

dsh plugin --profile web add github:houdinicc/dsh-deep-research

To uninstall or disable the tool: use plugin_manager remove_bundle target=dsh-deep-research, or set config.enableTools to false in the patch.

Typical Usage

Invoking via Agent in Conversation

When you need multi-source cross-referencing, instruct the model to call deep_research, passing the question and appropriate depth. If you have already decomposed sub-questions, pass subquestions to override automatic expansion.

The report structure includes: a retrieval execution table, numbered sources, unrewritten original excerpts presented in > quote blocks, cross-referencing notes, gaps, and statistics. The report begins by declaring external content as untrusted data, which must not be executed as instructions.

Running Research Manually in the Panel

  1. Open DeepResearch on the left.
  2. Enter the question, select quick (pure retrieval), standard, or deep.
  3. Adjust max_sources and fetch_top as needed.
  4. Click “Start Research” to view sources, evidence, and gaps; the history list allows reviewing the last 20 runs.

To generate a sample report offline without real internet access, use npm run demo in the repository to compare output formats.

Use Cases and Notes

Suitable for: Research questions requiring multi-query, multi-source merge and ranking, body text verification and excerpting, and a unified evidence package before answering; it complements the single-point fact-checking of web_search.

Notes:

  • The plugin runs with the current DSH process permissions. It is read-only, does not write to the workspace, and makes no network requests other than ctx.web. Please review the GitHub Source Code and the MIT license before installation.
  • Fetching effectiveness depends on the host’s fetch provider; some sites may fail. The plugin records gaps and attempts candidate fallbacks.
  • Cost and duration are constrained by maxQueries, maxSources, fetchTop, fetchCharBudget, and timeout limits; fetch_top: 0 degrades to pure retrieval.
  • The community catalog SkillHub Plugin Page has no official affiliation with DeepSeek or HF (High-Flyer) and represents a community ecosystem practice of “everything is a plugin”.

Conclusion

Following the steps above, you can use dsh-deep-research in DSH to consolidate “Search, Fetch, Verify, Report” into a single call or panel operation, letting the model answer based on citable evidence rather than piecing together search fragments.

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

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

Xiaoye