Introduction¶
When performing web-related tasks in DeepSeek Harness, a common requirement is to preserve the “rendered appearance of the page at that moment,” rather than just storing the URL or a Markdown summary. Browser “Save As,” screenshots, or hand-written crawlers either lose interaction context or are difficult to align with current session and workspace permissions.
The following introduces the community plugin huoqu (repository yueyexiayu/dsh-huoqu), released by maintainer yueyexiayu and categorized as a Web Tool. It captures the current rendering result within the Harness, writes it into a local static copy that can be opened offline, and attaches a verification report.
What is this¶
huoqu is a DSH desktop plugin: it performs page capture on specified URLs, outputting local HTML, MHTML, and resource directories for offline preview and archiving. The current plugin version is 0.2.2 (subject to the version returned by the sidebar GET and the pluginVersion in the capture result).
The plugin utilizes the existing sandboxPolicy and fs service for writing and cleanup, without modifying the official DSH source code. The DeepSeek Harness ecosystem emphasizes “everything is a plugin”; the SkillHub directory page is a community site and has no official affiliation with DeepSeek or Hitual.
Core Features¶
Capture Backend and Identity¶
purpose:capture(default),automation,web-regression. Normal capture defaults to using the Chrome extension (dsh-chrome), reusing the current official Chrome’s login status, and creates an exclusive background capture target for this task, without opening additional debug ports or taking over the user’s existing tabs.backend:auto(default),current-chrome,headless.autoselects the backend based on purpose and identity, without making guesses based on exceptions.browser_identity: Normalcapturedefaults tocurrent; automation and Web regression default toanonymous, using its own headless instance without borrowing the user’s Chrome. If the extension is missing or unavailable, it fails explicitly and no longer silently switches to anonymous access (see README for compatibility changes).
For headless scenarios, it relies fixedly on the chromium-headless-shell corresponding to playwright-core@1.58.2 (revision 1208) installed by this plugin. It does not scan other project caches or fall back to system Chrome. The README states: currently, only macOS arm64 has complete fixed validation; Linux / Windows etc. are unsupported/unverified.
Artifacts¶
The local entry point is index.html, with resources in assets/; there is also a single-file index.mhtml, along with source.png, local.png, report.json, and manifest.json.
Offline HTML and MHTML will have scripts and active redirects removed, and restrictive CSPs added; it will not copy the original site’s APIs, login states, scripts, or interactive functions. The capture process scrolls the page to load lazy-loaded content but does not automatically click generic buttons; content that only appears via clicks or interfaces may be missing.
Only when resources are complete, offline preview and content checks pass, and browser cleanup is successful is the result marked as completed; if saved but checks failed, it is partial, with reasons in report.json.
DSH Sidebar and Permissions¶
Upon enablement, “Web Fetch” appears in the sidebar. Tasks are bound to the loaded Session created at startup; lists, statuses, cancellations, and opening local files are all isolated by sessionId, and cross-session requests return 404.
read-only: Refuses capture.workspace-write: Only allows normalized workspaces,/tmp, and platform temporary directories; the default output~/Downloads/huoqu/will be rejected under this policy and should be changed to a workspace or temporary directory.danger-full-access: No restrictions on write locations.
Sidebar tasks are serial, with a maximum of 4 running or queued; terminal tasks are kept for a maximum of 1 hour and a maximum of 40 entries. All HTTP operations must carry a valid sessionId; missing or malformed IDs return 400.
Installation and Enablement¶
The official README does not provide commands like dsh plugin add. The installation method is to copy the directory and insert the plugin entry in the desktop profile.
- Copy the plugin to the Harness plugin directory:
$DSH_HOME/plugins/huoqu
- Write the following into
$DSH_HOME/profiles/desktop/cordis.patch.yml:
- insert:
- id: huoqu
name: ../../plugins/huoqu/lib/index.js
- Completely quit DeepSeek Harness (macOS: ⌘Q), then reopen and create a new session. Host modifications and new tool schemas require a restart/new session to load; simply saving the source code will not update the running Host.
If using the headless backend, you need to install the fixed browser in this plugin directory (README example):
/usr/local/bin/node /usr/local/lib/node_modules/npm/bin/npm-cli.js ci --ignore-scripts
PLAYWRIGHT_BROWSERS_PATH=0 /usr/local/bin/node node_modules/playwright-core/cli.js install chromium-headless-shell
Alternatively, execute npm run install:headless (uses the Playwright default cache path, semantics differ from PLAYWRIGHT_BROWSERS_PATH=0, see README).
Please read the repository source code and license yourself before installation; the plugin runs with the current DSH process permissions, and output directories and network access are subject to the session file policy.
Typical Usage¶
Sidebar Capture¶
Open the sidebar “Web Fetch” in a new session, enter the URL, and select the output directory (must comply with the current session file policy). Submit and wait for the task to complete, then open the local copy or view the report via the sidebar.
Programmatic Call Example¶
JSON input example provided in the README (Web regression, anonymous headless):
{"url":"https://example.com/","purpose":"web-regression","browser_identity":"anonymous","backend":"headless","output_dir":"/tmp/new-capture"}
When calling capturePage(input, signal, access, {cwd, scope:{sessionId,taskId}}) directly via Node, you must explicitly provide the execution attribution (cwd and scope); the request wire cannot forge scope/cwd/ownership.
For normal purpose=capture with default identity current, the Chrome extension must be available to provide openCaptureSession; without the extension, the default current scenario will fail explicitly.
Applicable Scenarios and Notes¶
Suitable for: Archiving “a rendered page at a certain moment” locally, writing to a workspace or temporary directory consistent with DSH session permissions; requiring MHTML single-file copies or partial/completed judgments with report.json.
Not suitable for or limitations to note:
- Expecting the offline copy to still possess the original site’s post-login dynamic interactions or private API behaviors.
- Relying on large amounts of content that “must be clicked to appear” without handling them yourself before capture.
- Relying on the fixed headless validation path described in the README on non-macOS arm64; you need to accept the unsupported/unverified description and verify it yourself according to the documentation.
The output directory must be empty, or be verifiable as an existing huoqu copy via manifest.json or report.json; if attribution cannot be confirmed, overwriting is refused.
Conclusion¶
huoqu integrates “current web rendering result → local offline HTML/MHTML” into the DSH plugin and sidebar task model, and distinguishes between Chrome extension capture and fixed headless, as well as session-level file policies. If you want to perform archivable page snapshots in the Harness, you can verify the installation by cross-referencing version 0.2.2 from the directory page and the repository README.
- Directory Page: https://www.skillhub.cn/plugins/yueyexiayu/dsh-huoqu
- GitHub: https://github.com/yueyexiayu/dsh-huoqu