Preface

In the DSH workflow, archived sessions are typically stored in local directories. If shell commands are relied upon to handle archived sessions, one must individually verify the title, creation time, parent directory, disk file path, and occupied space. dsh-archived-sessions centralizes such operations within the DeepSeek Harness Web settings page, serving as an installable settings page extension.

What is this

dsh-archived-sessions is a DeepSeek Harness Web interface settings page extension maintained by MuWinds, distributed as a single bundle package and installable with a single command. It is used to view archived sessions, release archived sessions, delete session files, and preview session content.

The package name and repository information are as follows:

  • npm package name: @muwinds/dsh-archived-sessions
  • GitHub repository: MuWinds/dsh-archived-sessions
  • Target Harness version: 0.1.0-rc.6 (web profile composite structure)
  • License: MIT

Core Features

On the Harness “Settings → Archived Sessions” page, this plugin provides the following capabilities:

  • View all archived sessions, including title, creation time, parent directory, and actual file path on disk.
  • Display the disk space occupied by each session and the total usage.
  • Release archived sessions, i.e., unarchive and return to the original workspace, supporting single, batch, and one-click all operations.
  • Delete session files from the hard disk, supporting single, batch, and one-click clear operations, with two-step confirmation.
  • Click on a session title to expand and view the session content, including previews of user/assistant/tool messages.

The host side provides the POST /dsh-archived/* route, covering four types of operations: list, unarchive, delete, and detail. This route is same-origin and unauthenticated, suitable for local Web settings page environments.

Installation and Enablement

Install from GitHub:

dsh plugin --profile web add github:MuWinds/dsh-archived-sessions

Restart Harness after installation:

npx @deepseek-ai/dsh web

The “Archived Sessions” page will appear at the bottom of the settings panel.

Install from a local directory, suitable for development and debugging:

dsh plugin --profile web add ./dsh-archived-sessions

Uninstall:

dsh plugin --profile web remove @muwinds/dsh-archived-sessions

If the package is published to the npm registry, it can be installed using the package name:

dsh plugin --profile web add @muwinds/dsh-archived-sessions

Alternatively, using only GitHub:

dsh plugin add github:MuWinds/dsh-archived-sessions

If version locking is needed, the repository source can be specified as:

github:MuWinds/dsh-archived-sessions#<sha>

This package is a pure JavaScript package with no prepare build script, thus not requiring pnpm allowBuilds authorization. The host-side plugin has no third-party runtime dependencies, is pure ESM, does not import any @deepseek-ai/*, and obtains all necessary capabilities from ctx; the browser side only depends on react, provided by the Harness frontend runtime as a platform seed.

Typical Usage

  1. Install the plugin and restart Harness:
dsh plugin --profile web add github:MuWinds/dsh-archived-sessions
npx @deepseek-ai/dsh web
  1. Enter the DSH Web interface, open the settings panel, and find the “Archived Sessions” page at the bottom.

  2. In the list, view the session title, creation time, parent directory, disk file path, and disk usage.

  3. Click on a session title to expand and preview user/assistant/tool messages.

  4. To restore a session to the original workspace, use release (unarchive). To free up disk space, use delete. Deletion requires two-step confirmation and is irreversible.

Applicable Scenarios and Notes

Suitable for local developers using the DSH web profile, especially those who need to centrally view and clean up archived sessions. Before use, please note:

  • This plugin includes the capability to “delete session files from the hard disk,” which is irreversible.
  • Installation implies trust that the code from this repository will run on your machine with your permissions. Please review the source code and MIT license before installation.
  • The host-side API is POST /dsh-archived/*, unauthenticated and same-origin, suitable only for local Web settings page environments.
  • The target Harness version is 0.1.0-rc.6, corresponding to the web profile composite structure.
  • Domestic mirrors are read-only; publishing must explicitly include the official source.

Conclusion

The value of dsh-archived-sessions is to bring archived session management back from file system operations to the DSH Web settings page: viewing, releasing, deleting, and previewing details are all completed on the same page. Repository address: https://github.com/MuWinds/dsh-archived-sessions