@louisremi/dsh-always-on: Download, Browse, and Edit via Browser when Running DSH in Containers

Preface

DeepSeek Harness (DSH) is by default aimed at local machines or environments that can directly access the local filesystem: common in-session operations such as “show file location” and “open in app” rely on desktop paths and local applications. When Harness is placed inside a Docker container, NAS, or remote server, there is often only the Web UI link between the process and the user’s computer, and the container cannot read files on your computer, so the above buttons fail.

The following introduces the community plugin @louisremi/dsh-always-on (maintainer louisremi, classified as client-side). Without relying on the local filesystem, it replaces the failed entries with browser-side capabilities: downloading files, opening a sidebar file list, editing text in the sidebar, and writing back to the Harness host.

What is this

@louisremi/dsh-always-on is a DSH plugin for “containerized, no local disk access” scenarios. The official description can be summarized as: when running Harness in a container, browse directories, download files, and edit through the Web UI.

The plugin is published as the npm package @louisremi/dsh-always-on (in the current materials the package.json version is 0.3.1), MIT license. Community directory page: https://www.skillhub.cn/plugins/louisremi/dsh-always-on; source code and documentation: https://github.com/louisremi/dsh-always-on.

Core features

Download

A Download button appears where the original “folder” type buttons were located, saving a single file to your computer. Locations include: file cards (present) under agent replies, the changed-file review page, the toolbar of files opened in the sidebar preview, and the empty state when preview cannot render.

Limitation: only supports single files, does not support downloading an entire folder as a package.

Show files

The workspace folder button in the session title bar becomes Show files; clicking it opens or focuses the Files tab in the sidebar. When already inside the Files tab, the button is hidden to avoid repeated operations.

Edit

After opening a text file in the sidebar preview, click Edit (pencil icon, adjacent to Download). The file opens in a separate editor tab; the editor is based on Monaco (the same editor component as VS Code). Monaco is not bundled in the plugin package; on first edit it loads a fixed version monaco-editor@0.52.2 from jsDelivr.

Key editing behaviors:

  1. Ctrl/Cmd+S or Save writes back to the file; a dot on the tab and file name indicates unsaved changes.
  2. If the file on disk has been modified after opening, saving is rejected; you must choose among Reload from disk, Overwrite, or Keep editing; there is no silent overwrite.
  3. If there is unsaved content when closing the tab or leaving the page, confirmation is required.
  4. Preserves line endings (LF/CRLF) and UTF-8 BOM; only handles text files no larger than 1 MiB; binary or invalid UTF-8 files are rejected for editing.
  5. Saving follows the session sandbox: it fails in read-only mode; in workspace-write mode it also fails if outside the workspace, consistent with the agent’s built-in file tool.

If the browser cannot access cdn.jsdelivr.net, the editor degrades to a plain <textarea>; the saving, conflict, and dirty-state logic remains unchanged, and the reason is shown. When loading Monaco, jsDelivr sees your IP and User-Agent; the Harness host itself does not need to access this CDN.

Installation and enabling

Install command (replace web with the actual profile name you use):

dsh plugin --profile web add @louisremi/dsh-always-on

The plugin supports hot loading; only restart Harness when the command prompts for a restart. When installing from a git URL, the prepare script is executed (npm run build); if the profile is managed by pnpm, you may need to approve the build script (allowBuilds), otherwise dist/ may be missing.

No additional configuration items are needed.

Uninstall:

dsh plugin --profile web remove @louisremi/dsh-always-on

Typical usage

  1. Start the DSH Web profile on a container or remote host in the usual way, and install this plugin.
  2. In the session, view the file cards or change lists produced by the agent, and use Download to save files to your local machine.
  3. Click Show files in the session header to browse the workspace file tree in the sidebar.
  4. Preview a text file in the sidebar, click Edit, modify and Save; if there is a conflict with the disk version, choose to reload or overwrite according to the interface.

Implementation notes and dependencies

The plugin registers two authenticated routes with Harness: GET /api/download.file, POST /api/save.file; the UI buttons occupy the same slots as the built-in open-in-app and sidebar-right plugins and override the original buttons; after disabling the plugin, the built-in buttons are restored.

The README notes testing on DSH 0.2.0-rc.2, and depends on the slot names and public APIs of the above built-in plugins. Runtime requires Node ≥ 20.

Suitable scenarios and notes

Suitable for: Running Harness long-term on a NAS, server, or any Docker environment, where operators only connect via a browser, but still need to download deliverables, browse the workspace, and edit config files or scripts in the sidebar.

Notes:

  • The plugin accesses files with the current DSH process permissions; before installing, review the source code and MIT license yourself to confirm it meets your security policy.
  • Editing has no multi-user file locking and relies only on disk version validation; large folders need to be downloaded file by file.
  • Community directories such as SkillHub are independent sites with no official affiliation to DeepSeek / High-Flyer; this article does not constitute official endorsement.

Conclusion

After containerized DSH loses the local filesystem bridge, the browser needs to take on downloading, directory browsing, and text editing. @louisremi/dsh-always-on fills this gap with three entries and two API routes, and aligns with the session sandbox policy.

  • Community directory: https://www.skillhub.cn/plugins/louisremi/dsh-always-on
  • GitHub: https://github.com/louisremi/dsh-always-on
羽毛球分组比赛记分
小程序二维码

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

Xiaoye