Introduction¶
In DSH Web, common operations when using sessions include copying the session ID, pinning frequently used sessions, exporting Markdown, and cleaning up session directories that are no longer needed. DSH already has entry points for renaming, forking, and archiving, but these session operations are not placed individually in the session menu.
dsh-session-actions is a DeepSeek Harness Web plugin used to append these actions to the end of the session menu: Copy ID, Pin, Export Markdown, and Permanent Delete.
Plugin Positioning¶
- Name:
dsh-session-actions - Maintainer:
xingyingyuzhui - Type: DSH Web Plugin
- License: MIT
- Node Requirement:
node >=20 - DSH Client Platform:
web - Relationship to Official Interface: Does not modify official components, only appends items to the end of the session menu
Core Features¶
Copy Session ID¶
Writes session-… to the clipboard for easy reference in terminals, tickets, scripts, or documentation.
Pin Session¶
Pins frequently used sessions. The pin list is stored in:
~/.dsh/dsh-session-actions/pins.json
The original session remains in its original workspace.
Export Markdown¶
Select “Export Markdown” from the session menu to save session records or migrate content.
Permanently Delete Session¶
Deleting a session requires confirmation; after confirmation, the session directory is permanently deleted.
This is not archiving. Archiving still uses the official menu.
Installation and Enabling¶
Prerequisites: dsh web is already running on this machine.
Execute the installation command:
dsh plugin --profile web add github:xingyingyuzhui/dsh-session-actions
After installation, restart dsh web for the plugin to take effect.
For local development, you can also install using a local path:
dsh plugin --profile web add link:/abs/path/to/dsh-session-actions
Uninstall command:
dsh plugin --profile web remove dsh-session-actions
Typical Usage¶
- First, ensure that
dsh webcan run on your machine. - Install the plugin:
dsh plugin --profile web add github:xingyingyuzhui/dsh-session-actions
- Restart
dsh web. - Open the DSH Web interface; you can see the new items at the end of the session menu:
- Copy Session ID
- Pin Session
- Export Markdown
- Delete Session - A confirmation is prompted before deleting a session; after confirmation, the session directory will be permanently deleted.
Local Development and Testing¶
Client source code is located in session-*.mjs.
After modifying the source code, you need to regenerate client.js; do not manually modify this artifact.
Build and test commands:
npm run build
npm test
Applicable Scenarios and Notes¶
Suitable for users who frequently copy session IDs, pin frequently used sessions, export Markdown, or clean up session directories in DSH Web.
Notes before use:
- The plugin runs with the permissions of the current
dshprocess. - Deleting a session permanently deletes the session directory, not archiving.
- Archiving operations still use the official menu.
- It is recommended to check the source code, license, and Node version before installation; this plugin is licensed under MIT and requires
node >=20.
Links¶
GitHub Address:
https://github.com/xingyingyuzhui/dsh-session-actions
If you need to find it in the DSH Community Directory, you can search by plugin name dsh-session-actions. The Community Directory is an independent site with no official affiliation with DeepSeek or Huanfang.