oakcakerolls/dsh-think-summary 预览 preview

oakcakerolls/dsh-think-summary

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

- 版本:0.1.2(npm 标签 v0.1.1 / v0.1.2) - Host 半面(检测 / 分段 / 总结 / 精炼 / 持久化):src/host/,TypeScript → lib/ - 客户端半面(面板 / 总结条 / 视图 / 设置卡):src/client/,纯 JS → lib/client.js

catalog descriptioncatalog 简介 / catalog description:Deepseek Harness 长思考链实时分段、实时总结插件,让你知道模型当前正在想什么

Project Overview项目介绍

This is a native double-sided plugin built exclusively for DeepSeek Harness (DSH) running on the Cordis architecture, designed to segment and summarize long model thinking chains. It works by monitoring the reasoning delta stream in real time, splitting long thinking into semantic segments, generating summaries for each segment, and displaying the results directly in the DSH chat interface. It includes both a host-side backend for detection, segmentation, summarization, and persistence, and a client-side frontend for panels, settings, and view rendering. It supports four different installation methods: DSH CLI with symbolic link, npm package, manual Cordis configuration, or manual web profile patching.

When a user asks the model a question that requires deep reasoning, and the number of thinking tokens exceeds the configured threshold, the plugin automatically activates the segmented summarization workflow. While the model is still thinking, a real-time panel above the input box scrolls to add new segment summaries, and a collapsible summary bar grouped by thinking step is added at the end of each reply. A dedicated "Thinking Summary" tab is added to the header of the current conversation, where users can view all historical summaries for the session. Short thinking under the threshold will not trigger any output to avoid distractions.

The plugin is released under the open source MIT license, so it is completely free to use and modify. All configuration changes take effect immediately after saving, no DSH restart is required. By default, thinking summaries are persistently stored in the ~/.dsh/dsh-think-summary.json file, so they remain available after DSH restarts, and the plugin supports automatic cleanup of summaries from archived conversations. You can tweak multiple settings like thinking threshold, refinement behavior, and storage retention to fit your usage habits. If you only need the backend functionality and do not want the frontend UI, you can also install it as a pure Cordis plugin without the browser client.

这是一款专为 DeepSeek Harness(DSH)开发的原生 Cordis 架构双面插件,核心功能是对模型长思考链做分段总结。它会实时检测模型输出的长思考内容,边思考边分段,逐段生成摘要并实时展示在聊天区,自带可配置设置页与思考总结历史持久化功能。支持通过 DSH CLI 符号链接、npm 包、手动配置等多种方式安装。

当用户向模型提出需要深度推理的问题,且思考 token 数超过设定阈值后,插件会自动启动分段总结功能。思考进行中,输入框上方的实时面板会逐段滚动展示摘要,每条回复末尾会显示按思考步骤分组的可折叠总结条,会话头部还设有专门的「思考总结」选项卡,可查看当前会话全部历史总结。适合经常使用大模型做深度推理、需要整理长思考过程的DSH用户。

插件采用 MIT 许可开源,完全免费使用。安装后配置修改即时生效,无需重启 DSH。思考总结默认会持久化存储在 ~/.dsh/dsh-think-summary.json,重启 DSH 后仍可查看历史记录,还支持自动清理已归档会话的总结数据。如果仅装载服务端不加载前端 UI,也可纯 Cordis 方式安装使用。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
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 dsh-think-summary

把 oakcakerolls/dsh-think-summary 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-think-summary

DSH(Cordis 架构)双面插件:长思考链分段总结 —— 检测模型的长思考,边思考边分段, 逐段产出摘要,实时展示在聊天区,附带设置页与历史持久化。

  • 版本:0.1.2(npm 标签 v0.1.1 / v0.1.2)
  • 许可:MIT
  • Host 半面(检测 / 分段 / 总结 / 精炼 / 持久化):src/host/*,TypeScript → lib/
  • 客户端半面(面板 / 总结条 / 视图 / 设置卡):src/client/*,纯 JS → lib/client.js

特性

  • 长思考检测:llm/stream 瀑布实时观察 reasoning-delta,轻量 token 计数 (CJK 自适应、原始计数不取整),超过阈值自动进入分段模式;默认过滤 旁路流(GenerateOptions.purpose 非空 = 压缩/标题生成等辅助调用;无 purpose 的旧宿主回退 sessionId 启发式)。
  • 语义分段:双阈值(最小窗口 1500 / 硬上限 3000 token)+ Markdown 结构感知 (围栏状态机——代码块整体原子、围栏内不误切;表格整体保留;列表只在项边界切; 标题/有序列表/任务项/引用/分隔线/行首结构词边界;max 强制切回溯到最近句末/行末; blockType 切换强信号),只缓存未总结余量,内存有界、state 级哈希去重。
  • 代码块/表格三态处理:ignore(默认,内容不写内存、不计段 token、不精炼, 总结卡片不显示任何代码块/表格痕迹)/ keep-skip(保留+结构化摘要、 跳过精炼)/ keep-refine(保留并精炼);总思考 token(阈值/进度)始终计入代码量。
  • 逐段总结:启发式提取(0 token)即时出;精炼用会话 provider 的最小可用 模型精炼可精炼段(输入预算 + 裁剪三档:头尾 / 仅尾部 / 完整保留;展示截断 ~60 token;并发池默认 3、任务互不打断、超时释放并发位;异常自动回退启发式并 在段上标注原因);段头同时显示原始输出 token(含被忽略的代码/表格)与 精炼实际 token(输入裁剪后 + 输出摘要)。
  • 实时面板:composer 上方实时面板(思考进度 + 滚动分段摘要,仅"对话"视图 显示),客户端每 1.5s 轮询 /api/think-summary/state;总结不写回会话上下文, 零污染。
  • 聊天流内总结条:每条回复末尾(turnTail 槽位)显示该 turn 的思考总结, 按每次思考(step)分组、默认折叠。
  • 思考总结视图:会话头部"思考总结"选项卡,列出当前会话全部被记录的 思考(每段摘要 + 原始/精炼双 token + 状态标签),可折叠、自动滚底、 折叠状态 localStorage 持久化。
  • 事后兜底:session/event 事件流断流/异常时补跑分段总结,不丢摘要, 兜底分段同样入队精炼(用会话默认模型)。
  • 主模型自产小结(可选,默认关):selfSummary 设为 prompt 后,向系统提示词 注入小结指令,流内捕获【思考小结】标记直接展示(仅展示补充,不影响外部分段)。
  • 持久化:思考总结保存到 ~/.dsh/dsh-think-summary.json(原子写:tmp+rename、 每次状态变更同步落盘),重启 dsh 后仍可查看历史总结;支持已归档会话的 自动/手动清理(默认宽限保留最近 24h,防误清)。
  • 设置页:官方插件配置区卡片(自建 loopback 设置桥,分组可折叠),改动即时生效。

界面预览

思考进行中,输入框上方的实时面板逐段滚动展示摘要(左侧),会话头部的 "思考总结"选项卡汇总当前会话全部历史总结(右侧):

输入框上方实时思考总结卡片

历史思考总结选项卡

架构速览

模型流 ─► llm/stream 包裹(检测+分段+启发式总结+精炼入队)──► state(会话级)
                                                                  │
session/event 兜底补跑 ◄──────────────────────────────┐          │
                                                      ▼          ▼
                    持久化:~/.dsh/dsh-think-summary.json ◄── 原子写(每次变更)
                                                      │
   客户端:settings.plugin.item 设置卡 ◄─ loopback 设置桥 ─ /api/think-summary/*
   客户端:conversation.input.dock 实时面板 ◄── 轮询 ── /api/think-summary/state
   客户端:conversation.chat.turnTail 回复末尾总结条 ◄── 有限重试 ── /api/think-summary/state
   客户端:conversation.view "思考总结"选项卡 ◄── 轮询 ── /api/think-summary/state

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-plugin-installer 下一个 Next dsh-APEX_Plugin →