dsh-copy-file-path: Copy Relative and Absolute Paths in the Delivered File Card Menu

Introduction

In the DeepSeek Harness (dsh) Web interface, a “Deliverables” card is displayed at the end of each conversation turn. The card comes with an Open button and a ⋯ menu, which already includes items like “Open in default app” and “Show in File Explorer.” However, if you want to paste the file path into a terminal, script, or document, you often have to manually locate the path from the file explorer or logs.

dsh-copy-file-path, published by community maintainer Meowrium, is a client-side plugin. It appends “Copy relative path” and “Copy absolute path” to the deliverables card’s ⋯ menu. Upon clicking, the path is written to the clipboard and a brief confirmation prompt is shown.
Repository: GitHub; Directory Page: SkillHub.

What is this?

The deliverables menu items in dsh are hardcoded within @deepseek-ai/dsh-client-ui-deliverables. Since there are no extension slots or registration hooks reserved, it is difficult for a shadow plugin to modify the menu without rewriting the entire card.

This plugin adopts a approach similar to dsh-mermaid: performing DOM post-processing on the browser side. It listens to the primitives menu portal, and when the card’s chevron is expanded, it clones the last row, modifies the text and icon, and takes over the click event. It does not patch the core, nor does it monkey-patch React.

Core Features

The deliverables card ⋯ menu adds two rows below the default dsh items (labels follow the locale):

Menu Item Copied Content
Copy relative path Path relative to the current session workspace
Copy absolute path Absolute path on the host machine

Path values are not guessed or rewritten; they are derived from existing dsh data:

  • Absolute Path: Obtained from the title attribute of the card’s preview button. It is consistent with the resolveWorkspacePath(cwd, file.path) used by dsh when resolving the file to open, and the separators are preserved as-is.
  • Relative Path: Reconstructed from the card’s aria-label (e.g., “More file operations for {path}”) to retrieve the path declared by the present tool in the current turn; if declared as an absolute path, it is recalculated relative to the workspace root.
  • Workspace Root: Inferred from the above absolute path and declared path; only falls back to the client session store (sessions.list) if the label does not declare a path.

If a specific item cannot be reliably obtained, the corresponding menu row will not appear, preventing the copying of invalid paths. The plugin only copies text; it does not read or transfer files. The host-side inject is empty, ensuring no host access.

Scope and Limitations: Only covers the deliverables card menu; the “Files changed” chips and the sidebar file tree do not have similar menus and are unaffected. If dsh changes the card markup in the future, the plugin may need to be updated. If detection fails, it silently skips injection rather than incorrectly modifying other menus.

Installation and Activation

Installation command (from the repository README):

dsh plugin --profile web add github:Meowrium/dsh-copy-file-path

After installation, restart dsh web and perform a hard refresh (Ctrl+Shift+R) in the browser: the host mounts the bundle at startup, and the browser shell rebuilds client modules.

Uninstallation:

dsh plugin --profile web remove dsh-copy-file-path

The current package version is 0.1.0, licensed under MIT. The author has verified it on Windows environments running 0.1.6-alpha.1; older version lines have not been tested in this repository. The plugin has no additional runtime dependencies; it can still load without locale or sessions services, displaying labels in English and deriving the workspace root primarily from card data.

Typical Usage

  1. Install the plugin under the Web profile, restart dsh web, and hard refresh the page.

  2. Complete a conversation turn that generates deliverables, and click the ⋯ menu on the deliverables card.

  3. Select “Copy relative path” or “Copy absolute path”; the corresponding string is placed on the clipboard, and a brief confirmation pill appears on the interface.

Menu structure schematic (after expanding ⋯):

⋯  ┌──────────────────────────┐
   │ ↗  Open in default app   │  ← Default dsh
   │ ▤  Show in File Explorer │
   │ ⧉  Copy relative path    │  ← This plugin
   │ ⧉  Copy absolute path    │  ← This plugin
   └──────────────────────────┘

Use Cases and Notes

Suitable for developers who frequently paste paths of files generated by Agents in the dsh Web UI into shells, CI configurations, or documentation.

The plugin runs with the permissions of the current dsh process and browser page. Before installing, it is recommended to read the source code and LICENSE to assess whether it aligns with your team’s security policies.

The DeepSeek Harness ecosystem emphasizes “Everything is a plugin”; community directories like SkillHub are independent sites and have no official affiliation with DeepSeek / High-Flyer. This article introduces a community plugin, not an official app store entry.

Summary

dsh-copy-file-path adds one-click copying for relative and absolute paths to the deliverables ⋯ menu without modifying the dsh core. The path sources remain consistent with dsh’s own resolution logic. Simply install it via the Web profile, restart, and hard refresh to use.

  • Directory Page: https://www.skillhub.cn/plugins/Meowrium/dsh-copy-file-path
  • GitHub: https://github.com/Meowrium/dsh-copy-file-path
羽毛球分组比赛记分
小程序二维码

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

Xiaoye