Preface¶
When collaborating with agents in DeepSeek Harness (DSH), chats often contain numerous blue file references, Markdown path links, and delivery file cards. By default, clicking these references triggers a preview in the right sidebar, which is suitable for a quick glance. However, if you are already editing the same batch of files locally in an IDE or terminal, a more common requirement is to jump to the actual path on disk, select the file using Explorer, Finder, or a Linux file manager, and hand it over to the local toolchain.
The following introduces the community client plugin dsh-reveal-in-explorer (Maintainer: Ghdhdhhake). Without altering the Harness’s native click-to-preview behavior, it adds an entry point when hovering over file references, allowing you to open the system file manager with one click. The plugin is classified as a client-side capability within the DSH ecosystem. For source code and documentation, see the GitHub repository; the community directory entry is at skillhub.cn. The community directory is an independent site and is not officially affiliated with DeepSeek or High-Flyer.
What is this¶
dsh-reveal-in-explorer is a plugin for the DSH Web / Desktop client. After hovering over a recognizable file reference in the chat interface for approximately 160ms, a “Reveal in Explorer” button pops up next to the reference. Upon clicking, the host validates the path and invokes the platform’s native “Reveal in File Manager” capability. The host-side entry is a stub implementation, with the logic concentrated in the Client bundle; the license is MIT.
Core Features¶
Interaction & Default Behavior¶
- Hover to Appear: The overlay appears to the right of the reference by default; if space is insufficient on the right, it shifts to the bottom or top, remaining within the viewport.
- Default Behavior Unchanged: A single click on a file reference still triggers the Harness’s native preview; the plugin does not hijack clicks.
- Keyboard Accessible:
focusinalso triggers the overlay, andEsccloses it; the interface is bilingual (Chinese/English), and styles follow the host’s theme tokens.
Paths & Platforms¶
- Relative Path Completion: e.g.,
docs/a.mdis resolved to an absolute path based on the current sessioncwdbefore being passed to the host. - Platform Adaptation: The specific command is determined by the host’s
open-in-app/native-command—Windows usesexplorer.exe /select,, macOS usesopen -R, and Linux opens the file’s containing directory (consistent with DSH’s established behavior when there is no universal “select single file” protocol). - Security Boundary: Paths are validated via the host’s
remote.session.openWorkspacePath({ action: 'reveal' }); the plugin itself does not spawn processes or read file contents. - Failure Visibility: If the host rejects the request (path does not exist, no permissions, no desktop file manager, etc.), the overlay remains open, displaying the reason on the second line of the button, and outputs a
console.warnlog with the path and reason to facilitate troubleshooting or filing Issues.
Covered Reference Types¶
The plugin identifies various forms of file references in the chat via centrally maintained DOM selectors, including but not limited to:
| Location | DOM Form (Summary) |
|---|---|
| Inline code file references in assistant replies | code > button[title] |
| Markdown link style paths | button.fileLink[title] |
| Input box / User message file chips | [data-ref-chip="file"][title] |
| Delivery file cards | [data-presented-file] button[title] |
| Other controls with path tooltips | [data-chat-flow] button[title] / a[title] (Fallback, excludes pure action text) |
If a host upgrade alters the DOM, maintainers need to sync SELECTORS and test fixtures; the README documents the structure snapshots verified against the DSH 0.2.1-rc.2 client artifacts.
Installation & Activation¶
The DSH version range declared by the plugin is engines.dsh: >=0.2.0-rc.1 <0.3.0; the README records that hovering and jumping work correctly on DSH 0.2.1-rc.2 (Windows / DeepSeek Harness Desktop). Please check your local DSH version against the range in package.json before installing.
The official recommendation is to install from the plugin marketplace (replace web with your profile name, e.g., desktop):
dsh plugin --profile web add dsh-reveal-in-explorer
If it is not yet published to NPM, you can install from GitHub:
dsh plugin --profile web add github:Ghdhdhhake/dsh-reveal-in-explorer
Or install from a local directory:
dsh plugin --profile web add /path/to/dsh-reveal-in-explorer
Refresh the page after installation; Client changes support hot-loading, so no Harness restart is required.
For offline or registry-restricted scenarios, the README provides steps to write the link: dependency into the profile’s package.json, supplement pnpm-lock.yaml, mount the bundle in dsh.profile.bundles, and then run pnpm install --offline. You can follow the repository instructions.
Uninstallation: Deactivate and remove dsh-reveal-in-explorer in Settings → Plugins, or delete it from the profile’s dependencies / dsh.profile.bundles and reinstall dependencies.
Typical Usage¶
No additional configuration is required. After installing and refreshing the client:
- Find a file reference in the assistant or user message in the DSH chat (blue inline reference, file link, chip, or delivery card, etc.).
- Hover the pointer over the reference for approximately 160ms until the “Reveal in Explorer” overlay appears.
- Click the button; on success, the system file manager will open and locate the file (on Linux, it usually opens the containing directory).
- If it fails, check the reason on the second line of the overlay or the
console.warnlog in the browser console.
You can still single-click the reference to preview it in the right sidebar as usual; the two operations do not replace each other.
Scenarios & Notes¶
Who it is for: Developers who frequently edit files in local repositories while referencing the Harness chat, need to copy paths in the Explorer, drag files, or hand them over to external tools; also suitable for scenarios with many delivery cards where you want to minimize clicks on the sidebar preview.
Execution & Trust: The plugin runs with the permissions of the current DSH client process. Before installing, you should read the source code and the MIT license to ensure it complies with your security policy.
Dependencies & Degradation: Relies on the host’s assembled remote.session (@deepseek-ai/dsh-api-remotes) and the shell.overlay slot; if missing, the plugin degrades to a no-op and should not cause page errors. In purely server-side environments without a desktop file manager, the overlay may appear, but clicking it will display a failure reason.
Known Limitations (from README): Recognition depends on the host’s current DOM; if the reference is clipped or scrolled out of the viewport, the overlay closes rather than following it; Linux cannot guarantee “selecting” a single file, only opening the directory.
Conclusion¶
dsh-reveal-in-explorer adds a short path on the client side of DSH’s “Everything is a Plugin” philosophy: Hover over file reference → System file manager locates it, without changing the original click-to-preview. If you need this workflow, you can install it using the commands above and refer to the Community Directory and the GitHub README for updates and compatibility notes.