Introduction¶
When doing agent development with DeepSeek Harness (DSH), sessions keep accumulating. Archiving can first collapse the list, but the session directories and archive registry are still retained on disk; relying solely on manually deleting folders can easily become out of sync with the DSH workspace and the sidebar list. Below we introduce the community plugin @very12345/dsh-archive-delete: it provides delete controls for archived sessions in the Web GUI sidebar, and synchronously cleans up session directories and archive registry. It can be used standalone, and is not bound to any specific web model backend or Feishu bridge.
What Is This¶
Maintainer: Very12345, categorized as a client-side plugin. Package name @very12345/dsh-archive-delete; the version in the current documentation is 0.3.5; license MIT.
Plugin positioning: a standalone DSH plugin that provides delete capability for archived session rows in the sidebar; regular unarchived sessions do not show delete controls. The deletion scope is consistent with DSH’s native interface and GUI, and by default only handles archived sessions.
Core Features¶
Sidebar and Archive Status¶
Starting from 0.2.5, the sidebar delete control directly subscribes to the DSH Workspace archive state: after a new archive is confirmed, the control automatically appears without needing to refresh or switch windows; when archiving is canceled, it automatically hides and is removed from batch selection.
Confirmation and Batch Operations¶
Starting from 0.3.4, single deletion, batch deletion, and dangling record cleanup all use DSH’s official in-page confirmation dialog, with focus, Tab, and Esc managed by the host; canceling does not send a delete request. Entries that fail batch deletion retain their controls and can be retried.
Deletion Boundaries and Registry¶
On deletion, the session directory is removed; workspace membership, archive, and pin registry entries are cleaned up through DSH’s native Workspace Registry, and a native session-list removal event is published. Running or finishing tasks will refuse deletion; stopped sessions can be immediately removed from the list. If the host still holds the session object or a file write lock, the deletion intent is recorded as pending cleanup, and file and registry cleanup is completed after resources are released or the host restarts.
Windows probes handle occupancy via exclusive file sharing; other platforms use flock. After a successful deletion, the native session list is updated; pending-cleanup and deleted markers are stored under archive-delete/deletions/ in the DSH home, and refreshing the page will not restore removed rows. The UI displays the number of files pending cleanup.
Settings Page¶
The settings page provides an archive summary and an entry point for invalid record cleanup. Its styling and sections are consistent with the Windows desktop operations page, and it supports narrow screens; archive management still retains sidebar selection and deletion confirmation.
The host routes are /plugins/dsh-archive-delete/list and /plugins/dsh-archive-delete/delete (exact routes). Session directories are resolved in the order DSH_HOME, WEBAGENT_HOME/deepseek-harness, ~/.dsh.
Installation and Activation¶
The installation command follows the repository README:
dsh plugin --profile desktop add github:Very12345/dsh-archive-delete
# CLI WebUI can choose --profile web
You can also run npm pack in this repository and then install with the local package:
dsh plugin --profile <name> add file:/absolute/path/package.tgz
Note: There is currently no directly installable scoped package in the npm public repository; installation is mainly from GitHub source at present. After loading a new version, you need to restart the corresponding DSH host/profile.
Environment requirements: DSH’s Web GUI interface, Node.js >= 20; the current workspace compatibility target is the DSH 0.2 series.
Typical Usage¶
- Install the plugin for the desktop or web profile using the command above, and restart DSH.
- Find the archived session row in the Web GUI sidebar, and use the delete control on that row.
- Confirm the deletion in the in-page confirmation dialog; when needed, you can use the settings page for batch selection and invalid record cleanup.
Delete controls will not appear for regular sessions in the sidebar; this is expected behavior.
Scope of Use and Notes¶
Who it’s for: Developers who run sessions on local or self-hosted DSH for long periods and still want them to be completely removed from disk and registry after archiving.
Permissions and security: The plugin runs with the current DSH process permissions. Before installing, please review the GitHub source and the LICENSE and NOTICE yourself. The community plugin directory SkillHub plugin page is an independent site and has no official affiliation with DeepSeek / 幻方.
Dependency notes: The peer dependencies in package.json include @deepseek-ai/cordis and @deepseek-ai/dsh-api-workspace-controller (both optional meta); the client injects the workspace controller and UI-related modules, and the platform is web.
Conclusion¶
dsh-archive-delete integrates “deleting archived sessions” into the DSH sidebar and the native registry workflow, reducing the inconsistency between manually deleted directories and the list. For more information, visit the directory page https://www.skillhub.cn/plugins/Very12345/dsh-archive-delete and the repository https://github.com/Very12345/dsh-archive-delete.