DeepSeek Harness plugin

dsh-think-phrases

Top-right widget counting 'let me' / 'we' / 'let's' / 'I'll' across all reasoning chains of the current conversation.

Jump to install

Source facts

Repository
deathbook/dsh-think-phrases
Latest update
Aug 15, 2026
Category
Tools & Capabilities
GitHub stars
1
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/deathbook/dsh-think-phrases
Plugin: dsh-think-phrases
Author: deathbook

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer3 files
README.mdSource · read only

dsh-think-phrases

> 🤖 本项目由 DeepSeek V4 Flash Max 完全自主生成。

🔗 GitHub:<https://github.com/deathbook/dsh-think-phrases>

右上角思维链短语统计插件:统计当前会话所有思维链(reasoning blocks)中 let me / we / let's / I'll 的出现次数,便于快速查看当前对话的Deepseek-V4-Pro-0813模型是否进入灰测思维链。

适用于 DeepSeek Harness(dsh)插件体系,采用双半边架构:

  • 宿主半边 src/index.ts + src/projection.ts — 注册 thinkPhrases 会话投影:

投影框架对完整会话日志逐条执行 apply(仅统计 assistant/message 事件的 reasoning 块,支持 surface replace 回退),不受客户端窗口截断影响。

  • 客户端半边 src/client/ — 挂载到 conversation.session.header.utilities

(会话头部右侧工具区),通过 useProjection('thinkPhrases') 实时读取计数; 丸粒按钮显示总数,点击拉出面板、点外部或 Esc 收起。

功能

  • 统计思维链中的高频短语/单词:

- let me - we(匹配表达“我们”的 we,包括 we'rewe'llwe-needpre-we 等;不匹配 weirdsweet 等单词里偶然出现的 we) - let's - I'll(同时统计全写 I will

  • 全部忽略大小写。
  • 只统计思维链(reasoning)文本,不统计可见正文与用户消息。
  • 面板实时显示每项计数和总数。

计数规则

| 短语 | 正则 | | --- | --- | | let me | /\blet\s+me\b/gi | | we | /\bwe\b/gi (匹配表达“我们”的 we,含 we're/we'll/we-need/pre-we;不匹配 weird/sweet 等) | | let's | /\blet(?:['’]s|s)\b/gi (含直/弯引号与无引号变体) | | I'll | /\bi(?:['’‘]ll|\s+will)\b/gi (含 I will 全写及大小写/直弯引号变体) |

目录结构

dsh-think-phrases/
├── src/
│   ├── client/
│   │   ├── ThinkStatsWidget.tsx   # 客户端统计面板组件
│   │   ├── index.ts               # 客户端插件入口
│   │   └── think-stats.module.css # 面板样式
│   ├── index.ts                   # 宿主插件入口
│   └── projection.ts              # thinkPhrases 会话投影与计数规则
├── lib/                           # 构建产物(构建后生成,已 gitignore)
├── .gitignore
├── LICENSE
├── README.md
├── cordis.patch.yml
├── package.json
├── pnpm-lock.yaml
├── tsconfig.json
└── tsdown.config.ts

构建

pnpm install
pnpm run build   # lib/index.js (宿主) + lib/client.js (浏览器) + lib/types

安装到 profile

dsh-think-phrases 加入 profile 的 dependencieslink:/file:/工作区即可), 并在 dsh.profile.bundles 追加 "dsh-think-phrases",然后 pnpm install 并重启 dsh 宿主 (插件集合与客户端引导图均在启动时组合)。

标签

DeepSeek Harness 插件通用标签:

  • dsh
  • dsh-plugin
  • deepseek
  • harness
  • reasoning
  • stats

License

[MIT](./LICENSE)