dsh-paste-path
Manifest valid★ 1Finder clipboard paste for macOS: Cmd+C files or folders in Finder, then Ctrl+V in the DSH composer inserts their absolute paths; ordinary text paste with Cmd+V is untouched.
dsh-paste-path
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.
The problem
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.
Use it
- Select one or more files or folders in Finder and press
Cmd+C. - Return to DSH Web.
- When the composer shows the
Ctrl+V Paste pathhint, pressCtrl+V. - The absolute paths are inserted into the current draft, one per line.
The hint stays hidden when the clipboard does not contain file paths. Duplicate paths already present in the draft are skipped.
Install
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.
How it works
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.
Security boundary
- The plugin only activates on macOS.
- Clipboard endpoints accept loopback connections only.
- Mutating paste requests must be same-origin.
- Clipboard responses are never cached by HTTP.
- Files are not opened or uploaded; only their absolute paths are inserted.
- Ordinary
Cmd+Vbehavior 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.
Remote DSH deployments
The clipboard belongs to the machine running dsh web, not necessarily the browser you are using.
- LAN IP or public hostname: the host rejects non-loopback clipboard requests with
403, so the plugin cannot provide your Mac's local paths. - SSH port forwarding or a jump host: the connection still appears as loopback to DSH. The plugin cannot detect the tunnel and would read the remote server's clipboard, not your Mac's clipboard.
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.
Develop
Requirements:
- macOS
- Node.js 22 or newer
- DeepSeek Harness Web
Run the checks:
npm test
The earlier in-session plugin named fpath-1 was the prototype. This repository is the installable, restart-persistent package.
License
Compatibility
Versions
| Latest version | Published | Size |
|---|---|---|
| 0.1.0 | — | — |
| 0.1.1 | — | — |
| 0.1.2 | — | — |
| 0.1.3 | — | — |
Comments
Loading…
Similar plugins
by lhh666-6
Paste/drop files into the DSH composer, save them under the current workspace, and insert relative paths.
★ 0
MIT
TypeScript
Aug 23, 2026
dsh plugin --profile web add dsh-paste-filesby Rudyy898
Like Codex/Claude Code: drag any file or folder (no format limit) onto the DSH web page and its real absolute path is inserted into the composer instantly — no typing paths by hand. Workspace-first sm
★ 1
MIT
JavaScript
Aug 27, 2026
dsh plugin --profile web add dsh-drag-pathby wuwaka
Adds a right-click menu to DeepSeek Harness inside desktop shells that ship no context menu: cut, copy, paste and select all in the composer, copy and copy-as-plain-text on selected text elsewhere, an
★ 0
MIT
JavaScript
Sep 12, 2026
dsh plugin --profile web add dsh-clipboard-menuby dannyvan
Drag & drop or click to attach any non-image file (PDF/Word/Excel/ZIP/text) into the composer: in the desktop shell it resolves the real Finder path instantly; otherwise it uploads to the workspace an
★ 4
↓ 99/wk
MIT
JavaScript
Aug 16, 2026
dsh plugin --profile web add dsh-file-dropby drscrewdriver
DeepSeek Harness 插件:大段文本粘贴自动存为 pastes/*.txt,输入框上方 dock 卡片管理,草稿内只留最小徽标(auto-paste × paste-to-path 整合)
★ 1
MIT
JavaScript
Oct 24, 2026
dsh plugin --profile web add dsh-paste-dockDeepSeek Harness to macOS companion daemon (notify / Shortcuts / clipboard).
★ 1
MIT
JavaScript
dsh plugin --profile web add dsh-mac-companion