new-Beginner/dsh-thought-fold ↗★ 0
dsh-thought-fold
DeepSeek Harness 的 Codex 风格进度可视化与原生过程折叠增强插件(安全修复版)
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:new-Beginner/dsh-thought-fold说明文档
阅读完整 README ↗方式一:使用 DSH 官方 CLI 命令一键安装(推荐)
在终端中执行以下命令(按所用环境选择 Desktop 或 Web Profile):
# 若使用 Web 环境
dsh plugin --profile web add github:new-Beginner/dsh-thought-fold
安装完成后重启 DeepSeek Harness 即可生效。
方式二:手动配置 Profile package.json
在 Desktop Profile ~/.dsh/profiles/desktop/package.json 的 dependencies 中添加:
{
"dsh-thought-fold": "github:new-Beginner/dsh-thought-fold"
}
然后在 dsh.profile.bundles 中添加:
"dsh-thought-fold"
方式三:使用预打包本地安装包
下载或生成 dsh-thought-fold-1.0.1.tgz 后,在 ~/.dsh/profiles/desktop/package.json 的 dependencies 中添加:
{
"dsh-thought-fold": "file:./dsh-thought-fold-1.0.1.tgz"
}
并在 dsh.profile.bundles 中添加 "dsh-thought-fold"。
完整 Profile 片段示例
{
"dsh": {
"profile": {
"bundles": [
"@deepseek-ai/dsh-base",
"@deepseek-ai/dsh-web-app",
"dsh-thought-fold"
]
}
}
}
重启 DeepSeek Harness Desktop 后生效。
配置
dsh-thought-fold:
enabled: true
autoFold: true
showLiveHud: true
injectPrompt: true
promptStyle: standard # standard | concise | deep
foldStyle: codex
hideRawThinkTag: false # 安全版不修改聊天 DOM
promptPosition: after-persona
验证
npm test
npm run pack:plugin
测试包含白屏回归守卫,确保 Client 代码中不存在:
new MutationObserver(...).innerHTML = ...- 全局聊天轮次轮询
document.body监听/改写- Host 顶层动态
await import(...)
License
MIT
方式二:手动配置 Profile package.json
在 Desktop Profile ~/.dsh/profiles/desktop/package.json 的 dependencies 中添加:
{
"dsh-thought-fold": "github:new-Beginner/dsh-thought-fold"
}
然后在 dsh.profile.bundles 中添加:
"dsh-thought-fold"
方式三:使用预打包本地安装包
下载或生成 dsh-thought-fold-1.0.1.tgz 后,在 ~/.dsh/profiles/desktop/package.json 的 dependencies 中添加:
{
"dsh-thought-fold": "file:./dsh-thought-fold-1.0.1.tgz"
}
并在 dsh.profile.bundles 中添加 "dsh-thought-fold"。
配置
dsh-thought-fold:
enabled: true
autoFold: true
showLiveHud: true
injectPrompt: true
promptStyle: standard # standard | concise | deep
foldStyle: codex
hideRawThinkTag: false # 安全版不修改聊天 DOM
promptPosition: after-persona