DSH Chat File Actions: Centralized Opening, Locating, and Copying of Current-turn Resources within Single-turn Replies

Preface

When running conversations in DeepSeek Harness (DSH), a single reply often contains local Markdown file links, @path references, web links, and successful edit/write tool results all at once. This content is scattered across the body text and tool cards, so opening a file, locating it in the file manager, or copying a path/Markdown link usually requires multiple clicks across different places and manual consolidation.

“Chat File Actions” is a client-side community plugin released by maintainer nico-zhuang (GitHub: nico-zhuang/dsh-chat-file-actions). It hooks into the action bar of completed replies through DSH’s official slot, displaying a paperclip icon and candidate count as needed. It collects the locally referenced files, web links, and edited files from the current turn into a single compact list, without overriding the right-click menu or modifying DSH itself. Below is an introduction to its positioning, capabilities, and installation method.

What Is This

In one sentence: within the scope of a single turn and a single session, it collects actionable files and links, and uses a compact list to open, locate, and copy them.

  • Plugin package name: dsh-chat-file-actions, current documentation version 0.4.1, targeting DeepSeek Harness 0.2.1-rc.2.
  • Category: Client-side (lib/client.js injects the conversation UI; the Host-side lib/index.js only declares the configuration schema).
  • License: MIT (see the repository LICENSE).

When “Current-Turn Resources” Appear

The reply action bar will only display the paperclip icon and count when there are recognizable candidates in the current question or reply, or when there are successful structured edit/write results in the current turn. If there are no candidates, the button will not be shown.

Content the plugin parses includes:

  • Explicit local Markdown file links (including images), @path, @"path with spaces";
  • Markdown-formatted http(s) web links;
  • DSH edit/write cards successfully completed in the same turn (paths are taken from the Chat snapshot’s structured tool-result and diff/creation metadata, without scanning the DOM).

It will not guess plain bare URLs, code blocks, HTML comments, or bare file names in tool-output prose; reference-style links and all complex Markdown are not supported for now. Files modified via shell or other methods are not automatically included.

Core Features

Compact List and Interaction

After clicking the paperclip, local files and web links are displayed in the same compact single-row list, without splitting into two separate interfaces. The list only shows file names by default; files with the same name will have their parent directory appended, and hovering shows the full path. The title is fixed, the file list scrolls independently, and it follows DSH’s day/night theme. Each turn displays at most the first 200 resources, with quota reserved for files successfully edited/created.

  • Click a local file name: by default, requests the Host to open it with the system default application; can be changed to “Open in DSH sidebar” on the plugin management page. Successfully edited files carry a faint “Edited” label.
  • Click the folder icon: requests the Host’s file manager, via DSH session.openWorkspacePath, to locate a verified local file (the plugin itself does not run shell commands).
  • Local file “More”: can copy the absolute path, file name, or Markdown link; display items and order can be checked and arranged with up/down buttons on the management page. In sidebar mode, the “Open with system application” alternative is still provided.
  • Click a web link name: opens in the browser (noopener noreferrer); the real target domain is shown on the same row. “More” can copy the URL or Markdown link; web links have no local locate function and are not affected by the “file name open method” configuration.

Local paths are verified by the Host via workspaceFiles.stat of the owning sessionId; if verification fails, file operations are disabled. Each time the popover is expanded, local file verification requests are sent with at most 6 concurrent. Closing the popover sends a cancel signal. Web links only accept normalized http(s) absolute addresses, and the plugin does not proactively fetch web pages.

Plugin Management Page Configuration

Enter the “Chat File Actions” configuration page of the plugin manager:

  1. Select the open method for local file names (system application or DSH sidebar).
  2. Check and arrange the three copy actions for local files.
  3. Save.

The default is consistent with DSH 0.2.1 behavior. If all three file copy items are hidden and the system-open mode is active, the file row will not show “More”; the web link row can still be copied. Settings are saved in the DSH Host’s Profile configuration; if DSH determines that the current connection is not loopback, the settings page cannot be persisted, and it will not fall back to browser local storage.

0.4.1 fixes the issue where the settings form could not be saved because DSH no longer provides state.mode.

Language

The UI follows DSH’s global “中文/English”: locale/zh.json and locale/en.json provide manager metadata; already-expanded current-turn resource popovers, menus, and feedback switch synchronously, without needing a separate language item.

Installation and Enablement

This repository is not published to the npm registry; the .tgz in the GitHub Release is the installation package for the corresponding version. The installation steps in the documentation are as follows.

  1. Download dsh-chat-file-actions-0.4.1.tgz from the v0.4.1 Release (v0.4.0 and v0.3.0 are still retained).
  2. Install this local package in the DSH plugin manager and enable Chat File Actions.
  3. If prompted with restart-required, save other tasks and manually restart DSH; simply refreshing the page may not be enough.

Build and package from source (for self-verification or creating a local package):

npm ci --ignore-scripts --no-audit --no-fund
npm test
npm pack --ignore-scripts

Disabling or removing the plugin revokes the action-bar slot and styles, and does not modify session files.

Typical Usage (Reproducible Conditions)

  1. In a single conversation turn, reference a .md file or image inside the workspace with a Markdown link, or use @src/foo.ts, @"path with spaces".
  2. Or have the assistant successfully complete an edit/write in the current turn, producing tool cards with path metadata.
  3. After the reply for that turn is complete, click the paperclip on the action bar, and in the list open a file, Reveal to locate it, or expand “More” to copy the path/Markdown link.
  4. If you prefer to preview PDFs, images, etc. inside DSH, change the local file name open method to sidebar on the management page; whether Office-like formats can be previewed depends on Host conversion and DSH capabilities.

On Windows, for Markdown paths it is recommended to use /, encode backslashes as %5C, or use the plugin’s “Copy link”; raw C:\work\.env and similar forms where backslashes are adjacent to Markdown punctuation may be skipped. The @"C:\work\.env" reference does not go through Markdown escaping. UNC and file:-style Markdown file links are not supported for now.

Suitable Scenarios and Notes

Who it is for: Developers who frequently reference local files or external links in DSH conversations and need to quickly open, locate, and copy paths by “turn”; users who want to put edit/write outputs and body-text references in the same entry point.

Boundaries and permissions:

  • The slot is conversation.chat.assistant-actions; system opening and locating happen on the computer where the DSH Host is running, while sidebar viewing happens in the DSH page. The plugin runs with the permissions of the current DSH process; before installation, you should read the source code and MIT license, and assess yourself whether it is suitable for your environment.
  • The Chat projection structure has been verified against DSH 0.2.1-rc.2; the edit/write diff metadata in this version has not yet been item-by-item tested on real hardware, and future DSH versions may change.
  • The sidebar does not depend on dsh-better-sidebar; when the sidebar is unavailable, it does not automatically switch to system opening.
  • Windows desktop is not yet marked as actually tested in the documentation; for compatibility issues, you can provide the DSH version and reproduction steps in GitHub Issues (do not expose private paths, tokens, or full session logs).

This project is an independent community plugin and has no affiliation with DeepSeek Harness official. The community directory page (SkillHub) is an independent site and has no official affiliation with DeepSeek/High-Flyer.

Closing

“Chat File Actions” consolidates the actionable files and links from a single turn into one compact list. The open method and copy items are configurable, and the parsing and verification scope is strictly limited, avoiding accidental clicks on undeclared resources. To access the package files or source code, visit the directory page and the GitHub repository:

  • Directory page: https://www.skillhub.cn/plugins/nico-zhuang/dsh-chat-file-actions
  • GitHub: https://github.com/nico-zhuang/dsh-chat-file-actions
羽毛球分组比赛记分
小程序二维码

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

Xiaoye