unnnnoooo/dsh-cue-plugin 预览 preview

unnnnoooo/dsh-cue-plugin

Plugin插件 Native原生 ⭐ 5 Sessions & Context会话与上下文

DeepSeek Harness 的跨会话引用(cue)插件

Project Overview项目介绍

This is a purpose-built plugin exclusively for DeepSeek Harness that adds cross-session user node referencing functionality to the platform. It lets DSH users select user messages (called nodes here) from an existing old conversation and inject their pre-captured context snapshots directly into the current active conversation, so the model does not have to waste time searching for the referenced content on its own. To install the plugin, users just need to run the DSH CLI command dsh plugin add github:unnnnoooo/dsh-cue-plugin, and it also fully supports installing from a local cloned directory path.

The typical workflow after installation is straightforward and intuitive for most regular DSH users. First, you click the new cue button that the plugin adds to the composer tool bar, then select the target conversation by its title and pick the user nodes you want to reference. You can click to toggle individual selection, drag to box-select multiple nodes at once, or use the built-in batch select/clear buttons for bulk operations. After confirming your selection, the nodes turn into interactive chips in the input box, and the context is captured immediately at confirmation time. This workflow is designed for users who regularly need to reuse historical context from old conversations in new DSH sessions.

The plugin is split into two separate bundled components: a host side that handles the pre-step hook parsing logic, and a client side that handles all UI interactions in the browser. The pre-built output bundle is already committed to the git repository, so you do not need to run any local build steps after installing the plugin directly via git. There are a few documented known limitations: there are no custom reference cards, it can fail to read sessions generated by different DSH versions, and the node picker is only triggered via the toolbar button, not the @ menu. The project does not list an explicit open source license.

这是一款为DeepSeek Harness开发的原生插件,核心功能是实现跨会话的用户结点(即用户消息)引用。它支持用户从已有会话中挑选目标结点,将这些结点的上下文快照注入到当前会话供模型读取,不需要模型自行搜索查找相关内容。用户可通过DSH命令行直接安装,执行dsh plugin add github:unnnnoooo/dsh-cue-plugin即可,也支持从本地克隆路径安装。

安装完成后,用户可以在输入框工具条点击cue按钮,按标题选择目标会话后勾选需要引用的用户结点,仅用户消息可选,agent回复默认折叠且无法选中。选中后确认即可将所选结点转为输入框中的标签,上下文快照会在确认时捕获并存入标签,相邻结点会自动合并。发送消息时,插件会解析引用并将上下文以DSH原生的跨会话召回格式注入,适合需要在会话间复用历史上下文的DSH用户。

该插件分为宿主端和浏览器端两部分,宿主端负责pre-step钩子逻辑,浏览器端负责工具条按钮、选择器等UI交互,项目已经提交了预构建产物,安装方不需要额外执行构建步骤。目前存在几个已知限制:没有自定义引用卡片,仅能依托DSH原生的会话召回行展示;读取不同版本DSH生成的会话可能失败,选择器会给出友好提示;选择器仅由按钮触发,不支持@菜单唤起。项目未标注开源许可证。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 2 warnings2 项注意
  • No license declared - all rights reserved by default; ask the author before commercial use or redistribution未声明开源许可证 —— 默认「保留所有权利」,商用或再分发前先问作者
  • Only 5 stars - very few users, little community feedback星标只有 5,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin add github:unnnnoooo/dsh-cue-plugin

把 unnnnoooo/dsh-cue-plugin 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-cue-plugin

跨会话结点引用(cue)插件 / Cross-session node reference plugin for DeepSeek Harness.


中文

在对话 A 中,从对话 B 里挑选「结点」(用户消息),把它们的上下文快照注入到 A 给模型阅读——模型不需要自己去翻找任何内容。

安装

dsh plugin add github:unnnnoooo/dsh-cue-plugin

(本地路径同样支持:dsh plugin add ./path/to/dsh-cue-plugin。)

用法

  1. 在输入框工具条点击 cue 按钮。

  2. 按标题选择目标会话,再勾选它的用户结点——单击切换、拖拽框选,或用 全选 / 清空 批量操作。agent 回复折叠展示且不可选,只有用户消息会成为结点。

  3. 点 cue 这些结点 确认:所选结点立即变成输入框里的 chip,上下文快照在 确认这一刻 由固定程序捕获并写进 chip 载荷;相邻的结点自动合并成一个 chip。

  4. 发送消息。宿主端 agent/pre-step 监听器解析 dsh-cue: 引用,把它改写为 可读标记 [cue 引用:@标题 #序号…](让模型知道这是一次引用),并在前面注入 包装好的 session-reference 召回消息:

    ## Cued nodes from <title>
    
    用户 cue 引用了以下结点,请把它们作为跨会话参考上下文阅读:
    ...
    

    这条消息使用 harness 原生的跨会话形式(source.kind: 'session-reference' + form: 'recall'),转录中会呈现为持久的「Session recall」行,带来源标题和 保留/省略条数——模型和用户都能一眼把它和本会话内容区分开。

设计要点

  • 捕获在 cue 时,不在发送时。 用户确认的瞬间由浏览器端读取源会话;宿主端 从不重读源会话,模型也从不自己做提取。
  • 去重。 每个选中结点附带一个小上下文窗口(自身 + 前 3 条用户/agent 记录); 相邻选区的窗口自动合并,连续结点的上下文绝不重复。
  • 一个包,两半。 lib/index.js 是宿主半(pre-step 钩子);lib/client.js 是浏览器半(工具条按钮、选择器、chips),通过 dsh.client 清单和 window.__ModuleLoader__.load 注册。

已知限制

  • 除 harness 原生的「Session recall」上下文行外,没有自定义卡片。独立插件包 无法追加自定义会话事件(日志白名单属于 harness 核心,且公开的 append API 无法给仅日志事件标记 ignorable),所以召回行就是持久化呈现。
  • 读取其它 harness 版本写入的会话可能失败(日志格式不跨版本);选择器会给出 友好的错误提示。
  • @cue 触发器只注册了 codec;选择器本身由按钮驱动,不走 @ 菜单。

构建

pnpm install
pnpm build   # tsc --noEmit 类型检查 + tsdown → lib/index.js, lib/client.js

lib/ 已提交,git 安装直接使用预构建产物(安装方无需任何构建步骤)。


English

In conversation A, pick user nodes from conversation B and inject their captured context into A for the model — without the model having to search for anything itself.

Install

dsh plugin add github:unnnnoooo/dsh-cue-plugin

(Local checkout works too: dsh plugin add ./path/to/dsh-cue-plugin.)

Usage

  1. In the composer's tool row, click the cue button.
  2. 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.
  3. 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.
  4. Send the message. On the host, an agent/pre-step listener parses the dsh-cue: mentions, rewrites them to a readable marker ([cue 引用:@标题 #seq…]) so the model knows a reference happened, and prepends a wrapped session-reference recall message:

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-ai-prompt-optimizer 下一个 Next dsh-session-import →