weibaohui/dsh-smart-title
dsh 插件 · 会话智能标题:LLM 总结改写会话标题,每轮对话后自动更新
Project Overview项目介绍
This is a DSH-native plugin that automatically generates contextually accurate titles for chat sessions in DeepSeek Harness. It replaces the default behavior that uses the first line of the conversation as the title, leveraging an LLM to summarize the full content of the chat to create a more descriptive title. To install the plugin, run the command dsh plugin --profile web add @weibaohui/dsh-smart-title -w, then restart the dsh web service, and it will work immediately without any initial configuration. The installer automatically disables the built-in session title provider, which is restored automatically when you uninstall this plugin.
After installation and restart, the plugin works automatically in the background as you chat. The sidebar session title will update to the new summary title automatically after the first full turn of conversation. To adjust the plugin's behavior, you can use the visual settings panel in DSH under the “Smart Session Title” menu. All parameters including the main toggle, title length, refresh throttle interval, long conversation freeze threshold, and model selection can be adjusted there, and changes take effect immediately after saving.
The plugin hooks into DSH's official sessionTitle event system, so the DSH client sidebar automatically updates the title without any custom modifications. It uses an independent auxiliary LLM request to generate the title, so it does not affect the main conversation context or KV cache. It automatically skips sub-agent sessions and forked child sessions, and users can toggle whether to include assistant responses in the summary input. The plugin does not have an explicit open source license declared in its public repository.
dsh-smart-title 是一款专为 DeepSeek Harness 开发的原生插件,核心功能是利用大语言模型自动改写会话标题,替代原有的「第一行内容」默认标题方案。它支持全对话总结生成标题、首条消息到达即生成标题,还具备刷新节流、长会话冻结、去重跳过、失败自动重试、手动改后保护等特性,也支持对存量会话回填标题,并可单独指定标题生成使用的模型。
安装完成重启 DSH 后,用户正常聊天即可,侧边栏的会话标题会自动更新为总结后的精准标题。如果需要调整插件行为,可以在 DSH 设置面板的「会话智能标题」栏目中修改总开关、标题长度、节流间隔、冻结阈值、模型选择等所有参数,保存后立即生效。也支持直接修改配置文件自定义,存量会话可开启启动回填功能,重启后自动批量重写未修改的默认标题。
本插件基于 DSH 官方的 sessionTitle 服务日志事件机制开发,和原生标题提供方共用同一写入通道,无需客户端额外适配即可自动刷新。它不会影响主对话的上下文和 KV 缓存,会自动跳过子代理会话和分叉子会话,还可自定义是否包含助手回答内容。项目暂未标注开源协议,所有核心逻辑围绕 DSH 会话体系设计,仅支持 DSH 平台使用。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-smart-title(weibaohui/dsh-smart-title)
仓库:https://github.com/weibaohui/dsh-smart-title
本站详情页:https://www.yhbd.top/plugins/weibaohui-dsh-smart-title/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证未声明 · ⭐ 4 · 最近提交 2026-09-27 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- No license declared - all rights reserved by default; ask the author before commercial use or redistribution未声明开源许可证 —— 默认「保留所有权利」,商用或再分发前先问作者
- Only 4 stars - very few users, little community feedback星标只有 4,几乎没人在用,遇到问题缺少社区反馈
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 --profile web add @weibaohui/dsh-smart-title -w
把 weibaohui/dsh-smart-title 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
@weibaohui/dsh-smart-title
会话智能标题插件:用 LLM 自动改写会话标题,告别「第一行」式标题。

核心功能
- 全对话总结:每轮对话结束后,对「用户消息 + 助手回答」的完整转写做一轮总结,标题反映会话真正在做的事,而不是复述第一句话
- 首条消息即时出题:会话第一条消息到达即出 LLM 标题(接管官方
first-prompt节奏),不用等第一轮结束 - 刷新节流:距上次标题生成不足最小间隔(默认 2 分钟,可配)就不再重复生成,长会话不再每轮烧一次 LLM;顺带消掉首轮「即时出题 + 回合结束刷新」的背靠背重复
- 长会话冻结:会话用户消息超过阈值(默认 100,可配)后停止自动刷新——后期主题漂移概率低;启动回填不受冻结影响
- 同题静默跳过:新生成标题与现标题相同(忽略大小写与空白差异)时不写入,侧栏不闪烁、无失败告警
- 失败自动重试:官方内置标题提供方请求失败后回退标题会永远残留;本插件每轮结束自动重试刷新
- 手动改名保护:你在界面上手动改过的标题(用户钉住)绝不被自动覆盖
- 范围可控:自动跳过子代理会话与 fork 子会话;可开关「是否包含助手回答」
- 启动回填(可选):对标题仍是回退文案的活跃会话逐个补刷(默认关闭,可设开启与会话上限)
- 模型可指定:默认跟随会话当前模型,也可为标题单独指定一条便宜/快速的模型路由
安装
dsh plugin --profile web add @weibaohui/dsh-smart-title -w
装完重启 dsh web 即生效,无需任何配置。安装时会自动禁用内置的 first-prompt 标题提供方(session-title 服务只允许一个提供方,两者不能共存;卸载本插件后内置提供方自动恢复)。
使用
- 装好重启后,正常聊天即可——侧边栏会话标题会在第一轮对话后自动变成总结式标题
- 想调行为:设置 → 会话智能标题——总开关、标题长度、刷新节流间隔、长会话冻结阈值、标题模型路由(provider/model 下拉选择)、范围排除、启动回填等全部可视化,保存即生效
- 存量会话修复:打开「启动回填」后重启一次实例,插件会对标题仍是回退文案的活跃会话逐个重写(用户手动改过的不动)
- 也可直接编辑
~/.dsh/settings.yaml的dsh-smart-title:节,保存后约 2 秒热生效
工作原理
- 标题走 dsh 官方
sessionTitle服务的日志事件机制(session/title),与本体内建提供方同一写入通道,客户端侧边栏无感知自动刷新 - 本插件注册唯一提供方并接管其
first-prompt自动节奏,另订阅session/event的turn/end(completed)触发显式刷新 - 每次刷新读取完整会话日志构建转写(用户消息按 seq 归属,助手回答按预算裁剪),经
ctx.llm以purpose: session-title发起独立辅助请求,不影响主对话上下文与 KV Cache - turn/end 刷新前过两道闸:
refreshMinIntervalMs(距上次生成的最小间隔,覆盖官方 first-prompt 首题在内的所有生成路径)与refreshMaxTurns(长会话冻结,回填路径豁免);生成结果同题时静默返回现值,不产生写入与告警
联系我 :飞书群

版本兼容性
本插件与 DeepSeek Harness(@deepseek-ai/dsh)的版本对应关系:
| 插件版本 | 适配 dsh 版本 | 备注 |
|---|---|---|
| 0.1.8 | 0.1.7-rc.2 | 当前版本;修复降级路径 Config 导出 null——宿主 settings schema() 不排除 null,会炸 settings.describe() 拖垮整份设置文档(同 dsh-continue#4) |
| 0.1.5 | 0.1.7-rc.2 | 修复宿主将 volatile 字段物化为 {} 导致的设置毒化(saneConfigValues 清洗 + 移除 Config 兼容字符串字段) |
| 0.1.4 | 0.1.7-rc.2 | 适配 0.1.7 settings 模型(导出 volatile Config,ctx.settings.update 持久化),面板改动重启不再丢失 |
| 0.1.3 | 0.1.7-rc.2 | 已在 @deepseek-ai/dsh@0.1.7-rc.2 下验证运行 |
发版约定:每次发布新版本时,请在上表追加一行,记录该插件版本实际验证所用的
@deepseek-ai/dsh版本。package.json的engines.dsh声明最低支持版本;本表记录实际验证版本,二者配合使用。
liangmianya/dsh-synapse
alaliqing/claude-paper
acryldev/acryl
omdsh-dev/dsh-annotation
Anionex/dsh-turn-rewind
Tyan66666/billion-context-dsh
qkycir-123/dsh-run2skill