dsh-file-view: Clickable and Previewable File Paths in Conversations

Preface

When chatting with the assistant in DeepSeek Harness (DSH), replies often contain paths like src/foo.ts, README.md, or paths with line numbers. The official chatFileMentions mainly covers this round’s deliverables (deliverables.produced); manually written paths in the body do not automatically become actionable objects. You have to manually copy the path, switch to the editor or sidebar, breaking your flow.

dsh-file-view is a client-side DSH plugin submitted by maintainer skyzzq (currently 0 stars in the community directory, version 1.0.2, MIT). It converts recognized file paths in the assistant’s response into clickable links, and integrates sidebar preview, opening with the system default application, and file manager location; it also provides link color settings that share the source with the interface accent color. Below is an introduction to what it does, how to install it, and how to use it daily.

What is it

The full name of the plugin is dsh-file-view (also written as DSH File View in the README), belonging to skyzzq/dsh-file-view, categorized as a client plugin in the SkillHub Plugin Directory. The host-side index.js has an empty apply, registering no routes or tools; the actual logic is in the client bundle, which wraps text paths after Markdown rendering via DOM scanning and completes interactions using the host’s existing remote.session.openWorkspacePath and sidebar dsh-resource:// capabilities.

Core Features

File Path Recognition and Linking

The plugin only wraps text nodes and uses MutationObserver to restore links after dialogue re-renders, without replacing React child elements. The recognition scope includes:

  • Absolute paths (Windows / UNC / Unix style)
  • Relative paths with separators (e.g., src/foo.ts, ./run.py)
  • Bare filenames with known extensions (e.g., README.md, app.py)
  • Line number suffixes (e.g., a.py:12, a.py (line 4069)), passed along during preview

Not handled: URLs, common English words, version numbers like 1.2.3, or directory name fragments only (e.g., src/components).

Clicks and Shortcuts

Action Behavior
Click Preview in sidebar (same path semantics as official chip)
Ctrl / Cmd + Click Open with local default associated app
Alt + Click Locate and select in file manager
Right-click Preview / Open with default app / View in file manager / Copy path
Enter / Space (when focused) Same as a click

Relative paths are first appended with the session cwd before parsing; preview uses dsh-resource://file/session/<id>/<path>. Implementation-wise, coordinates are recorded on mousedown, and on click, if the displacement is greater than 4px or a non-empty selection exists, the native behavior is allowed to prevent the issue of “clicking the link selects no text”.

Accent Color Synchronization

The settings page allows choosing from eight presets or custom colors (including color picker / hex). The selected color takes effect on both the Harness interface accent color and the file link color within the chat via ctx.theme.overrideTokens; the default “Follow Theme” does not override tokens. The plugin deliberately overrides accent color-related tokens like state-business-primary, rather than mistakenly modifying brand foreground color tokens (there is a version 1.0 pitfall explanation in the README).

Permissions and Data

According to the README: does not read account credentials, does not connect to the network, does not write to the file system; the client reads localStorage for configuration, overlays a layer of theme tokens, and calls the host’s path opening interface.

Installation and Enablement

The desktop profile is exclusive to Electron and requires using the built-in desktop CLI, or entering the absolute path of the local directory in the “Add Plugin” page of the plugin page (the plugin_manager install_bundle command also accepts absolute paths). The documentation does not provide a remote one-click copyable command like dsh plugin add github:..., so please do not concatenate it based on the plugin name.

Example of installation from a local directory (replace the path with your local repository root directory after cloning or extracting):

# For example, enter in the DSH desktop plugin page "Add Plugin":
/home/you/dsh-file-view

After modifying src/, you need to rebuild and restart the desktop app:

node scripts/build-client.mjs

Before installing or enabling any DSH plugin, it is recommended to read the source code and MIT License on GitHub to confirm its behavior aligns with your expectations for your local environment; the plugin runs under current DSH process permissions.

Typical Usage

  1. After installing and enabling the plugin, chat normally with the assistant; when recognizable paths appear in the reply, the text will display as a link that can be hovered for highlighting.
  2. Quickly view images or read files: Click the path to preview in the sidebar (passes in line number suffixes according to plugin rules when present).
  3. Edit with system default programs: Ctrl / Cmd + Click, or right-click and select “Open with local default app”.
  4. Select file in file manager: Alt + Click, or right-click and select “View in file manager”.
  5. Unified visual: Open plugin settings, select accent color; the interface focus ring, selected state, and file link color will change together.

Development and self-check (when maintaining or doing secondary development):

node test/paths.test.mjs
node test/self-check.mjs
node scripts/build-client.mjs

Suitable Scenarios and Notes

Who is it for: Developers who frequently reference files within the repository in Harness chats and want to minimize copying and pasting, and users who also want the file link color to match the desktop UI accent color.

Notes:

  • The text path completion is designed to fill the gap relative to official deliverables mentions; it complements rather than completely replaces the official chip behavior.
  • It is client-side injection only (configured as dsh.client set to web, immediately: true, injecting @deepseek-ai/dsh-client-ui-conversation), not depending on additional host-side routes.
  • The community directory SkillHub has no official affiliation with DeepSeek / Hypersphere; the DSH ecosystem philosophy is “everything is a plugin”; the facts in this article are based on the repository README and package.json.

Conclusion

dsh-file-view turns file paths in the conversation into clickable links that are previewable, openable, and locatable, and uses overrideTokens to bind the accent color with the link color, focusing changes on client-side DOM scanning and the theme layer. To view documentation or submit an issue, visit the GitHub Repository and the SkillHub Directory Page.

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

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

Xiaoye