dsh-cue-plugin
DSH跨会话节点引用(cue)插件:允许选择其他会话的用户节点,并将其捕获的上下文作为包装引用注入当前输入框。
AI 分析
核心用途是跨会话引用历史上下文。适合需要将另一个对话中的特定用户提问及当时的数据快照,一键引用并发送给当前会话的用户。
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:unnnnoooo/dsh-cue-plugin说明文档
阅读完整 README ↗Usage
-
In the composer's tool row, click the cue button.
-
Pick a target session by title, then select its user nodes — click to toggle, drag to box-select, or 全选 / 清空 for batch. Agent replies are shown collapsed and are never selectable; only user messages become nodes.
-
Confirm (cue 这些结点): the selection becomes chips in the composer, captured at cue time — the context snapshot is built by fixed client code the moment you confirm and shipped inside each chip. Consecutive nodes merge into one chip automatically.
-
Send the message. On the host, an
agent/pre-steplistener parses thedsh-cue:mentions, rewrites them to a readable marker ([cue 引用:@标题 #seq…]) so the model knows a reference happened, and prepends a wrappedsession-referencerecall message:## Cued nodes from 用户 cue 引用了以下结点,请把它们作为跨会话参考上下文阅读: ...The recall message rides the harness's first-class cross-session form (
source.kind: 'session-reference'+form: 'recall'), so the transcript renders a persistent "Session recall" node with the source label and retained/omitted counts — the model and the user can both tell referenced context apart from the native conversation.