dsh-at-file
FSMargoo/dsh-at-fileCodex 风格的 `@file` 文件引用,输入框里直接搜索并引用工作区文件。
macOS Finder 剪贴板粘贴:在 Finder 里 Cmd+C 复制文件或文件夹,回到 DSH 按 Ctrl+V 把绝对路径插入输入框;普通文本粘贴的 Cmd+V 不受影响。
English · 简体中文 · Website: English / 中文
A macOS plugin for DeepSeek Harness Web. Copy files or folders in Finder with Cmd+C, return to DSH, then press Ctrl+V to insert their absolute paths into the composer.
Normal text paste stays on Cmd+V.
Copying a file in Finder does not put a plain absolute path on the clipboard. Finder writes a native file-list representation, while a browser editor is deliberately isolated from local filesystem paths. That leaves a small but recurring gap when you want to give a local file path to an agent.
dsh-paste-path bridges that gap inside DSH without uploading the file or taking over normal paste.
Cmd+C.Ctrl+V Paste path hint, press Ctrl+V.The hint stays hidden when the clipboard does not contain file paths. Duplicate paths already present in the draft are skipped.
From npm:
dsh plugin --profile web add dsh-paste-path
From GitHub:
dsh plugin --profile web add github:jhuanxx44/dsh-paste-path
For local development:
dsh plugin --profile web add /absolute/path/to/dsh-paste-path
Restart dsh web and refresh the page after installation.
The host plugin reads macOS Pasteboard file-list data (NSFilenamesPboardType) through osascript. A small DSH client extension checks whether a path is ready and inserts it into the active composer only when you press Ctrl+V.
The browser Clipboard API is not used, so the plugin does not trigger a normal website clipboard permission prompt.
Cmd+V behavior is left untouched.macOS may still deny osascript access depending on your local automation permissions. If that happens, grant the relevant permission and try again.
The clipboard belongs to the machine running dsh web, not necessarily the browser you are using.
403, so the plugin cannot provide your Mac's local paths.If you need to send local files to a remote DSH instance, use an upload-oriented plugin instead. This plugin intentionally solves local path handoff only.
Requirements:
Run the checks:
npm test
The earlier in-session plugin named fpath-1 was the prototype. This repository is the installable, restart-persistent package.