DSH-Enhance: Session Deletion, Workspace Migration, and Search Source Replacement

Preface

When running agents long-term within DeepSeek Harness (DSH), sidebar sessions and workspaces accumulate. Built-in deletion is often insufficient as it may not be thorough, and it is difficult to carry over the entire conversation history when switching projects across directories. Furthermore, internet connectivity relies on the host’s built-in search and fetch capabilities; once a key is missing or a specific provider rate-limits, the entire chain stalls. The community plugin DSH-Enhance (maintainer AnbaoIy, npm package name dsh-enhance, current version 1.2.0) addresses these three issues: verifiable session deletion, workspace migration with backups, and priority-fallback search and fetch replacement for Parallel / Tavily / Firecrawl. The following section outlines the features and installation methods based on the README and repository metadata. The plugin is categorized as a “Networking Tool” in the SkillHub directory, and the GitHub repository has approximately 1 star (subject to the page display).

What is this

DSH-Enhance is a DSH desktop/Web side plugin. It uses cordis.patch.yml to point the searchProvider / fetchProvider of web to this plugin’s implementation, and injects workspace and session-related UI into the client. It does not replace the DSH core; instead, it provides centralized toggles for deletion, migration, and provider switching under “Settings → Enhancement Settings”. It is licensed under MIT and requires Node.js >= 20.

Deleting Sessions

The “…” menu for both session rows and archive rows will feature an additional item: “Delete Session”. After a secondary confirmation, the plugin will purge transcripts, workspace accounting, archive markers, and spill data to avoid leaving fragmented data behind. If this entry is not needed, you can disable “Session Deletion Feature” in the Enhancement Settings.

Workspace Migration

In DSH, workspace ownership is determined by the cwd in the session header, and the header cannot be rewritten. Therefore, migration can only be performed by “recreating the complete history at the target path, then deleting the original session (without archiving)”.

Single Session: Drag the session row onto the target workspace row; a dashed highlight will appear at the drop location.

Whole Workspace: Workspace “…” → “Migrate Workspace”, select the destination to migrate everything at once.

A full session backup is automatically created before every migration. Under “Settings → Enhancement Settings” → “Migration Records”, you can view the history (session name, source workspace, target workspace, time) and restore to the pre-migration workspace with one click. Records and backups are retained for 3 days and expired items are automatically cleaned up when DSH starts. If “Workspace Migration Feature” is disabled, both dragging and “Migrate Workspace” become unavailable.

FAQ (excerpted from README): If the original session is deleted after migration, it can be restored from Migration Records within 3 days; records left by older plugin versions without backup files will show a greyed-out “Restore”; if the sidebar occasionally shows “Untitled” after migration, click to open the session once or upgrade to a new version (the title cache will be written after migration).

Search and Fetch Replacement

The plugin replaces web search and fetch with a chain of “Priority → Fallback 1 → Fallback 2” platforms: if the primary provider is unavailable (no key, rate limit, timeout, or content not scraped), it automatically switches to the next one. There are three slots each for search and fetch, with a total chain budget of 28 seconds; no downgrade occurs if the page is confirmed as 404/410.

Platform Search Fetch Free Quota (as stated in README)
Parallel ✅ — 5,000 requests/month
Tavily ✅ ✅ 1,000 credits/month
Firecrawl ✅ ✅ 1,000 credits/month

When DeepSeek Official is selected, requests are forwarded to the host as-is, and keys and account tokens are managed by the host; this plugin does not copy or store them separately. There is a master switch in Enhancement Settings to control search and fetch. The two chains select platforms independently, with fields below for platform keys. Keys are stored in the DSH credential service, not written to settings files, and not logged. Disabling “Search Replacement” or “Fetch Replacement” returns the corresponding capability to the host’s built-in provider. If search does not go through the configured platform, please confirm that the switch is on, the platform is in the priority slot, and the key has been saved.

Installation and Activation

The installation method provided in the README involves cloning the repository and adding it to the profile via a local link (modify the path according to your machine):

git clone https://github.com/AnbaoIy/DSH-Enhance.git
dsh plugin --profile desktop add link:C:/path/to/DSH-Enhance

Or directly edit ~/.dsh/profiles/desktop/package.json:

{
  "dependencies": { "dsh-enhance": "link:C:/path/to/DSH-Enhance" },
  "dsh": { "profile": { "bundles": ["@deepseek-ai/dsh-base", "@deepseek-ai/dsh-web-app", "dsh-enhance"] } }
}

Restart DSH to see “Settings → Enhancement Settings”. The README explicitly warns: Do not enable this alongside dsh-webenhance or @michengai/dsh-archive-manager, as the three compete for the same session menu slot and web provider id.

The plugin runs with the permissions of the current DSH process; it is advisable to review the GitHub Source Code and the MIT license terms before installation.

Development and Testing

The following command can be used to run tests within the repository (simulating @deepseek-ai/* via shims, no DSH core required):

npm test

Changes to host-side code require reloading the plugin or restarting DSH; changes to lib/client.js require a full page refresh.

Conclusion

DSH-Enhance consolidates “Thorough Deletion, Portable Migration, and Reliable Search” into a single set of Enhancement Settings: Migration offers a 3-day window for recovery, and internet connectivity features automatic failover via platform chains. See the SkillHub Plugin Page for the directory and instructions, and GitHub: AnbaoIy/DSH-Enhance for source code and issues.

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

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

Xiaoye