Preface¶
When discussing local projects with a model in DSH, you often want it to “see” the location of a directory on your local machine, rather than an attachment that cannot be uploaded. The upstream attachment flow is designed for files: dragging in an image or a document triggers an upload; however, when dragging in an entire folder, the directory itself is not a file, so the upload process cannot extract useful content, yet it is often still treated as an attachment in the input box. The DeepSeek Harness community plugin dsh-plugin-drop-path (maintainer vianvio, GitHub vianvio/dsh-plugin-drop-path) addresses this specific scenario: in the client input box, it rewrites a drop of “exactly one folder” into a reference block in the @path/ format. The model receives the absolute local path of that folder, and you can continue typing to send it.
What is this¶
dsh-plugin-drop-path is a DSH client plugin (current npm version 0.1.2, MIT License, zero runtime dependencies). It does not alter server-side logic; it only intercepts qualifying drops on the browser side and writes the path through the upstream reference insertion channel. The plugin is categorized as a client plugin in the DSH ecosystem directory; SkillHub Directory Page: https://www.skillhub.cn/plugins/vianvio/dsh-plugin-drop-path.
Core Functionality¶
The following describes the behavioral classification during drag-and-drop (consistent with the README):
| What you drag in | Result |
|---|---|
| A folder | The plugin takes over the drop and inserts the absolute path into the input box (a folder-shaped @path/ reference block) |
| A regular file | Not processed; follows the upstream attachment flow (image / file upload) |
| Multiple items | Not processed (no guessing even if the multi-selection contains folders) |
Only “exactly one folder” is taken over: a misjudgment could swallow a file that should have been processed as an attachment, so the author chose a conservative strategy. The display of the reference block relaxes the upstream width limit (approx. 240px) and ellipsis truncation to ensure long paths are fully visible; the text sent to the model remains unchanged.
Key points regarding path sourcing and insertion:
- Listens for drops at the
windowcapture phase, preceding the upstream attachment plugin attached to thedocumentbubbling phase, independent of plugin loading order. - The absolute path comes from the DSH Desktop narrow bridge
window.__DSH_DESKTOP_FILE_PATH__(corresponding to Electron’swebUtils.getPathForFile). In a standard browser without this bridge, it will explicitly indicate that the path cannot be read rather than inserting a fake path. - Uses the upstream channel
slash/input-insert-referenceto insert the reference, avoiding a full replacement of the Lexical draft which could cause existing reference blocks to degrade or result in cursor loss.
Installation and Activation¶
Refer to the README for the installation command. Desktop example:
dsh plugin --profile desktop add dsh-plugin-drop-path
Fill in the --profile with the profile you are actually using (desktop for the desktop client, web for the web client). DSH needs to be restarted after installation—client plugins are mostly loaded at startup. The command installs the package via pnpm and automatically writes dependencies declaring dsh.bundle into the profile’s dsh.profile.bundles, eliminating the need to manually edit package.json.
Other sources (from the original material):
| Source | Command |
|---|---|
| npm (Recommended) | dsh plugin --profile desktop add dsh-plugin-drop-path |
| GitHub Latest Commit | dsh plugin --profile desktop add github:vianvio/dsh-plugin-drop-path |
| Local Directory (Dev) | After cloning the repo: dsh plugin --profile desktop add link:$HOME/dsh-plugin-drop-path |
Update and Uninstall:
dsh plugin --profile desktop update dsh-plugin-drop-path
dsh plugin --profile desktop remove dsh-plugin-drop-path
Typical Usage¶
- Open the conversation input box in DSH Desktop.
- Drag a single folder from Finder or File Explorer into the input area.
- A reference block with a folder icon
@…/appears in the input box, containing the absolute local path of the folder; continue typing your instructions and send. The model sees the path string rather than an attachment.
If the same interface is opened in a standard browser without the Desktop path bridge, the plugin will state that the local path cannot be read—this is an expected boundary, not a configuration error.
Use Cases and Notes¶
Target Audience: Developers who frequently ask the model in DSH to explain, generate scripts, or reference context based on local project directory paths, and who prefer dragging and dropping over manually typing long paths.
Known Boundaries (README):
- Paths are only available in DSH Desktop; Web browsers lack
__DSH_DESKTOP_FILE_PATH__. - Paths are inserted as-is: no existence validation, no
~abbreviation, no relativization, to avoid the model misinterpreting them on the other side. - Only processes drops of “exactly one folder”; everything else is handed over to the upstream.
Security and Trust: The plugin runs on the client with the current DSH process permissions and reads the local path of the dropped folder to write it into the input box. It is recommended to review the source code and MIT License on the GitHub repository before installation; the community directory SkillHub is an independent site and has no official affiliation with DeepSeek / High-Flyer.
For mechanism details and verification instructions, see docs/notes.md in the repository; behavior and release contracts are covered by npm test (20 tests according to the README).
Conclusion¶
Following the steps above, you can use a single folder drag-and-drop on the Desktop client to provide the local absolute path to the model in the form of a reference block, bypassing the dead end of “directories cannot be uploaded as attachments.” For more metadata and discussion, see the directory page https://www.skillhub.cn/plugins/vianvio/dsh-plugin-drop-path; for source code and installation instructions, see https://github.com/vianvio/dsh-plugin-drop-path.