dsh-workspace-archive-all: One-Click Workspace Session Archiving

Preface

In the DeepSeek Harness (DSH) web interface, workspace folders in the sidebar often contain multiple sessions. Clicking to archive each session individually is tedious and inefficient. To address this issue, a plugin is needed to add an “Archive All” feature to the menu, enabling batch operations.

Plugin Introduction

dsh-workspace-archive-all is a DSH web plugin maintained by user 1959377950-dotcom and licensed under MIT. It adds an “Archive All” action to the menu for each workspace folder in the sidebar (including ungrouped buckets), allowing all unarchived sessions within that folder to be archived at once.

Core Features

The plugin primarily provides the following capabilities:

  1. Batch Archiving: Supports archiving all unarchived sessions in a specified folder sequentially after confirmation in a dialog.
  2. Smart Skipping: Automatically identifies and skips the following types of sessions to avoid accidental operations:
    • Running sessions
    • The session currently being viewed
    • Empty “New Session” rows
    • Sub-agent sessions
    • Already archived sessions
  3. Progress Feedback: Adopts a sequential archiving method, displays archiving progress, and provides a result summary at the end.
  4. Language Adaptation: Supports both English and Chinese interfaces; text adapts automatically to follow the UI language.

Installation and Enablement

Install the plugin using the official CLI:

dsh plugin --profile web add dsh-workspace-archive-all

The installation command mounts the plugin into the configuration via cordis.patch.yml, eliminating the need for manual file editing.

How It Works

This plugin does not rely on runtime interception or script evaluation order; instead, it functions through route override:

  • Route Replacement: The plugin registers an exact route to override the official workspace client bundle path:
    GET /plugins/@deepseek-ai/dsh-client-ui-workspace/client.js
      → this plugin's lib/workspace-client.patched.js
  • Non-Invasiveness: Uninstalling the plugin removes the route, and the original bundle server takes over again. Official disk files are never modified.
  • Header Consistency: The response headers returned by the plugin remain consistent with the original bundle server.

Uninstallation and Maintenance

To uninstall the plugin:

dsh plugin --profile web remove dsh-workspace-archive-all

If you need to upgrade DSH, you must regenerate the patch from the official stock files:

node tools/build-patch.mjs

The plugin’s cordis.patch.yml contains a dual-mount protection mechanism: if an entry is manually added to dsh.profile.bundles, the plugin’s own insertion line becomes inactive, preventing configuration conflicts.

Ecosystem Context

The DSH ecosystem philosophy is “Everything is a plugin.” This plugin is maintained by community developers and can be found in the dsh-market directory. It has no official affiliation with DeepSeek or High-Flyer (Huanshu Institute).

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

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

Xiaoye