DSH-Session-Toolbox: DSH Session Sidebar and Memory Enhancement Toolkit

Preface

When using DeepSeek Harness (DSH) to run long-term sessions in the same workspace, common friction points aren’t always about model capabilities: screenshots left in the input box are lost when switching sessions; the sidebar becomes cluttered with projects that cannot be collapsed by group; moving a conversation to another project directory raises fears of mismatched history or archives; and there is no built-in option to “rollback code while keeping the chat” for files modified by the assistant. While DSH provides native sessions, projects, and archives, these session-level details often require manual process memorization or external scripting to bridge the gaps.

dsh-session-toolbox is a community-maintained third-party plugin (MIT). It does not modify the official DSH installation, and relevant data remains local by default. The following sections outline its capabilities and operational sequences in the order of: “What it is → What it does → How to install → How to use → Points to note”.

What is this

dsh-session-toolbox (DeepSeek Harness Session Toolbox), maintained by AndroidSix, is categorized as “Memory” in the SkillHub Plugin Directory. Targeting DSH 0.2.x hosts, it extends the sidebar and session UI via Cordis patches to supplement capabilities such as image draft backup, project grouping and session migration, a unified archive pool, quote replies, file checkpoint restoration, and optional “next-task suggestions.” It is not affiliated with DeepSeek or Hunyuan; the community directory is an independent site, not an official app store.

The current published version marked in the README is 0.1.45; the DSH compatibility range declared in package.json is ^0.2.0-rc.2 || ^0.2.1-rc.2, and the acceptance baseline in the documentation is DSH 0.2.1-rc.2.

Core Functions

The following capabilities are derived from the project README and usage instructions, categorized by usage scenario.

Image Draft Vault

Backs up images in the input box that have not yet been sent. These can be restored after switching sessions and returning; backups are cleared once a message is sent or deleted to prevent old images from reappearing. The default retention is 7 days, with a limit of 200 MB. Image bytes are stored in the current browser’s IndexedDB (database name dsh-session-toolbox-vault); switching browsers or clearing site data may render backups unavailable.

Project Grouping and Session Migration

The sidebar can display and collapse items in a “Group → Project → Session” hierarchy. Create groups and assign projects within “Manage Projects and Groups”; you can also drag group titles or use Alt/Option + ↑/↓ to reorder them, with changes auto-saved and synced to the sidebar. Sessions can be migrated by dragging them to a target project title or via the session menu “Switch to another project…”; the prerequisite is that the session is idle and has no queued messages pending. The plugin writes after acquiring a write lock and completing lifecycle cleanup. Previously opened sessions can be migrated back without restarting DSH (writes will be rejected if the host cleanup interface is unavailable or layouts mismatch).

“Edit Project” allows changing both the name and the path of the existing new code directory: saving will migrate metadata for all existing sessions under that project (order, archive, pin, grouping, etc.), but will not move code files on the disk, nor will it rewrite old absolute paths in historical messages; if interrupted, you can click “Continue Migration.”

Archive Pool

View DSH native archives and toolbox archives in the same interface. Native entries are labeled “Session (Native Archive)”; toolbox archives additionally save snapshots of the project, order, and pinned status. Supports “Restore” back to the corresponding project; “Delete Permanently” removes local logs and other records and cannot be undone via the archive pool—a secondary confirmation is required before the operation. Auto-cleanup is disabled by default.

Quote Reply

The circular quote icon in the message action bar can quote an entire user message or the assistant’s final answer; you can also select text in the body and right-click to “Quote selection.” A preview appears in the input area, and the native input box retains the quote marker for further editing, cancellation, or quoting multiple items consecutively. Upon sending, the quote is passed to the current session model along with the question in Markdown quote format; it does not copy reasoning processes, tool results, or image bytes. Quotes are saved with the session’s native draft.

Restore File Checkpoint and Edit & Resend

The curved arrow next to a user message accesses “Restore Checkpoint”: preview the files to be restored, and upon confirmation, revert the code modifications recorded in this session from that message onwards, while keeping the chat history. Snapshots are independent of Git and do not alter commits, the staging area, or branches. If the message did not record recoverable file modifications, a pencil icon appears for “Edit and Resend”: the text is loaded into the native input box, allowing you to change words or add screenshots before sending via the native method; the original message and subsequent chats are preserved.

Checkpoints are recorded starting from tool calls enabled after activation; file content missing from earlier messages cannot be recovered. The default retention is the most recent 100 messages (up to 30 days); limits include 8 MiB per file, 64 MiB / 10,000 files per scan, and a 256 MiB snapshot storage cap. Only regular files within local projects are supported, excluding Git ignore items, environment files, dependencies, and build directories. Overwrites are rejected if the target file has been modified externally before restoration.

Next-Task Suggestions

After each Q&A round concludes normally, up to 3 candidate follow-up tasks appear below the last answer; clicking fills them into the input box but does not auto-send. Enabled by default, it can be turned off via “Plugins → Session Toolbox → Next-task suggestions.” When enabled, an additional call is made to the model selected in the current session at the end of each round (using the last 6 visible text messages, with a 12 KB input limit and 600 token output limit). Usage is accounted separately in a ledger located at ~/.dsh/session-toolbox/next-task-usage.json. New queued rounds, sub-agents, stopped, or failed rounds do not trigger automatically; you can manually generate or retry by clicking the starlight icon next to the answer.

Delete Single History Message

After confirmation via the trash can in the message action bar, the message is hidden from the interface and excluded from subsequent model requests via DSH native context replacement. The original disk log is retained, and file modifications are not undone; messages containing tool calls or already merged into summaries cannot be deleted individually.

Installation and Activation

Node version must satisfy ^22.19.0 || >=24.0.0 (see engines in package.json).

In the DSH Sidebar → Plugins → Install page, enter the following name to install and enable:

dsh-session-toolbox

Alternatively, download the local package from GitHub Release v0.1.45 and select the generated dsh-session-toolbox-0.1.45.tgz (version numbers change with subsequent releases) in the same installation entry. Install, update, or toggle via the Plugin Manager; if the host supports HMR, changes usually take effect immediately. If the installation reports restart-required, or the menu does not appear after the first install, follow the prompt to fully exit and reopen DSH.

Note: npm install -g dsh-session-toolbox only installs the CLI tool and cannot replace the installation of the plugin within DSH. Do not directly overwrite DSH’s node_modules to update this plugin.

If you encounter “Unknown operation type: nextTasks.generate” after upgrading, you can disable and then re-enable the plugin in the plugin page and refresh; starting from 0.1.45, the plugin checks the version before operations and attempts to request the host to reload it.

Typical Usage

The README suggests the following onboarding order to verify functionality item by item:

  1. Open Sidebar → Plugins → dsh-session-toolbox to enter the toolbox page (a QQ group for interaction is available below the title, group number 1124103038).
  2. Check the “Draft Vault” toggle; place an unsent sample image in a session, switch to another session and return to confirm if the image is restored.
  3. Click “Manage Projects and Groups” to create a group and assign projects; return to the sidebar to expand the group and confirm the project appears under it; use the project “… → Edit Project” to adjust grouping or paths if necessary.
  4. When moving a session, use the session menu “Switch to another project…”; entries generated by DSH native archiving can be viewed and restored in the toolbox archive pool.

For interaction details and limitations regarding quote replies, checkpoint restoration, and next-task suggestions, see the Usage Guide in the repository; for architecture and offline CLI, see the Architecture Description. The README also provides a 50-second illustrated tour video (docs/media/session-toolbox-tour.mp4, using fictional demo data).

Scenarios and Precautions

Who it’s for: Developers who frequently switch sessions in DSH, manage multiple local project directories, and desire sidebar grouping, session-to-project migration, draft image preservation, unified archive viewing, or the ability to “keep chat while rolling back the workspace” for files modified by the assistant.

Data & Privacy: Groups, settings, archive ledgers, and migration progress are located in ~/.dsh/session-toolbox/; session logs and workspace ledgers continue to use DSH’s original directories ~/.dsh/sessions/ and ~/.dsh/storages/workspace.json. When next-task suggestions are enabled, limited text context is sent to the current session’s model service; this can be turned off in settings.

Security & Permissions: The plugin runs with the permissions of the current DSH process. It is advisable to review the source code and MIT license before installation; for risks regarding deletion, migration, and checkpoints, see the repository’s Disclaimer. When reporting issues, please include the version and sanitized steps, avoiding public disclosure of full sessions, credentials, or screenshots with real paths; you can also contact the maintainer via GitHub Issues or the QQ group.

Conclusion

dsh-session-toolbox transforms several “mental notes” operations in the DSH session sidebar into reproducible local capabilities: draft images, grouping and session migration, archive pools, quotes and checkpoints, and optional task suggestions. Data remains local by default. If you are using a version like DSH 0.2.1-rc.2, you can install via the plugin name dsh-session-toolbox and verify functionality item by item using the four onboarding steps in the toolbox page and README.

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

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

Xiaoye