shenjackyuanjie/dsh-cot-summary
该工作区实现了一个不阻塞主模型的 Summary-CoT 插件:主模型输出 reasoning 时,后台按段调用指定的总结模型,并强制使用 reasoningEffort: 'off'。最终摘要写入 session,重新打开会话仍能恢复。
catalog 简介 / catalog descriptioncatalog description:WIP:啊哈哈哈哈,最后一天了,我要总结cot!
项目介绍Project Overview
DSH Summary-CoT 插件在不阻塞主模型的前提下,由后台按段调用指定的总结模型(强制 reasoningEffort: 'off')对推理过程生成摘要,并将结果持久化到 session,重开会话后可恢复。默认方案通过 cordis.patch.yml 仅保存 cot-summary/settled 段以避免污染 session-persistence-rdb;如需实时 delta 覆盖,可对 DSH 应用 dsh-summary-cot-live.patch 并启用 overlay。需注意两个浏览器展示包不可同时启用,且应将 provider、model 改为自身的总结路由。
DSH Summary-CoT runs a non-blocking summarization model (forced reasoningEffort: 'off') in the background per reasoning segment, then writes the result to the session so it restores on reopen. The default cordis.patch.yml path only persists cot-summary/settled to keep session-persistence-rdb clean; for live delta overlay, apply dsh-summary-cot-live.patch to DSH and enable the overlay browser package. Caveat: the two browser display packages cannot be enabled together, and you must replace provider and model with your own summarizer route.
请帮我了解并安装插件:【dsh-cot-summary】【https://github.com/shenjackyuanjie/dsh-cot-summary】
把上面这条消息直接发给当前会话里的 DSH,让它帮你了解并安装。安装命令不一定准确,发给 DSH 更稳。Send this message to DSH in your current session. CLI install commands may not be accurate across systems — DSH will figure it out for you.
或使用命令行安装(适合开发者)Or use CLI install (for developers)
命令行安装CLI Install
dsh plugin --profile web add github:shenjackyuanjie/dsh-cot-summary
把 shenjackyuanjie/dsh-cot-summary 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
DSH Summary-CoT
该工作区实现了一个不阻塞主模型的 Summary-CoT 插件:主模型输出 reasoning 时,后台按段调用指定的总结模型,并强制使用 reasoningEffort: 'off'。最终摘要写入 session,重新打开会话仍能恢复。
默认兼容方案(无需修改 DSH)
使用 packages/cot-summary/cordis.patch.yml。它保持 streamDeltas: false,因此不会把流式 delta 写入 session;总结模型完成一个段落后,才写入可持久化的 cot-summary/settled。浏览器通过 @shenjack/dsh-client-cot-summary 把摘要显示为独立 Chat 行。
这条路径是无 DSH 修改时的 workaround:没有逐 token 展示摘要,但最终内容会保存,且不会向 session-persistence-rdb 写入临时 delta。
可选实时增强
实时 delta 与 Think 行内覆盖显示需要 DSH 的两个很小的扩展:允许 Session.append() 标记 ignorable: true,以及提供 conversation.chat.reasoning slot。完整改动已保存为 dsh-summary-cot-live.patch。
在 test-shenjackyuanjie(DSH 源码根目录)执行:
git apply --check ..\dsh-cot-summary\patches\dsh-summary-cot-live.patch
git apply ..\dsh-cot-summary\patches\dsh-summary-cot-live.patch
然后使用 cordis.overlay.patch.yml,它会启用 streamDeltas: true 和 @shenjack/dsh-client-cot-summary-overlay。
此时 cot-summary/delta 带有 ignorable: true:它通过 host 到浏览器的实时 event/projection 流更新 UI,但 session-persistence-rdb 会过滤这类记录;只有完整的 cot-summary/settled 与 retry 用的 cot-summary/reset 会保存。
两个浏览器展示包不可同时启用。请将示例中的 provider 和 model 改成你的总结模型路由。
npm 配置
.npmrc 已包含:
@deepseek-ai:registry=https://registry.npmjs.org/
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
ruvnet/ruflo
amruthpillai/reactive-resume
volcengine/OpenViking
Molunerfinn/PicGo
titanwings/colleague-skill
nocobase/nocobase
Tencent/WeKnora