dsh-my-computer: Remotely Browse the Entire Windows Disk via DSH Web Right Panel

Introduction

DeepSeek Harness (DSH) session workspaces typically only cover the current task directory. If you are outside and only connected to DSH Web via a phone, relying solely on the workspace list is often insufficient for finding files across the entire Windows machine, modifying configurations, or dragging directories. While the community @lolkda/dsh-file-manager provided a template for a file management interface, its package.json restricts os: ["linux"], rendering it unusable on Windows. Furthermore, the protocol revolves around a fixed rootId, which is inconsistent with the requirement for cross-drive access without workspace restrictions.

dsh-my-computer, released by maintainer ymf2317-tech, is classified as a client plugin that provides a “My Computer” panel in the DSH Web right sidebar: within an authenticated browser session, it maps the entire Windows disk (C:, D:, and subsequent mounted drives), enabling operations such as browsing, reading, writing, uploading, downloading, and directory packing.

What is it

One-sentence positioning: DSH Web Right Sidebar “My Computer” — Remote browsing and operating the entire Windows disk (cross-drive, not limited by session workspace).

  • Repository: ymf2317-tech/dsh-my-computer
  • Directory Page: SkillHub Plugin Page
  • Current package version (docs): 0.2.0, License MIT, Platform Windows
  • Engine requirements: node >= 22.5.0, dsh >= 0.2.2-rc.1 < 0.3.0-0
  • README records: DSH 0.2.2-rc.1 + Windows 10/11 + Node 24, 12 host routes and right sidebar tabs working normally.

Implementation-wise, it is pure JavaScript with no build steps; the host side has zero npm dependencies, registering HTTP routes via Cordis; the client is a bundle, using React injected by the host to render the right sidebar (and accompanying left sidebar entry).

Differences from Existing File Management Plugins

The following three points determine “why to make a separate package” rather than directly inheriting from a Linux-oriented file manager:

  1. The target platform is Windows, requiring the probing of A:–Z: drive letters and free navigation via absolute paths, rather than binding to a single validated root.
  2. Routes are hung under DSH’s shared /api fetch channel (actual path looks like /api/my-computer/...). Before distribution, it requires peer.principal.kind === 'owner' to avoid exposing disk capabilities on unauthenticated ports via a prefix-less web service.
  3. Path validation only checks for non-empty, absolute Windows paths, and excludes NUL; it does not set a workspace gatekeeper; boundaries are left to Windows ACL, returning PERMISSION_DENIED when access is denied.

Core Capabilities

Backend Routes (Overview)

All capabilities are called via same-origin fetch('/api/my-computer/...') using methods like GET/POST/PUT. Errors are unified as {ok:false,error:{code,message}}. The table below lists the main endpoints recorded in the README:

Capability Method & Path (Logic) Description
Enumerate Drives GET /drives Lists available drives, capacity, and writeable status
List Directory GET /list?path= Sorted directory entries, includes parent path
Text Preview GET /read?path=&maxBytes= Default ≤512KB, hard limit 8MB; UTF-8 / GB18030
Overwrite Text POST /write Renames temporary file
Single File Download GET /download?path= Streaming, Content-Disposition supports Chinese names
Directory Zip GET /download-dir?path= Streaming pack, entry and size limits are validated before sending headers
Upload PUT /upload?path=&name= Streaming to disk; overwrite=1 is required to overwrite
New Directory POST /mkdir Not recursive
Rename POST /rename Same directory
Delete POST /delete Requires confirm:true, can be recursive; deleting drive letter roots is prohibited
Move POST /move Copies then deletes when crossing drives (EXDEV)
Health Check GET /health Version and platform info

Full directory packing is handled by the independent module lib/zip.js: scans first then writes response headers; returns JSON errors for empty directories, too many entries, or oversized items, without sending partial packages.

Registered in DSH public slots: Main entry is right sidebar tab my-computer (must provide a guide array upon registration, otherwise it won’t appear in the right sidebar “+” menu); there is also a left sidebar panellist entry.

The panel is designed for narrow screens and mobile use, including:

  • Drive letter row, breadcrumb, path box (paste like D:\dsh-workspace\vault and press Enter to jump)
  • File list: Preview drawer (image/editable text), single file download, directory packing download, cut and paste (memory clipboard, invalid after refresh), multi-select delete and move
  • Bottom: New folder, multi-file upload (confirm overwrite for same names), filter current directory, capacity and progress display
  • Styles use var(--dsw-alias-*) and adapt to dark mode and max-width: 420px

Installation and Enablement

The plugin belongs to a profile bundle: install dependencies, write to dsh.profile.bundles whitelist, and restart dsh web. Omitting any of these three steps may cause the next dsh plugin install to be pruned.

Execute in the profile directory (example is C:\Users\Administrator\.dsh\profiles\web on Windows, corresponding to the common path ~/.dsh/profiles/web):

cd C:\Users\Administrator\.dsh\profiles\web
pnpm add dsh-my-computer

Edit package.json in that directory and add the package name to the whitelist:

"dsh": { "profile": { "bundles": [ "...other packages...", "dsh-my-computer" ] } }

Save and restart DSH Web.

The README also provides an equivalent method (inside the profile directory):

pnpm add dsh-my-computer
# Then add "dsh-my-computer" to dsh.profile.bundles in package.json and restart dsh web

Method B: Installing Dependencies from GitHub

cd C:\Users\Administrator\.dsh\profiles\web
pnpm add github:ymf2317-tech/dsh-my-computer

dsh.profile.bundles registration and restart are also required.

See the subsequent sections of the repository README for local development, link:, file: vendors, etc. Restart dsh web to apply code changes (no separate build step).

Typical Usage

  1. Complete installation and whitelist registration, restart DSH Web on the Windows host.
  2. Open DSH Web via phone or remote browser using a session that has passed owner authentication.
  3. Open “My Computer” in the right sidebar (or via the left sidebar entry); select the drive letter at the top, or type an absolute path in the path box and press Enter.
  4. Browse directories: click a folder to enter; click a file to open a preview, editable text can be saved and updated (uses POST /write).
  5. Take files away: click download for a single file; click pack for an entire folder, the browser natively downloads a zip (no blob accumulation).
  6. Organize across directories: “Cut” inline or in bulk, enter the target directory and click “Paste” (POST /move).
  7. Upload: select multiple local files at the bottom, each performs a PUT /upload; when names match, follow the prompt to choose whether to overwrite=1.

The host side can run smoke tests in the package directory (script in the docs):

pnpm run smoke
# Equivalent: node tools/smoke.mjs

Applicability and Notes

Who is it for

  • DSH runs primarily in a Windows environment, and you need to remotely organize files on the entire disk on a phone, not just the current session workspace.
  • You want the capability to go through the DSH authenticated /api channel rather than opening a separate port to expose disk read/write.

Must Note

  • The plugin accesses the disk using the current DSH process permissions on Windows. You should read the source code and MIT license before installing to confirm you are comfortable with the full-disk read/write risk.
  • Only supports Windows; Linux/macOS hosts are not applicable.
  • The delete interface must include confirm:true; the plugin refuses to delete drive letter roots.
  • Directory zip has limits on entry count and total size. Exceeding the limit returns a clear error code; silent truncation does not occur.
  • The community directory SkillHub has no official affiliation with DeepSeek / Huafan; the DSH ecosystem operates on the philosophy of “everything is a plugin,” and this package is a community-maintained client extension.

Conclusion

dsh-my-computer connects “Explorer-style” full-disk access to the DSH Web right sidebar, filling the gap for Windows remote file management with 12 /api/my-computer routes and a mobile-friendly panel. For more details on installation and route descriptions, see GitHub Repository README and SkillHub Directory Page.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye