Introduction¶
When building agents or doing daily development in DeepSeek Harness (DSH), the file tree in the right sidebar is responsible for browsing the workspace. However, native entries often lack interactions found in desktop IDEs, such as “Open in Explorer,” “One-click @ into conversation,” or “Move to Recycle Bin.” Many users resort to switching to the system file manager or manually copying paths, breaking the flow within the harness.
dsh-file-extension (Category: Client), maintained by badwoo, addresses this issue. It complements the sidebar file tree in both the web and desktop versions with a set of Trae-style file operations using a custom-drawn right-click menu and a hover @ button. Deletion goes to the OS recycle bin by default instead of immediately wiping files. Below, we cover what it does, how to install it, and the differences between web and desktop usage.
What is this¶
dsh-file-extension is a file operation extension for DSH. The repository is located at GitHub: badwoo/dsh-file-extension, and the community directory page is SkillHub Plugin Page. The plugin mounts a UI on the browser side and executes real file system operations via the /api/dsh-file-extension/* route on the host process. Interface text is bilingual (Chinese/English), following the dsh locale service. Menu styles use dsh theme tokens and support switching between light and dark themes.
The README states: Verified on dsh 0.2.1-rc.2 (Windows 11); the current package version in package.json is 0.2.0, licensed under MIT.
Core Features¶
File Right-Click Menu¶
Right-clicking any file in the right sidebar file tree triggers the plugin’s custom-drawn context menu (not mixed with the native one). Typical menu items include:
| Menu Item | Behavior Summary |
|---|---|
| Show in File Explorer | Locate and select the file in Finder / Explorer, etc.; greyed out with a tooltip if the host does not support it. |
| Add to Conversation | Insert a highlighted reference chip for the official @ source at the input box cursor; serialized as a canonical @path when sent. |
| Open in New Tab | Open the file in a new tab in the right panel preview area. |
| Save As… | Write a copy with the default name name-copy.ext, without modifying the original; asks for confirmation to overwrite if the name exists. |
| Copy Absolute Path / Copy Relative Path | Copy the path and show a toast notification. |
| Rename | In-place input on the entry; Enter or clicking elsewhere confirms, Esc cancels. |
| Delete | Move to OS recycle bin by default; degrades to permanent deletion only if the host cannot access the recycle bin, with a red warning text for secondary confirmation. |
| Check for Updates… | Read the current version, query GitHub Releases for semantic comparison, delegate to the harness’s pluginManager for updating, or provide a copyable command. |
The menu supports Esc to close, ↑/↓/Home/End navigation (skipping greyed-out items), and automatic flipping at viewport edges to avoid overflow.
Note: “New File” and “New Folder” are not shown on file rows; these appear in the directory entry and the workspace root 空白区 right-click menus.
Hover @ Button¶
When hovering over any file entry, a @ button appears on the right (overlaying the entry without disrupting the filename ellipsis layout). Clicking it is equivalent to “Add to Conversation” in the menu: it inserts a clickable reference chip, which can be clicked to preview the file in the right sidebar.
Directories and Workspace Root¶
- Directory Entries: Support Show in Explorer, New File / Folder, Copy Path, Rename, and Delete Folder (whole directory to recycle bin with secondary confirmation).
- Root 空白区: Right-clicking the empty space below the entries allows New File, New Folder, and Check for Updates. New entries are created in the workspace root, with the root path derived from the tree container’s
data-files-rootattribute.
Uninstallation and Cleanup¶
The README states that no routes, style tags, or listeners remain after uninstallation. You can use the console to check if style[data-plugin="dsh-file-extension"] is null or if a request to /api/dsh-file-extension/capabilities returns 404.
Installation and Activation¶
Web Profile¶
The official installation command is as follows. After installation, restart the harness and hard refresh the browser (Ctrl+Shift+R).
dsh plugin --profile web add github:badwoo/dsh-file-extension
For local directory installation, the README example enters the cloned directory and executes (lib/ is committed with the repo, no local build required):
dsh plugin --profile web add "$(pwd)"
Desktop Version¶
The desktop profile is managed exclusively by the Electron app; dsh plugin --profile desktop will refuse the operation. Please install via Settings → Plugins → Add within the app, or manually add the package to the desktop profile’s package.json and dsh.profile.bundles as described in the README, then restart the app.
Uninstallation¶
dsh plugin --profile web remove dsh-file-extension
Also requires restarting the harness and hard refreshing the browser.
Typical Usage¶
- Reference files in conversation: Right-click a file and select “Add to Conversation,” or click the @ button on hover. The chip insertion is the final state; no need to press Tab for completion. Upon sending, the path is serialized according to specifications (paths with spaces are automatically quoted, directories have a trailing slash).
- Safe Deletion: Select “Delete”; the confirmation dialog will explain it moves to the recycle bin. The README records that on Windows, it calls
SendToRecycleBinvia PowerShell and has been verified on real machines to appear in the recycle bin. - Copy Saving: “Save As…” allows editing the filename and target folder; “Select…” calls the host directory dialog. If the dialog does not respond, the button shows “Waiting for host response…”; after 30 seconds, it prompts for direct path input, saving alongside the original file if left empty.
- New in Root: Right-click the empty space below the file tree entries and select New File or New Folder. The name is collected via a dialog and validated by the host.
After operations, the file tree relies on directory monitoring for automatic refresh; if the deleted file is currently being previewed, the corresponding preview tab will also be closed.
Web vs. Desktop Differences¶
The plugin UI runs in the browser, but behaviors like reading/writing, recycle bin, and explorer opening occur on the machine running the dsh host process, not simply the environment of the “browser opening the page.”
| Capability | Desktop | Web (Host Same Machine) | Web (Host Remote) |
|---|---|---|---|
| Show in File Explorer | Supported | Opens via host desktop opener | Greyed out + tooltip |
| Add to Conversation / New Tab Preview / Copy Path / Rename | Supported | Supported | Supported (Rename etc. still via host file system) |
| Save As | Native directory selection + Host write | Same as above | Can degrade to browser download (Default limit 32 MiB, config maxDownloadBytes) |
| Delete to Recycle Bin | Supported | Supported | Depends on Host OS |
If the deployment does not mount the session.openWorkspacePath related Remote, “Show in File Explorer” remains greyed out.
Compatibility and Coupling Surface¶
The plugin primarily reads three DOM attributes from the official file tree rows (data-files-entry, data-files-path, data-sidebar-right-session). If dsh renames these attributes in the future, the menu and hover button may silently fail; the README points out that fixing this usually only requires changing a line of constants in src/client/controller.js.
Other known limitations listed in the README include: inline renaming is an overlay; “Check for Updates” requires access to api.github.com under enterprise proxies (can use --use-system-ca or NODE_EXTRA_CA_CERTS); in-place updates depend on the availability of pluginManager.
Use Cases and Notes¶
Who it fits: Developers who frequently modify files in the DSH right sidebar, @ files into conversations, and want deletions to go to the recycle bin instead of hard deletes.
Permissions and Security: Plugin routes are authenticated via ctx.connection.requestRejection; unauthenticated requests return 401. Nevertheless, all file operations are executed with the permissions of the current dsh host process. Read the Repository Source Code and MIT license before installation to ensure consistency with your deployment strategy. The DSH ecosystem emphasizes “Everything is a plugin”; community directories like SkillHub are independent sites with no official affiliation with DeepSeek / High-Flyer.
Conclusion¶
dsh-file-extension consolidates Trae-style file tree operations into the right sidebar: custom menus, hover @, recycle bin deletion, and save as copy, while distinguishing host capabilities between web and desktop versions. Refer to the README for installation instructions and platform details.
- Directory Page: https://www.skillhub.cn/plugins/badwoo/dsh-file-extension
- GitHub: https://github.com/badwoo/dsh-file-extension