Introduction¶
When developing agents in the DSH Web GUI, the file sidebar and the conversation input box are high-frequency entry points: you need to see sizes, change dates, download or delete files in the tree, and also “@” a path into the current conversation; the input box is often used to reuse commands typed earlier in the session, or to collect frequently used prompts as slash commands. The official “Files” page (@deepseek-ai/dsh-client-ui-sidebar-files) provides basic browsing, but lacks explorer-style right-click menus, multi-select, inline metadata, as well as session-bound upload, delete confirmation, and trash-bin paths. This plugin adds these capabilities on top of the official files page and additionally includes two features unrelated to the file tree but equally useful every day: file-driven slash commands and ↑/↓ history recall in the input box. Maintained by TiChuXiXi; source and documentation are available in the GitHub repo, and the community directory page is on SkillHub.
What This Is¶
dsh-file-extras is an MIT-licensed plugin for the DSH Web GUI (current package version 0.3.0, requires DSH >=0.2.0-rc.2). It does not change DSH’s overall “everything is a plugin” architecture; instead, it enhances the official file tree and official input box APIs: the browser half provides UI (right-click menu, multi-select, inline size/date, delete confirmation, @ chip insertion, history recall hints); the host half mounts routes under the /dsh-file-extras prefix on ctx.webServer, filling in capabilities not present in the official workspaceFiles remote, such as modification time, streaming download/upload, trash-bin deletion, and the session’s complete list of user commands.
Core Features¶
File Tree Right-Click and Inline Metadata¶
A custom menu appears only when right-clicking inside the file tree; outside the tree, the browser’s default right-click menu is used.
| Object | Menu Items |
|---|---|
| File | Download, @ to conversation, Copy path, Delete |
| Folder | Upload files here…, @ to conversation, Copy path, Delete |
| Empty area | Upload files here…, Copy path, Refresh size and date, Select all visible items; when items are already selected, also Clear selection, Delete N items |
File rows show size and modification time at the end, e.g. 1.2 KB · 2026-03-04 13:06:07, automatically choosing B/KB/MB/GB/TB/PB in base 1024. Folder rows show the count of immediate children and modification time, e.g. 3 items · 2026-03-04 13:06:07 (only one level from readdir, no recursion).
Multi-Select and Deletion¶
Multi-select follows common explorer conventions: a plain click clears the selection; Ctrl / ⌘ + click toggles row selection; Shift + click selects a range from the anchor to the current row; clicking on empty space clears; right-clicking on empty space can select all visible items; Esc closes the confirmation dialog, right-click menu, and selection state in that order. If you right-click on a selected row, the menu applies to the entire selection; if you right-click on an unselected row, only that row becomes selected.
Deletion goes through a two-step confirmation dialog that lists each item’s type, size, or folder contents summary; by default, items are moved to trash (restorable), and “permanently delete” is behind an unchecked checkbox by default. The host implements trash across Windows / Linux / macOS; if trash is unavailable, it raises an error and will not silently switch to permanent deletion.
@ to Conversation¶
Right-click a file or folder and choose @ to conversation; the path is inserted as a reference chip into the current conversation input box (multi-select can insert a batch at once), insert only, not auto-send. The chip is inserted via the official ctx.conversation.input.for(actx).addFiles(...), and the mention text is consistent with @deepseek-ai/dsh-file-reference’s formatFileMention; “current conversation” is determined by ctx.sidebarRight.mounted, matching the conversation whose file tree is rendered.
Slash Quick Commands¶
Under ~/.dsh/commands/, each <name>.md corresponds to a global slash command; the name must match /^[a-z][a-z0-9_-]*$/. The body may contain a $ARGUMENTS placeholder; the frontmatter can read description and input-hint. After changing the file contents, it re-reads from disk on the next invocation; adding or deleting command files requires restarting dsh web (scanned and registered at startup). When executed, the body is sent to the agent as a normal user message, using the official ctx.commands.register(). This feature is ported from the same author’s dsh-command-md (MIT).
Example command file:
---
description: Review code changes in the current workspace
input-hint: Optional supplementary notes
---
Please review the code changes in the current workspace, focusing on potential bugs and security issues.
$ARGUMENTS
↑/↓ Input Box History¶
In the input box, press ↑ / ↓ to cycle through commands actually typed by the user in this session (data comes from the host RPC history, which reads the full event log and keeps only entries with source.kind === 'user', excluding agent-injected contexts). When the cursor is at the very beginning of the draft or the draft is empty, ↑ enters history navigation; during navigation, a hint appears above: History commands … ↑↓ 3/12 · Esc to exit; pressing Esc or pressing ↓ after returning to the latest item restores the draft saved before entering navigation. When / or @ candidate menus are open, ↑/↓ are not intercepted. This feature is ported from the input history part of dsh-message-jump (MIT).
Installation and Activation¶
Web-side install command (from the README):
dsh plugin --profile web add dsh-file-extras
You can also, within a conversation, have the Agent use plugin_manager’s install_bundle pointing to the plugin directory. After installation, refresh the page once (the client bundle is loaded and cached when the plugin activates).
The plugin has no separate Config fields or runtime toggles; adjustable behaviors are in constants at the top of the source with comments.
Typical Usage¶
- After installing and refreshing the Web page, right-click inside the official file tree in the sidebar: use “Download” or “@ to conversation” on a single file, or “Upload files here…” on a folder.
- For batch deletion: use
Ctrl/⌘orShiftto multi-select, right-click on empty space and choose “Delete N items”, review the list in the confirmation dialog, and confirm (moves to trash by default). - To customize slash commands: create
~/.dsh/commands/review.md(command namereview, invoke as/review), write frontmatter and body; changes to the body take effect immediately, creating new files requires restartingdsh web. - When editing a long prompt in the conversation input box, use
↑to recall earlier user commands in this session, and useEscto exit and restore the current draft.
Use Cases and Notes¶
Who it’s for: Developers who primarily operate workspace files in DSH Web, frequently @ paths into conversations, and want terminal-style history and Markdown-defined slash commands.
Permissions and security: The plugin accesses the host filesystem with the current dsh process privileges; routes validate Host/Origin and signed cookies via connection.requestRejection(); root must be an existing absolute path and must not be a drive root or filesystem root; paths are validated by realpath containment. Before installing, review the security boundaries in the repo README and the deletion behavior in lib/trash.js. Uploads/downloads have no conventional size cap (uploads reject early when content-length clearly exceeds 4 GiB); large file downloads use a stat pre-check plus an <a download> streaming save to avoid loading the whole file into browser memory.
The community directory SkillHub is not officially affiliated with DeepSeek / Hianyi; it is only a third-party plugin index in the DSH ecosystem.
Conclusion¶
dsh-file-extras upgrades the official files page to interactions closer to everyday development habits (metadata, right-click, multi-select, trash deletion, @ chips), and brings ~/.dsh/commands/*.md slash commands and session-level input history into the same plugin, reducing the need to switch back and forth between the Web GUI and external tools. For implementation details and the host route list, see GitHub: TiChuXiXi/dsh-file-extras and the SkillHub directory page.