21hbguo/dsh-thinking-counter ↗★ 3
@dsh-external/dsh-thinking-counter
会话思考内容短语命中与块数字符数统计,含分级与漂移判断 适合关注 reasoning 内容质量与异常词态势的用户;需运行时开启统计并配置检测词与可见文本范围
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:21hbguo/dsh-thinking-counter說明文件
閱讀完整 README ↗⚙️ 配置项
插件无独立设置页,运行时通过面板或 API 控制:
| 配置 | 类型 | 默认 | 说明 |
|---|---|---|---|
enabled | boolean | false(面板未启动) | 总开关;开启时才开始统计,再次开启会清零重开 |
matchers | (string | MatcherObject)[] | [](词表默认空) | 检测词;MatcherObject = { pattern, caseSensitive?, group? } |
matchVisible | boolean | false | 是否把可见回复文本也纳入检测词匹配 |
| 聪明阈值 | number | 60 / 30 | ≥60% 梁圣附体、30–60% 肥鱼歪头、<30% 梁子;源码 src/client/panel.ts 中可改 |
持久化位置:
- 浏览器快捷缓存:
localStorage键dsh.thinkingCounter.v1 - host 权威存储:
~/.dsh/plugins/dsh-thinking-counter/config.json(旧版~/.dsh/dsh-thinking-counter.json会自动迁移)