dsh-cue-plugin: Cross-session Node Reference for DeepSeek Harness
unnnnoooo/dsh-cue-plugin
A DSH plugin for cross-session cueing, injecting context snapshots of nodes from other sessions into the current conversation for the model to read.
Reference user messages from other sessions and inject their context snapshots into the current conversation, so the model never has to search for history itself.
dsh plugin --profile web add github:unnnnoooo/dsh-cue-plugin- Category
- Memory & Context
- Platform
- DSH-Plugin
- Author
- unnnnoooo
- Distribution
- Plugin
dsh-cue-plugin Key Features
dsh-cue-plugin Repository

dsh-cue-plugin Repo Summary
dsh-cue-plugin is a cross-session reference (cue) plugin (DSH plugin) for DeepSeek Harness, maintained by unnnnoooo, written in TypeScript, and last updated in 2026-08. It solves the problem of reusing context across sessions: in conversation A, you can pick user messages (called 'nodes') from conversation B and inject their captured context into A for the model to read, without the model having to search for anything itself. Core capabilities include: a composer toolbar button to trigger the picker, selecting a target session by title, selecting user nodes (click to toggle, drag to box-select, or select-all/clear), confirming to generate chips and capture context snapshots, and a host-side agent/pre-step listener that parses dsh-cue: mentions and injects a session-reference recall message.
What core features does the dsh-cue-plugin DSH plugin support?
- Capture timing: The context snapshot is captured by the browser the moment the user confirms the cue; the host never re-reads a source session, and the model never performs the extraction.
- Dedup: Each selected node ships with a small context window (itself plus the preceding 3 turns); windows of adjacent selections are merged so consecutive nodes' context is never repeated.
- Two halves:
lib/index.jsis the host half (pre-step hook);lib/client.jsis the browser half (composer trigger, picker, chips), registered through thedsh.clientmanifest andwindow.__ModuleLoader__.load. - Native integration: The recall message rides the harness's first-class cross-session form (
source.kind: 'session-reference'+form: 'recall'), rendering a persistent "Session recall" row in the transcript.
How to install dsh-cue-plugin?
Install command (local paths also supported):
dsh plugin --profile web add github:unnnnoooo/dsh-cue-plugin
Local checkout: dsh plugin add ./path/to/dsh-cue-plugin. The lib/ directory is committed, so git installs use prebuilt artifacts without any build step.
How to use dsh-cue-plugin?
- In the composer's tool row, click the cue button.
- Pick a target session by title, then select its user nodes (agent replies are never selectable).
- Click cue 这些结点 to confirm: the selection becomes chips in the composer, and consecutive nodes merge into one chip automatically.
- Send the message; the host parses the mentions and injects the recall message.
What are the known limitations of dsh-cue-plugin?
- No custom cue card beyond the harness-native "Session recall" context row.
- Reading sessions written by other harness versions may fail (log format is not cross-version).
- The
@cuetrigger only registers a codec; the picker is driven by the button, not the @ menu.
How to build dsh-cue-plugin?
pnpm install
pnpm build # tsc --noEmit type check + tsdown → lib/index.js, lib/client.js