DSH Web 输入框的常驻 plan 模式切换按钮:两态控件(Plan / Plan ×)一键开启或关闭 plan 模式,替代官方仅在开启时显示的关闭徽章。
安装
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:Nanmu-del/dsh-plan-toggle
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
A DeepSeek Harness (DSH) web client plugin: a persistent plan-mode toggle button in the composer tool row.
The shipped Plan × badge only shows while plan mode is already active. This plugin replaces it with a two-state toggle that is always visible, so you can turn plan mode on or off in one click without typing commands.
English
What it does
- Replaces the show-only-when-active
Plan ×badge with a persistent two-state chip:Plan(off state) → click to turn plan mode onPlan ×(on state) → click to turn plan mode off
- Drives the same
/planand/plan offcommand channel and the officialplanprojection, so it stays in sync with plan mode everywhere. - Keeps its own locale namespace (
plan-toggle), avoiding a dictionary collision with the officialplannamespace.
Install
Add the package as a dependency and to the bundle list of your profile's package.json:
// package.json (profile)
{
"dependencies": {
"@dsh-external/dsh-plan-toggle": "github:Nanmu-del/dsh-plan-toggle#<commit>"
},
"dsh": {
"profile": {
"bundles": [
// ...other bundles
"@dsh-external/dsh-plan-toggle"
]
}
}
}
Then:
pnpm install
# restart dsh web
Structure
| Path | Role |
|---|---|
lib/index.js |
Host half (no host-side behavior; the toggle is a pure client surface) |
lib/client.js |
Client bundle: the toggle button + locale dictionaries |
cordis.patch.yml |
Bundle patch that inserts the host entry |
Usage
Click the toggle chip in the composer tool row, or use the equivalent commands:
/plan— turn plan mode on/plan off— turn plan mode off
License
中文
功能
- 用一颗常驻的两态按钮替代官方「仅开启时才显示的
Plan ×徽章」:Plan(关闭态)→ 点击开启 plan modePlan ×(开启态)→ 点击关闭 plan mode
- 复用官方
/plan、/plan off命令通道和plan投影,与 plan mode 全局保持一致。 - 使用独立 locale 命名空间(
plan-toggle),避免与官方plan命名空间词典冲突。
安装
在 profile 的 package.json 里加入依赖和 bundle:
// package.json (profile)
{
"dependencies": {
"@dsh-external/dsh-plan-toggle": "github:Nanmu-del/dsh-plan-toggle#<commit>"
},
"dsh": {
"profile": {
"bundles": [
// ...其它 bundle
"@dsh-external/dsh-plan-toggle"
]
}
}
}
然后:
pnpm install
# 重启 dsh web
结构
| 路径 | 职责 |
|---|---|
lib/index.js |
宿主半区(无宿主侧行为;按钮是纯客户端表面) |
lib/client.js |
客户端 bundle:切换按钮 + 词典 |
cordis.patch.yml |
插入宿主条目的 bundle patch |
使用
点击 composer 工具行的切换按钮,或使用等效命令:
/plan— 开启 plan mode/plan off— 关闭 plan mode
License
链接
同类插件
zhu1090093659/dsh-web#packages/dsh-task-board★ 7488
侧边栏多列任务看板:卡片交给真实 DSH 智能体会话执行,支持 cron 定时(Host 侧到点执行,关浏览器也生效)。
zhu1090093659/dsh-web#packages/dsh-web-all★ 7488
DSH Web UI 插件与皮肤合集:任务看板、git 图、右侧面板、远程移动端 UI、桌宠、实时 token 统计与皮肤中心。
omdsh-dev/DSH-better-sidebar★ 3555
侧边栏完整工作台:内置文件渲染编辑、终端、Git 与子代理,支持三方插件注册新 Tab。
ccch1mneyyy/dsh-TUI★ 2994
Claude Code 风格全屏终端 UI:像素鲸鱼顶栏、实时工作状态行、思考流式展开。
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 2274
右下角常驻的小鲸鱼余额挂件:显示余额、今日已用、每轮对话消耗与随机台词,带音效与设置菜单。
Devin-AXIS/deepseek-design#deepseek-idesign★ 1072
可视化设计工作室,支持网站、App 原型、海报、信息卡、报告和杂志的模板创建、元素编辑、选区级 AI 草稿衔接与导出。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。