把你改过的插件(第三方或内置)保存为本地 git 仓库:只部署已构建并通过检查的指定提交,应用后导致 dsh 崩溃时自动回滚,把 npm 或 git 源的更新合并进你的修改,并可打开智能体会话,把你的修改压缩为原始发布版本之上的一个提交(先建备份分支)。
安装
# npm 包(预构建)
dsh plugin --profile web add dsh-local-plugins
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:ishanshmalviya5/dsh-local-plugins
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。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
该插件的 README 只有英文版本。
Customize any dsh plugin — even a built-in one — without losing your changes when things update, break or get reinstalled.

What you can do with it
| You want to… | You click | You get |
|---|---|---|
| Fix or tweak a plugin and keep the fix | + Add → Migrate, edit, Commit, Apply | Your change runs in dsh and survives updates and reinstalls |
| Take the author's new release without losing your tweaks | Update | The new version plus your changes; if both touched the same lines you are asked, and nothing breaks meanwhile |
| Go back when a change misbehaves | Deploy older commit… | The earlier version, instantly |
| Customize a built-in dsh feature (for example a model provider) | the same steps, on a built-in plugin | Your version runs; Unlink gives the original back |
| Let an AI agent change a plugin safely | Work on it | An agent opens inside that plugin's folder with the context filled in; it can't switch anything on — only you can |
| Keep your history tidy so updates stay easy | Squash my changes | An agent collapses all your commits into one on top of the original release; a backup branch is made first and it checks the code is unchanged |
| Pin a dependency to a newer version | Dependency overrides → Apply override | The override is saved, deployed and checked: you see a ✔ only when it is really installed |
| Recover after dsh was upgraded or reinstalled | Reapply all | Your customizations are switched back on |
| Try one exact version | + Add, name@1.2.3 (or …#v1.2.0) |
That version, and it stays put |
| See what you changed versus the original | look at the card | "3 files changed vs original", and what is running right now |
| Stop customizing a plugin | Unlink, then Delete… if you like | The original is back; your work is kept in a trash folder you can restore |
| Keep your work somewhere else too | it is an ordinary git folder: ~/.dsh/local-plugins/<plugin> |
add your own git remote and push |
And when something goes wrong, it tells you whether your setup is still safe and what to do next — it does not just say "failed".

Install (2 minutes)
- In a terminal (replace
webwith your profile name if you use another):dsh plugin --profile web add github:ishanshmalviya5/dsh-local-plugins - Restart dsh web.
- Open Settings → Local Plugins.
You need git, npm and Node 26 or newer, on macOS or Linux (details).
Your first customization
- + Add → Migrate and pick a plugin you already use. Anything you had already changed by hand is kept as your starting point.
- Make your change — edit the files in
~/.dsh/local-plugins/<plugin>, or press Work on it to have an AI agent do it with you. - Commit, then Apply, then restart dsh web.
That's the whole loop. Nothing changes in dsh until you click Apply, and if the new version can't be built or doesn't pass the checks, the old one simply keeps running.
More stories
Press Check now (it also checks shortly after dsh starts). A plugin with news shows Update available; click Update. Your changes and the new release are combined for you. If you and the author changed the same lines, the card lists those files and you choose: fix them (or press Fix with agent) and Finish update, or Abort to forget the attempt. Your running plugin is untouched throughout; you decide when to Apply.

Click Deploy older commit… and pick the version that worked. If dsh itself starts misbehaving right after you applied something, it notices, puts the last working version back, and shows a message — your edits are saved for you to fix with Work on it.
If dsh won't start at all, run this in a terminal to put every original plugin back: node ~/.dsh/local-plugins/.deployed/dsh-local-plugins/scripts/undo.mjs --all
Unlink (restore original) gives dsh the original, untouched plugin again. Your version stays listed (as Not applied), so you can switch it back on with Apply whenever you like.
Unlink it first, then Delete… and type its name. Your work is moved to ~/.dsh/local-plugins/.trash/, not erased. Move the folder back and press Repair installation to bring it back.
Press Repair installation. It looks for anything that doesn't add up (for example after a crash or a dsh upgrade), fixes what is safe, tells you about the rest, and never deletes your work. Recent operations shows what ran, how long it took, and the log; Disk usage shows space per plugin and lets you clean up old versions with a preview first.

For npm plugins: name, name@1.2.3 or name@beta. For plugins from git: a web address, github:owner/repo or git@host:owner/repo, optionally ending in #v1.2.0 (a release), #branch, or #commit. A pinned release or commit never moves by itself.
What the labels mean
| Label | Meaning | Do this |
|---|---|---|
| Applied | dsh is running your latest version | nothing |
| Changes pending | you have newer or uncommitted work that isn't running | Commit, then Apply |
| Update available | the author has a newer version | Update |
| Conflict | an update needs your decision about some files | Finish update or Abort |
| Link lost / Reapply required | dsh was upgraded or reinstalled | Reapply all (safe to repeat) |
| Broken | the records and the files disagree | Repair installation |
| Disabled | it crashed dsh and was taken out so dsh could start | Work on it, fix, Commit, Apply |
| Not applied | you track it, but dsh uses the normal plugin | Apply when you want yours |
You stay in control
- Scripts need your OK. Some plugins want to run install or build scripts with your full access. That is off by default; you choose Allow this time or Always allow for this plugin, and it asks again if the publisher changes.

- Your work is never silently lost. Unlink, Delete, rollbacks and crash recovery all keep your edits somewhere you can get them back.
- Only a finished, checked version is ever switched on — never a half-done edit.
- It only talks to the sources you track (the plugin's git or npm origin).
How this is guaranteed: Security · Recovery · How it works.
Compatibility — dsh-local-plugins 0.3.0
| Where | Status |
|---|---|
| macOS (Apple silicon), Node 26 | ✅ Supported. Tested by hand end to end against a real dsh, and in CI |
| Linux (Ubuntu), Node 26 | 🟡 Lint, all unit tests and package checks pass in CI. Not yet tried end to end against a real dsh |
| Linux, Node 22 / 24 | 🟡 Same CI results, but outside the supported range (needs Node 26 or newer) |
| Windows | ❌ Not supported — it says so and doesn't start |
Built and tested against dsh 0.2.0-rc.2. Upgrading from version 0.1 needs nothing from you: your plugins stay exactly as they are (details in the CHANGELOG).
Good to know
- If a plugin crashes dsh before this one loads, it can't repair that itself — use the
undo.mjscommand above. - The check before going live confirms the files are complete and readable; it does not run the plugin first.
- Built-in plugins follow the version that ships with your dsh, not newer npm releases.
- It does one thing at a time; if you click while it is busy, it asks you to wait.
For developers
HTTP API · Status rules · Troubleshooting · Performance · Release checklist · Developing
Contributions are welcome, including AI-assisted ones: read CONTRIBUTING.md first (and AGENTS.md for coding agents).
License
MIT — see LICENSE.
链接
同类插件
yjh051108/dsh-routing-suite★ 7028
一个仓库三件套:DSH 插件包的运行时注入器(注入、热重载、卸载、开发侧挂区一键转正、路由自愈,外带设置页插件管理:列出、卸载、拖入文件夹内化)、任务感知的思维模式路由 agent 预设(router-standard / router-spec / router-react)、以及分级两级任务协议(commit_star / lock_stage / revise_do / edit_plan / mark_task / redteam_verdict 六个工具,任务状态落盘)。注入器实现直接在库内,安装的是它自己的行为而不是一份依赖清单。
strukto-ai/mirage#dsh★ 3950
把文件系统与 bash 提供者换成 mirage 虚拟工作区:文件工具与 shell 命令作用于挂载的资源(RAM、S3、Redis、Slack、Gmail、Notion、Postgres)而非宿主磁盘,支持按挂载点设置读/写/执行模式、按命令选择沙箱(进程内 monty、pyodide、quickjs;远程 docker、e2b、daytona),并可在虚拟终端中安装 CLI(git、gh、slack、linear、ntn、gws,或自行注册的程序树)作为命令头词。
first-fluke/oh-my-agent#dsh★ 1491
在工具执行前后以及尝试结束当前轮次时运行项目 OMA 检查。随插件安装 OMA CLI 依赖,并在首次使用时初始化未配置的项目。需要 Node.js 22+;首次初始化需要网络连接和项目目录写入权限。
MichengAI/dsh-skills-manager★ 630
在设置里管理本地 DSH 技能,并只读查看公共 Agent 技能。
hust-open-atom-club/oh-dsh★ 326
社区发行版:TUI、桌面端与 Web UI 统一体验,分层安装、一步到位。
Fishquito7/dsh-skill-mcp-panel★ 292
在 DSH Web 设置中管理技能与 MCP 服务器:技能卡片热启停、工作区作用域、分组、批量迁移与拖拽导入,以及 stdio/HTTP MCP 增删改查、连接测试、密钥脱敏,并附带统一 dsh-panel 命令行。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。