Missher DSH Session Bridge: Session ID, Cross-session Delivery, and Temporary Workspace

Introduction

When running multiple sessions simultaneously in DeepSeek Harness (DSH), common issues include: difficulty in finding or copying full session IDs; the need to manually switch windows to read what another session recently said or to inject a user message into a specific session. When temporarily testing code without wanting to pollute the formal project directory, an entry point aligned with the Host’s workspace model is also required.

Session Bridge (@missher/dsh-session-bridge) is an independent Cordis Bundle maintained by Missher12, designed for the client side. It provides ID and reference copying in the sidebar session menu, registers cross-session model tools and human commands, and offers capabilities for “Not in Workspace” and temporary directories like /scratch. It is not an official DeepSeek product; the community directory can be found at the SkillHub plugin page, and source code and packages are available at the GitHub repository.

What is this

In one sentence: It displays and copies full session IDs for DSH, and provides cross-session query, read, delivery, and temporary workspace capabilities.

  • Package Name: @missher/dsh-session-bridge
  • Current Documentation Version: 0.1.4 (README notes that the top ID has been moved to the sidebar menu)
  • Form: Independent, uninstallable Cordis Bundle; no separate compatibility plugin required.
  • Category: Client-side (includes Web injection and sidebar UI)

Starting from 0.1.4, the session ID is collected in the three-dot menu of the left-side session row; the top title bar no longer displays an extra ID control. The menu allows copying the full ID, working directory, or /bridge reference; archived rows also feature a “Delete session…” option with secondary confirmation (availability depends on whether the host provides deleteArchivedSession).

Core Features

Session ID and Sidebar Menu

Find the target session on the left side and click the three-dot menu on that row:

  1. Copy Session ID: The result retains the full session- prefix.
  2. You can also copy the Working Directory or a /bridge <session-id> reference.

Operations target the clicked session (including archived rows) and do not switch the current session; prompts will appear if the directory is not loaded or copying fails. The top bar retains only the Host’s original operations, such as the session title, and does not repeat the ID control.

“Not in Workspace” and Scratch

At the end of the new session selector, there is “Not in Workspace (Temp Directory)…”. Selecting this reuses the dsh-scratch workspace under the configured root directory, with a default title of “Not in Workspace”; the default canonical path on macOS is /private/tmp/dsh-scratch. This is a formally registered workspace, not a truly workspace-less session—the Host’s blank session flow still requires a workspace.

Simply opening the selector does not create a directory or session; selecting it repeatedly will reuse the canonical path and real workspace ID. If the fixed path is a symbolic link, not owned by the current user, or writable by group/others, creation will fail.

Unlike the UI, the model tool session_scratch and the command /scratch can establish an independent one-off directory on each invocation; temporary directories may be cleaned up by the system and should not be used as the sole storage for important files.

Model Tools

Tool Function
session_list Lists session IDs, titles, directories, and running status; excludes sub-agent sessions by default.
session_read Reads recent user/assistant text from the target (excluding chain-of-thought and tool results); read-only, does not wake the target.
session_send Delivers a real user-role message to the target; steer delivers at step boundaries, turn queues as an independent turn.
session_scratch session mode creates a session in an independent temp directory; directory mode does not create a session, and by default still registers the workspace (can be disabled via registerScratchWorkspace: false).

Targets accept exact IDs, case-insensitive exact titles, or unique ID prefixes; ambiguous targets are rejected without guessing.

Human Commands

Command Function
/sessions [filter] Lists session IDs and titles.
/bridge <ID or Title> <message> Delivers a message to a specified session; titles with spaces are identified by the longest uniquely resolvable prefix.
/scratch [tag] Creates a new temporary directory session.
/scratch-clean Previews cleanable one-off temporary projects.
/scratch-clean yes Unregisters eligible projects and deletes their directories.

/scratch-clean filters registered workspaces based on the normalized scratchRoot, directory names starting with dsh-, and the condition of having no non-whitespace sessions, always excluding the fixed dsh-scratch. It does not check for plugin creation markers; other eligible dsh-* workspaces may also be selected. Files saved within the directory will also be deleted—run the preview first, then execute yes.

Installation and Activation

The installation package is obtained from the Releases page. Based on the page, select 0.1.4, and download missher-dsh-session-bridge-0.1.4.tgz and SHA256SUMS. Do not use the GitHub auto-generated source archive as a plugin installer; the runtime package already contains lib and requires no local build.

After downloading, verify integrity in the same directory:

# macOS
shasum -a 256 -c SHA256SUMS

# Linux
sha256sum -c SHA256SUMS

Desktop: Open “Plugins → Add Plugin”, select the local .tgz or enter the fixed Release URL (tags are subject to the Release page):

https://github.com/Missher12/Missher-DSH-Session-Bridge/releases/download/<tag>/missher-dsh-session-bridge-0.1.4.tgz

Confirm that the version and the component session-bridge are enabled; reload as prompted by the Host, or completely quit and reopen if necessary. The Desktop desktop profile is managed by the in-app entry.

Web users with existing DSH CLI: Install in your own Web profile (do not modify the Desktop profile):

dsh plugin --profile web add /absolute/path/to/missher-dsh-session-bridge-0.1.4.tgz

After release, the local path can be replaced with the Release URL above. For first-time testing, it is recommended to use an independent DSH_HOME / DSH_AGENTS_HOME. Do not enable the old package dsh-session-bridge, the dev alias session-bridge-dev, and the current scoped package simultaneously—this will cause duplicate registration of tools like session_list. Keep the old packages and configurations before upgrading, and reload only after current tasks are finished.

Typical Usage

Copy ID and Deliver Cross-Session

  1. In the sidebar, select “Copy Session ID” from the three-dot menu of the target session.
  2. Enter in the current session (example format follows README):
/bridge session-xxxxxxxx Please summarize your previous conclusions

You can also use a unique title prefix instead of the full ID; if the title contains spaces, /bridge will identify it by the longest uniquely resolvable prefix.

List and Read-Only View

/sessions

The model side can call session_list and session_read for automated orchestration; session_read does not wake cold sessions (different behavior from session_send’s wakeColdSessions configuration; sending wakes by default, see configuration table).

Temporary Directory

UI: Select “Not in Workspace (Temp Directory)…” at the end of the new session selector to reuse dsh-scratch.

Command or Tool: /scratch my-tag or session_scratch, creating a one-off directory with a prefix (default prefix dsh-session-) under scratchRoot.

Configuration

All fields are optional. The Bundle has already declared a formal instance; do not insert a second plugin line with the same name in the profile. If an override is needed, update it in the target profile patch following the existing id: session-bridge:

- id: session-bridge
  config:
    scratchRoot: /tmp
    scratchPrefix: dsh-session-
Field Default Meaning
scratchRoot POSIX /tmp; Windows system temp dir Parent directory for temporary directories.
scratchPrefix dsh-session- One-off directory prefix.
registerScratchWorkspace true Whether to register tool-created temp directories as workspaces.
maxListedSessions 40 Maximum number of sessions listed per request.
maxTranscriptTurns 20 Maximum number of recent transcript turns.
maxMessageChars 8000 Maximum character limit for a single cross-session message.
wakeColdSessions true Whether to allow waking cold sessions for delivery.
announceSessionId true Whether to declare its own ID and cross-session tools in the system prompt.

Applicability and Notes

Who it is for

  • DSH users who need to quickly copy full session IDs, working directories, or /bridge references from the sidebar.
  • Users engaging in multi-session collaboration: one session orchestrating, delivering tasks via session_send or /bridge to another.
  • Users needing a scratch / “Not in Workspace” entry consistent with the Host’s workspace model, without wanting to manually modify directories.

Permissions and Privacy

The plugin runs with the current DSH process privileges, with no independent telemetry or external uploads; the UI uses the Host’s authenticated HTTP. It can read session directories and user/assistant text via the Host, and send real user messages to other sessions; the target model still follows the target session’s provider, permissions, and costs. Cross-session envelopes will mark the source, but there is no additional manual approval queue—confirm the target session before delivery. It is recommended to review the LICENSE and source code before installation.

Host Capability Boundaries

  • Archived “Delete session…” depends on sessionController.deleteArchivedSession; the entry is hidden if missing, and the plugin does not read Host private logs.
  • Placing the “Not in Workspace” group at the end of the sidebar depends on uiWorkspace.registerTrailingWorkspace; normal sorting is retained if missing.
  • The README states that compatibility determination is based on capabilities rather than hard-coding host version numbers; specific verification layers can be found in the COMPATIBILITY.json within the repository and the official alpha.5 incremental record.

Deactivation and Uninstallation

Simply turn off the Bundle in plugin management and reload to deactivate; Web CLI can also use:

dsh plugin --profile web remove @missher/dsh-session-bridge

Deactivation/uninstallation will not delete existing chat records, workspaces, or temporary directory files, nor will it revoke tasks already started in target sessions.

Conclusion

Session Bridge consolidates session ID management, cross-session read-only/delivery, and scratch workspaces into a single uninstallable client-side Bundle, suitable for daily operations and lightweight orchestration during parallel multi-session work. Desktop installation packages and documentation can be found at Missher DeepseekHarness Desktop related links; Plugin directory page: SkillHub · Missher-DSH-Session-Bridge; Source code and Releases: GitHub · Missher-DSH-Session-Bridge.

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

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

Xiaoye