21hbguo/dsh-thinking-counter ↗★ 3

@dsh-external/dsh-thinking-counter

会话思考内容短语命中与块数字符数统计,含分级与漂移判断 适合关注 reasoning 内容质量与异常词态势的用户;需运行时开启统计并配置检测词与可见文本范围

套件
@dsh-external/dsh-thinking-counter
相容性
待驗證
Harness 依賴範圍
>=0.0.1-rc <2
Cordis 依賴範圍
>=4.0.0-rc <5
版本
0.1.1
授權
MIT
最近更新
2026年8月18日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:21hbguo/dsh-thinking-counter

⚙️ 配置项

插件无独立设置页,运行时通过面板或 API 控制:

配置类型默认说明
enabledbooleanfalse(面板未启动)总开关;开启时才开始统计,再次开启会清零重开
matchers(string | MatcherObject)[][](词表默认空)检测词;MatcherObject = { pattern, caseSensitive?, group? }
matchVisiblebooleanfalse是否把可见回复文本也纳入检测词匹配
聪明阈值number60 / 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 会自动迁移)