前言¶
DSH 的插件化體系允許在會話運行時增加展示、配置和記錄能力。對於需要觀察推理流的人,直接讀原始 reasoning 文本不夠直觀,也容易把原始內容帶到日誌或傳輸鏈路裏。
dsh-cot-profile 針對這個問題:即時統計措辭指標,對照內置畫像基線判斷當前會話更接近哪一類畫像族,並按會話保存測量記錄。它只把聚合結果帶出 host computation,不記錄或傳輸 raw reasoning text。
這是什麼¶
下面介紹插件的基本信息。
- 插件名:
dsh-cot-profile - 維護者:
Chloride233 - 許可證:
MIT - GitHub:
https://github.com/Chloride233/dsh-cot-profile
一句話定位:這是 DeepSeek Harness 的即時 chain-of-thought trajectory profiling 插件,提供 live wording indicators、profile-family judgment 和 per-session measurement records。
核心功能¶
即時 UI¶
插件提供 session-header badge 和可摺疊浮動面板。面板數據通過 session-projection push frames 更新。
指標¶
插件會統計以下項目:
let me數量we數量let's數量I數量- first-line patterns
- block-length median
- interim visible replies
判斷¶
判斷會做 weighted-distance match,對照內置 profile baselines,並給出 confidence。當軌跡處於 transition band 時,插件會報告爲 uncertain,而不是強行輸出一個硬標籤。
可擴展¶
用戶可以在 Web settings 或 cordis config 中編輯 profile families 和 per-dimension weights。
記錄¶
Record mode 會保存 per-turn cumulative JSON records。記錄可以走 event,也可以寫 JSONL,用於 baseline calibration。
隱私¶
只有 aggregates 離開 host computation;raw reasoning text 不被記錄,也不被傳輸。
安裝與啓用¶
先安裝插件。使用安裝命令:
dsh plugin --profile web add github:Chloride233/dsh-cot-profile
安裝後,可按下面的方式啓用和配置。
Web settings 分區¶
如果要在 Web settings 中看到這個插件的配置分區,並且使用的是 DeepSeek Harness 0.1.0-rc.6,運行可選的一次性補丁:
sh scripts/install-patch.sh
這個補丁是 optional 且 idempotent。沒有它時,也可以通過 cordis config 配置。
需要注意:
- 在 profile 目錄執行
pnpm install會移除被複制的包;之後需要重新運行補丁腳本。 dsh升級可能改變 allowlist layout。
本地路徑安裝¶
如果使用本地路徑安裝,需要保證 checkout 內有可解析的 node_modules,並在 checkout 內運行:
pnpm install
使用 GitHub URL 安裝時不會遇到這個問題。
典型用法¶
先配置,再讀取事件。
配置位置是 cot-profile plugin row,文件可以是 cordis.patch.yml 或當前 profile 的 cordis.yml。可配置項包括:
minBlocksForJudgment
badge
panel
panelMode
weights
profiles
record.emit
record.file
其中:
badge和panel用於控制 UI。panelMode用於選擇面板模式;track是 experimental 模式,使用 direct DOM manipulation,DSH 升級後可能需要適配。weights用於調整 per-dimension weights。profiles用於添加 user-editable profile families。record.emit和record.file用於控制 record 輸出。
在會話作用域內,可以讀取 projection key:
useProjection('cot-profile')
相關事件包括:
cot-profile/update
cot-profile/record
適用場景與注意¶
適合需要以下能力的場景:
- 即時查看 CoT 會話中的措辭指標。
- 對照內置基線判斷畫像族。
- 保存每輪測量記錄,用於 baseline calibration。
使用注意:
- 插件以當前
dsh進程權限運行;安裝前應檢查源碼和MIT許可證。 panelMode的track模式是實驗模式,使用 direct DOM manipulation,可能在 DSH 升級後需要適配。- Web settings 分區依賴針對 DeepSeek Harness
0.1.0-rc.6的一次性補丁;不啓用補丁時,可通過 cordis config 配置。 - 本地路徑安裝需要可解析的
node_modules;GitHub URL 安裝可避免這個問題。
結尾¶
dsh-cot-profile 把推理流中的措辭信號整理成即時 UI、畫像判斷和可保存的測量記錄,同時只輸出聚合結果,不擴散原始 reasoning text。
GitHub:https://github.com/Chloride233/dsh-cot-profile
目錄頁:未給出具體 URL;可在 DSH 社區目錄中搜索 dsh-cot-profile。