Introduction¶
In DeepSeek Harness (DSH), there is no unified management entry point between sessions and projects. When agents collaborate across multiple projects, it becomes difficult to view, search, and migrate historical conversations, making task handoffs and knowledge reuse challenging. The DSH Session Workbench is a plugin that provides capabilities including session listing, project status overview, session organization, full-text search, session branching, project management, cross-session collaboration, and session migration, helping to establish a clearer session and project structure within DSH.
Plugin Overview¶
The plugin is named DSH Session Workbench, version 1.7.1, maintained by MindCastlePlayground. It adds a unified session workbench entry point to DSH, supporting installation in both desktop and web environments. The plugin core is built around two dimensions—sessions and projects—providing a complete pipeline from listing and searching to collaboration and migration.
Key Features¶
Session List and Project Status¶
Switch to “Session List” in the left sidebar to first view running sessions, then browse other sessions by recent activity. Unread status follows DSH’s native rules. Even when the workspace in the left sidebar is collapsed, it still displays the count of running and unread sessions and retains pending indicators. When multiple sub-agents run simultaneously, their parent session is only counted once.
Session Organization¶
In “Settings → Session Management” and the sidebar menu, you can archive, restore, and migrate sessions, and manage stars, tags, and the trash. Operations such as archiving, deletion, and batch moving go through native approval.
Full-Text Search¶
Open the full-text search page from the left sidebar to search titles, user messages, assistant replies, and file names. Results prioritize body text hits by default, browse by page, and clicking a snippet jumps to the original content. The global search default shortcut is Ctrl/Cmd+Alt+Q, and in-session search defaults to Ctrl/Cmd+F.
The search index is based on SQLite. On first open, the index is created in the current DSH configuration directory; subsequent loads only read new and changed sessions. Regular chat does not trigger updates. Sessions in the trash or permanently deleted retain a copy of their last indexed snapshot. Check “Include Deleted Sessions” to query these copies.
The search page displays the main index database size, allows setting a capacity limit, or manually triggering an update. Updates are executed in the DSH background; after switching back to chat, you can check the running indicator on the global search button. The capacity limit is unlimited by default, with a minimum of 1 MiB; it cannot be set below the existing main index size. When the limit is reached, already-committed indexes and copies of deleted sessions remain queryable. Raising or removing the limit and triggering another update will resume processing.
The default search scope covers the last 14 days and the most recent 30 turns per session. Clearing the date filter or setting turns to 0 queries the full history. Results display body text snippets, hit counts, and pagination controls.
Session Branching¶
At the original position in the conversation, you can view all branches created from that point, and open the parent or child session from the left session tree.
Project Management¶
Agents can create and rename projects, open sessions in a specified project or the default chat workspace, and deliver initial tasks. When creating a project, use path to specify an absolute path on the host; if omitted, an independent directory is allocated from the DSH data directory. Identical normalized paths and names return the existing project.
Session Collaboration¶
Agents can send messages to other sessions, read history, query running status, or wait for a specified message to be processed. These tools operate within the same DSH host. When project_id is omitted, the current session’s working directory is used; after explicitly selecting a project, collaboration can occur with that project’s independent sessions.
Session Migration¶
Agents can move a session to another project while preserving the session ID and message history. During migration, stop_running: true can be used to stop the target session and move it immediately. During migration, the host retains write authority by session ID, and after the host exits, log ownership is verified against the recovery record. Hosts with the patch applied comply with the same write lock within the shared data directory.
Installation and Activation¶
Download dsh-session-workbench-1.7.1.tgz, navigate to the download directory, and execute the corresponding command based on your usage:
# DSH Desktop
dsh plugin --profile desktop add ./dsh-session-workbench-1.7.1.tgz
# DSH Web
dsh plugin --profile web add ./dsh-session-workbench-1.7.1.tgz
After installation, refresh the page and confirm the workbench entry point has appeared. On first installation, hosts without configuration hot-reload enabled require a restart to load the plugin. If dsh-sessions-manager or dsh-chat-search is already enabled on the same profile, disable the old plugin first to avoid duplicate routes, menus, or shortcuts. The workbench reuses the existing management data and search configuration directories; there is no need to copy session files.
Web Environment Patch¶
The session migration feature in DSH Web requires installing the corresponding host patch. The patch installation script backs up the official modules to their respective index.js.upstream files. On first activation, start Web from the updated prefix. Daily switching only rebinds the migrated sessions; the entire web service and other sessions continue running.
Building the Patch Example¶
Build the patch from the workbench source directory. The following uses 0.2.3-alpha.2 as an example:
npm ci
dsh_version=0.2.3-alpha.2
dsh_patch=dsh-session-relocation.patch
git clone --branch "dsh-v$dsh_version" --depth 1 https://github.com/deepseek-ai/deepseek-harness.git ../dsh-web-source
npm install --prefix ../dsh-web "@deepseek-ai/dsh@$dsh_version"
git -C ../dsh-web-source apply "$PWD/patches/$dsh_patch"
node patches/apply-web-relocation.mjs ../dsh-web-source ../dsh-web
export DSH_HOME="$PWD/../dsh-web-profile"
node ../dsh-web/node_modules/@deepseek-ai/dsh/lib/bin.js plugin --profile web add /path/to/dsh-session-workbench-1.7.1.tgz
node ../dsh-web/node_modules/@deepseek-ai/dsh/lib/bin.js --profile web
Agent Tools¶
The plugin provides the following Agent tools:
Projects and Sessions¶
| Tool | Parameters and Behavior |
|---|---|
workbench_project_list |
Lists project IDs, names, and directories, and returns the current project and default chat workspace. |
workbench_project_create |
Pass in name. Optionally use path to specify an absolute path on the host; if omitted, an independent directory is allocated from the DSH data directory. Identical normalized paths and names return the existing project. Operations exceeding the current directory write authorization go through DSH approval. |
workbench_project_rename |
Pass in project_id and a new name. Preserves directories and sessions. |
workbench_session_create |
Pass in project_id. Optionally use title to name it, or use message to deliver an initial task. |
workbench_session_move |
Pass in session_id and target_project_id. If the source session is in another project, include source_project_id. If the host supports closing individual sessions, use stop_running: true to stop the target session and move it immediately. |
workbench_session_move_status |
Pass in session_id and target project_id to query whether it has reached the target project or if there are still legacy pending-move records. |
When creating or migrating a session, use default to select the default chat workspace. If the old configuration lacks a DSH native default workspace, a dedicated “Default Chat” workspace is created on first use.
Search and Session Management¶
| Tool | Purpose |
|---|---|
workbench_session_search |
Query by scope, date, and workspace_path; returns snippets, hit annotations and tags, pagination position, and index version. Optionally use include_deleted to include deleted snapshots. |
workbench_manager_note_get / workbench_manager_note_set |
Read or edit session notes. Pass an empty string to clear notes. |
workbench_search_index_status, workbench_search_index_update, workbench_search_index_capacity |
Check size and progress, start incremental sync (can run in background), or set the main index capacity limit. |
workbench_manager_* |
Query sessions and branches, batch move and archive, star, manage tags and saved filters, manage the trash, and export Markdown. Operations such as archiving, deletion, and batch moving go through native approval. |
Cross-Session Collaboration¶
| Tool | Behavior |
|---|---|
workbench_session_list |
Find other non-archived independent sessions; returns session IDs and running status. |
workbench_session_send |
Deliver text and return message_id. If the target session is not loaded, it will be resumed. |
workbench_session_history |
Paginated reading of written user messages, inter-session messages, and assistant replies. Use next_before_seq to read earlier content. |
workbench_session_status |
Query running, idle, unloaded, or archived status, as well as the most recently completed turn. |
workbench_session_wait |
Wait for the session to become idle, or include message_id to wait for the turn processing that message. |
A queued return from sending indicates the message has been enqueued. When waiting returns settled, check turn_outcome to determine whether the turn completed, errored, or was interrupted, then read the reply from history. A single wait defaults to 30 seconds with a maximum of 120 seconds; after timeout, the target session continues running. When two sessions form a waiting loop, the later-joining wait will report an error.
Building from Source¶
Building from source requires Node.js 22 or higher. The host and browser load lib/index.js and lib/client.js respectively:
npm ci
npm run build
npm test
npm pack
Use Cases and Notes¶
The plugin runs with the current DSH process permissions. It is recommended to review the source code and license before installation. The MIT license allows free use and modification, but acknowledgments and license statements from upstream contributors must be respected.
Summary¶
The DSH Session Workbench fills the gap in session management and search within DSH, providing agents with a complete capability set from listing and searching to collaboration and migration, helping to establish clear session structures across multiple projects and reuse historical conversations. Learn more at: GitHub | SkillHub Directory