前言¶
DSH 插件生態強調“一切皆插件”。對於已經在用 DSH 的開發者來說,有些能力希望安裝後自動生效,同時以 Skill 形式暴露,而不是新增空 tool。wenaixi/dsh-ponytail 是這類插件的一個例子:它把上游 DietrichGebert/ponytail 移植爲 DSH 插件,提供 6 箇中文 Skill,並通過 systemPrompt 注入工作。
這是什麼¶
wenaixi/dsh-ponytail 是 DSH 完整移植版 dietrichgebert/ponytail,定位是“懶惰 senior 模式、6 箇中文 Skill、無空 tool”。
倉庫由 Wenaixi 維護,上游爲 DietrichGebert/ponytail,許可證爲 MIT;package.json author 標註爲 Dietrich Gebert,版權標註爲 © DietrichGebert / Wenaixi。
核心功能¶
核心能力包括:
- 梯子 7 階:
YAGNI、複用、標準庫、平臺原生、已有依賴、一行、最小實現;off時靜默。 - 6 箇中文 Skill,
rank: 550:ponytail、ponytail-review、ponytail-audit、ponytail-debt、ponytail-gain、ponytail-help。 - 三檔強度:
lite、full(默認)、ultra。 - 無空 tool:全部能力經
ctx.skills暴露。 - 上游
hooks/的 4 個生命週期 Hook 已合併進單一 DSH 插件,無需宿主配置。 - 注入方式爲
systemPrompt:section { name: ponytail, order: 50 }。 /ponytail default <mode>會寫入config.json。- 子智能體通過
PONYTAIL_SUBAGENT_MATCHER正則匹配,非法時warn回退,並共享同一 section。 - HMR 全部走
ctx,熱重載逆序自動清理。
安裝與啓用¶
下面示例使用 web profile,從 npm 安裝插件。
dsh plugin --profile web add @wenaixi/dsh-ponytail
安裝完成後,用配置轉儲確認插件已出現。
dsh --profile web --dump-config | grep -A2 ponytail
如果看到 WARN missing peer @deepseek-ai/...,屬於正常現象,peer 由 DSH 運行時提供;看到 Packages: +2 Done 即成功。
典型用法¶
安裝後能力自動生效,無需手動觸發。常用命令如下:
/ponytail [lite|full|ultra|off]
/ponytail default <mode>
/ponytail-review
/ponytail-audit
/ponytail-debt
/ponytail-gain
/ponytail-help
退出當前狀態可以使用整句 stop ponytail、normal mode,也可以使用 /ponytail off。
卸載命令如下:
dsh plugin --profile web remove @wenaixi/dsh-ponytail
配置¶
默認強度優先級如下:
PONYTAIL_DEFAULT_MODE env > cordis.defaultMode > ~/.config/ponytail/config.json > full
/ponytail default <mode> 會將默認模式寫入 config.json。配置項示例如下:
providerName: ponytail
defaultMode: full # off|lite|full|ultra
注意:review 不可作默認。
適用場景與注意¶
它適合需要在 DSH 中啓用 ponytail 行爲、用 /ponytail 族命令切換強度,並希望通過 Skill 暴露能力而不是空 tool 的場景。
安裝前請檢查源碼與許可證。該插件許可證爲 MIT,上游 DietrichGebert/ponytail 也是 MIT。插件以當前 dsh 進程權限運行,因此應確認運行環境、profile 和配置來源。
peerDependencies 包括:
@deepseek-ai/cordis
@deepseek-ai/dsh-skill
@deepseek-ai/schemastery
結尾¶
wenaixi/dsh-ponytail 提供的是 DSH 插件層的自動注入與 Skill 暴露:用 7 階梯子、三檔強度和 6 箇中文 Skill 組成一組可直接啓用的行爲。DSH 社區目錄是獨立站點,與 DeepSeek / 幻方無官方從屬關係;具體條目頁以實際目錄爲準。GitHub 倉庫:https://github.com/Wenaixi/dsh-ponytail。