前言¶
在 DeepSeek Harness(DSH)裏寫插件、查配置、跟智能體對話時,常見回覆會先鋪背景、再慢慢展開步驟。對需要立刻動手的人來說,這種節奏容易打斷思路。社區裏已有面向 Cursor 等環境的「i-have-adhd」式輸出規則:先給下一步動作、多步用編號、少跑題、把小進展寫清楚。trevtravtrev 的 dsh-i-have-adhd 把同一套規則編成 DSH bundle,掛進 Cordis 後在系統提示或會話裏生效。下面介紹它做什麼、怎麼裝、怎麼用,以及和上游 fork 在默認行爲上的差異。
這是什麼¶
dsh-i-have-adhd 是 maintainer trevtravtrev 發佈的 DSH 插件(社區目錄分類:趣味換裝)。一句話:爲 DeepSeek Harness 提供 ADHD 友好型輸出——行動優先、多步編號、複述狀態、壓制無關展開、給出具體時間感、讓已完成事項可見。
規則文案來自上游 ayghri/i-have-adhd(MIT),本包在 commit 1ecea1993b7fce257ffbd686c070948b5e07eda6 處原文拷貝規則集(上游 package 版本 0.4.1);DSH 側的 skill、always-on 段落、/adhd 命令與 bundle 裝配由本倉庫完成。當前 package 版本爲 0.2.0,許可證 MIT,peer 依賴 @deepseek-ai/cordis ~4.1.0。
與上游 Cursor skill 的一處差別:本 fork 在 bundle 行裏默認 alwaysOn: true,掛載後對掛載該行的每個 profile 裏每次新會話都會注入規則;上游默認爲按需。可用 /adhd off 關閉持久化的 always-on,仍保留 /i-have-adhd 按需注入。
核心功能¶
README 用表格對比了輸出形態:以前可能是「好問題,讓我想想,你的 auth 流程有幾塊……」;啓用規則後更接近先給可執行句(例如指出編輯 src/auth.ts:42),再編號列表,再明確「下一步做什麼」。
實現上拆成幾塊(與 README「How it works」一致):
| 組件 | 作用 |
|---|---|
Skill i-have-adhd |
註冊爲僅用戶可調用(modelInvocable: false),模型不會自動加載;入口是 /i-have-adhd。 |
System prompt 段落 i-have-adhd:rules |
always-on 開啓時,在組裝 system prompt 時注入規則;關閉時段落爲空,不佔 token。 |
命令 /adhd |
管理 always-on 持久狀態(on / off / status),狀態寫入 ~/.dsh/i-have-adhd.json。 |
agent/pre-step 監聽 |
匹配停止短語(如 stop adhd mode、normal mode)時,僅本會話停用注入;持久配置不變;之後 /i-have-adhd 可恢復本會話。 |
規則與命令反饋文案爲英文,與上游一致。
安裝與啓用¶
插件以 DSH bundle 形式發佈:package.json 聲明 dsh.bundle.patch,cordis.patch.yml 插入一行 id: i-have-adhd、name: dsh-i-have-adhd。無運行時 npm 依賴。安裝前建議閱讀倉庫 LICENSE 與 lib/index.js,插件在 當前 dsh 進程權限 下運行。
官方 README 給出三種路徑,擇一即可;下列命令均摘自資料原文(示例路徑爲 Windows 上作者開發機,本機請換成實際目錄)。
方式一:Profile 插件目錄聯接 + patch 行(README 稱 simplest,不必 pnpm)¶
對每個需要攜帶該插件的 profile(dsh-tui、web、desktop、headless)建立 junction 指向包目錄,並在對應 cordis.patch.yml 中 insert 一行:
foreach ($profile in 'dsh-tui', 'web', 'desktop', 'headless') {
New-Item -ItemType Junction -Path "$env:USERPROFILE\.dsh\profiles\$profile\plugins\dsh-i-have-adhd" `
-Target "C:\Users\trevo\Documents\deepseek-harness\plugins\dsh-i-have-adhd" -Force | Out-Null
}
- insert:
- id: i-have-adhd
name: './plugins/dsh-i-have-adhd/lib/index.js'
config:
alwaysOn: true
新模塊在下次啓動 DSH 時掛載;改 patch 可 HMR,從未加載過的模塊文件仍可能需要重啓。
方式二:DSH Web GUI 插件頁¶
- 打開 Settings -> Plugins。
- 從包目錄(或打好的
.tgz)安裝本地 bundle。 - 若未自動啓用,打開 I have ADHD。
- 若管理器提示
restart-required,重啓 DSH。
方式三:CLI(pnpm)¶
dsh plugin --profile web add "file:C:\Users\trevo\Documents\deepseek-harness\plugins\dsh-i-have-adhd"
在 %USERPROFILE%\.dsh\profiles\web\package.json 的 dsh.profile.bundles 中加入 "dsh-i-have-adhd"(README 示例寫在 @deepseek-ai/dsh-web-app 之後),重啓 DSH,並確認 compose 結果:
dsh --profile web --dump-config | Select-String "i-have-adhd"
pnpm 需在 PATH 上;更細的 profile / bundle 說明見倉庫內 docs/dsh-internals.md。
典型用法¶
默認(本 fork):裝好並掛載 patch 行後,無需手勢即可在每個新會話、每個安裝了該行的 profile 裏啓用規則集;重啓後仍保持。/i-have-adhd 仍可用於曾被暫停的會話。
| 輸入 | 效果 |
|---|---|
| (無) | 每個新會話在掛載 profile 上默認生效,重啓後仍有效。 |
/adhd off |
關閉 always-on,並在 ~/.dsh/i-have-adhd.json 持久化爲 false;/i-have-adhd 仍可用。 |
/adhd on |
重新打開 always-on 並持久化爲 true。 |
/adhd status |
報告 always-on 來源及本會話是否處於激活狀態。 |
stop adhd mode / normal mode |
僅本會話停用注入,不改磁盤上的持久設置。 |
/i-have-adhd |
向當前對話注入規則集;也可在用過停止短語後重新啓用本會話。 |
配置層面,alwaysOn 可在 profile 的 cordis.patch.yml 裏改默認值;/adhd on|off 寫入的狀態文件會雙向覆蓋行配置。刪除 ~/.dsh/i-have-adhd.json 可回到行配置。測試或多 profile 分狀態時可用 statePath 指向其它文件(README 有 Windows 路徑示例)。
驗證安裝與行爲可跑倉庫測試(需在包目錄下):
cd C:\Users\trevo\Documents\deepseek-harness\plugins\dsh-i-have-adhd
node --test test/plugin.test.mjs
套件覆蓋 skill 註冊與調用標誌、十條規則、always-on 段落、命令與持久化、畸形狀態回退、停止短語與會話重開、bundle 打包等。
適用場景與注意¶
適合:長時間用 DSH 做實現類任務,希望模型少寒暄、先給下一步、長流程帶編號和狀態複述的開發者。不適合強求中文規則文案或完全零額外 prompt 的場景——always-on 時 README 估算大約 增加 2.3k 字符/請求;無關會話可用 /adhd off 或本會話停止短語減負。
資料中寫明的限制:
- 僅按需(
/i-have-adhd)時,規則活在對話歷史裏,compaction 可能摘要掉;若在意可改用/adhd on。 - 停止短語需 精確匹配(trim + 小寫),不能像自然語言那樣模糊匹配。
- always-on 的持久狀態相對
$DSH_HOME全局;本會話的 stop 覆蓋在內存裏,DSH 重啓後重置。
DSH 生態秉持「一切皆插件」;社區目錄 skillhub.cn 爲獨立站點,與 DeepSeek / 幻方無官方從屬關係。安裝第三方 bundle 前請自行審閱源碼與 MIT 許可證。
結尾¶
dsh-i-have-adhd 把 ayghri/i-have-adhd 的輸出紀律搬進 DSH:bundle 掛載後默認 always-on,也可用 /adhd 與 /i-have-adhd 細粒度控制。需要進一步瞭解說明與發行文件時,可看目錄頁與 GitHub 倉庫。
- 目錄頁:https://www.skillhub.cn/plugins/trevtravtrev/dsh-i-have-adhd
- 倉庫:https://github.com/trevtravtrev/dsh-i-have-adhd