Skip to content

PwnKY/dsh-session-link

30Last commit Aug 14, 2026

dsh-session-link DSH plugin

dsh-session-link adds a copy button to DSH conversation headers that generates `dsh://session/...` links. When you paste such a link into another conversation, the referenced session's content is snapshot and injected as a read-only background context before your prompt. It also registers the `dsh` protocol handler on Windows for clickable links.

How to install the dsh-session-link DSH plugin

dsh plugin --profile web add dsh-session-link

Copying does not run this command. Review the repository and version before installing the dsh-session-link DSH plugin.

dsh-session-link DSH plugin data source

dsh-session-link DSH plugin snapshot date: Aug 16, 2026

discovered

What the dsh-session-link DSH plugin can do

  • Copy session link button in conversation header, outputting `dsh://session/<sessionID>` links.
  • Cross-conversation context injection: paste a link into any conversation, the source session's content is snapshot (up to 64 KiB per source, read-only) and prepended to your prompt.
  • Clickable deep links on Windows: register the `dsh` protocol handler to open sessions directly in the Web GUI.
  • Supports multiple link formats: `dsh://`, browser URL, canonical URI, and Markdown mentions.
  • Graceful fallback: invalid, inaccessible, or self-referencing links leave the original text unchanged and log errors server-side.

Where the dsh-session-link DSH plugin fits

  • Refer back to an earlier conversation's context while starting a new chat.
  • Share a specific session with a colleague (both on the same machine) by sending the deep link.
  • Quickly open a specific session from outside the Web GUI using a clickable `dsh://` link.
  • Avoid re-typing or summarizing long conversations; let the model see the full snapshot.

Who the dsh-session-link DSH plugin is for

  • DSH users who need to reference past conversations across different chats.
  • Power users who want to reduce manual context switching and improve workflow efficiency.

dsh-session-link DSH plugin limitations

  • Session links only work on the local machine where both sessions reside (session IDs are opaque and local).
  • Browser deep links only open sessions within the current workspace; sessions outside the workspace list are not auto-restored.
  • Only text is projected; non-text blocks (e.g., images) are not transmitted across sessions (upstream service limitation).
  • Snapshot size is limited to 64 KiB per source; older non-checkpoint messages are dropped first, long messages are truncated with omission hints.

dsh-session-link DSH plugin: from the repository README

Quoted from the PwnKY/dsh-session-link README, the upstream source of the dsh-session-link DSH plugin. Copyright remains with the original authors.

**DeepSeek Harness 的 Codex 式会话深度链接插件** 复制任意会话的链接,粘贴到另一个对话里 —— 被引用会话的上下文会被快照,并作为**受控的只读背景上下文**注入到你的提示词之前;同一链接也能在浏览器中直接打开对应会话。 ## 一键安装 ```bash # 一条命令装完:安装包 + 自动加入 profile 的 bundle 层 + 自动应用配置行 dsh plugin --profile web add dsh-session-link # 重启 Web GUI 并刷新页面 dsh web ``` 无需手动修改任何 yml —— 插件自带 `dsh.bundle` patch(`cordis.patch.yml`),`dsh plugin add` 检测到后会自动把它加进 `dsh.profile.bundles`,启动时自动组合 `session-reference` 与 `session-link` 两行配置。 > 通用 npm 安装(只装包、不进 profile):`npm install dsh-session-link` > 手动安装方式(不依赖 bundle 机制):见[快速开始](#快速开始)。 ``` ┌─ 会话 A ─────────────────┐ ┌─ 会话 B ─────────────────────────┐ │ 🔗 复制会话链接 │ │ 用户: 请参考这个会话: │ │ → dsh://session/session-│ ─────▶ │ dsh://session/session-… │ │ …abc │ 粘贴 │ │ └───────────────────────────┘ │ 模型: (收到 A 的快照 │ │ + 提示词,链接变 @label) │ └──────────────────────────────────┘ ``` ## 特性 - 🔗 **一键复制** —— 会话头部「复制会话链接」按钮,输出 `dsh://session/<会话ID>`(codex:// / claude:// 同款格式) - 📖 **跨对话读上下文** —— 把链接粘进任意对话,源会话内容被快照(有上限、只读)并注入到你的提示词之前 - 🖱️ **可点击深链(Windows)**

Read the full READMERepository license: MIT

dsh-session-link DSH plugin questions

How do I install dsh-session-link?

Run `dsh plugin --profile web add dsh-session-link` in your terminal. This command installs the npm package, adds it to your profile's bundle layer, and applies the configuration automatically. Then restart the Web GUI with `dsh web` and refresh the page.

Can I use session links across different machines?

No, session links are local to the machine where both sessions are stored. The session IDs are opaque and generated per local DSH instance. Sharing a link with another machine will not work because the referenced session does not exist there.

What happens if I paste a link to a session that no longer exists?

The link will be preserved as plain text in your message, and the message will be sent normally. The failure (inaccessible session) is logged in the server-side logs. The conversation is not interrupted.

How do I make dsh:// links clickable on Windows?

Run the included PowerShell script: `powershell -ExecutionPolicy Bypass -File register-protocol.ps1`. This registers the `dsh` protocol for the current user (no admin required). After that, clicking any `dsh://session/...` link in your browser or other apps will open the session in DSH Web GUI.

Can I adjust the snapshot size limit?

Yes, you can override the `session-reference` configuration in your profile's patch layer. For example, set `maxReferenceBytes: 131072` to double the limit. The default is 64 KiB per source.