dsh-local-plugins
一组为 DeepSeek Harness 编写的插件与 agent preset, 按用途分成三个组:飞码套件、交付团队、工具。
A collection of DeepSeek Harness plugins and agent presets, grouped by purpose: the Feima suite, the delivery team preset, and tools.
仓库内不含任何真实凭据、内网地址或私有服务 URL。所有环境相关的值都是占位符或 运行时配置项。
No real credentials, internal hostnames, or private service URLs live in this repository. Every environment-specific value is a placeholder or a runtime setting.
分组 / Groups
1. 飞码套件 / Feima suite — 必须一起装 / install together
飞码的能力是一整套:预设提供模式,工具条提供开关,hzero-mcp 提供平台接口。 三者分开也能各自装,但完整能力只有三个都装才有。
Feima is a set: the preset provides the mode, the toolbar provides the switches, and hzero-mcp provides the platform API. Each installs independently, but the full capability requires all three.
| 包 / Package | 作用 / What it does |
|---|---|
packages/preset-feima |
feima-hzero 预设本体与飞码技能目录 / the preset and its skill directory |
packages/feima-ui |
输入区工具条与四个能力开关 / input toolbar and capability switches |
packages/hzero-mcp |
HZERO 平台 MCP server 与凭据面板 / HZERO platform MCP server and credential panel |
安装顺序建议:hzero-mcp → preset-feima → feima-ui,最后重启一次。
Suggested order: hzero-mcp → preset-feima → feima-ui, then restart once.
2. 交付团队 / Delivery team
| 包 / Package | 作用 / What it does |
|---|---|
packages/preset-delivery-team |
delivery-team 预设,五位成员由 dsh-agent-teams 的 profile 定义 / the preset; its five members come from a dsh-agent-teams profile |
前置依赖:@nanmicoder/dsh-agent-teams 及名为 delivery-team 的 profile。
Requires @nanmicoder/dsh-agent-teams with a delivery-team profile.
3. 工具 / Tools
| 包 / Package | 作用 / What it does |
|---|---|
packages/session-delete |
会话右键「删除会话」+ 工作区账目对账 / delete a session and reconcile the workspace account |
packages/perf-lst |
长会话渲染性能:收窄历史窗口、跳过屏幕外绘制 / long-session rendering performance |
安装 / Install
每个包都是独立的 ESM bundle,无构建步骤。
Every package is a standalone ESM bundle with no build step.
plugin_manager install_bundle target=<仓库内某个 packages/<name> 的绝对路径>
或从 tarball 装 / or from a tarball:
cd packages/<name> && npm pack
plugin_manager install_bundle target=file:<生成的 .tgz 绝对路径>
生效方式 / Activation:
- preset 类改动必须重启 DeepSeek Harness — presets load with the Host
- 客户端插件(
feima-ui、perf-lst、session-delete的 client 半区)刷新页面即可 - Host 插件(
hzero-mcp、session-delete的 host 半区)需要重启
兼容版本 / Compatibility
所有包在 package.json 的 engines.dsh 声明支持范围,当前开发基线是
0.2.3-alpha.2。装之前确认你的 DSH 版本落在范围内。
Every package declares its supported range in engines.dsh; the current development
baseline is 0.2.3-alpha.2.
配置与凭据 / Configuration and credentials
插件配置写在 profile 的
cordis.patch.yml凭据一律走 DSH 本机安全存储,通过
remote.credentials.set()写入,界面只显示掩码仓库里没有
.env、没有 token 文件、没有写死的服务地址Plugin config lives in the profile's
cordis.patch.ymlCredentials go through DSH's local secure store via
remote.credentials.set()and are only ever displayed maskedNo
.env, no token files, no hardcoded service addresses in this repository
脱敏之后怎么保持「能真用」/ Why nothing is hardcoded
去掉硬编码不应该是「把能用改成不能用」。凡是原来写死在代码里的环境信息,都变成了 配置项,并且都有面板可填:
| 原来是写死的 | 现在 | 填在哪 |
|---|---|---|
| HZERO 服务地址 | 无默认值,必填 | 设置 → HZERO MCP → 服务地址 |
| 取包用的私有 npm 源 | registry |
同一面板 → npm 源 |
| MCP 包名 | package |
同一面板 → MCP 包名 |
| DSH home 路径 | 读 DSH_HOME,回退 ~/.dsh |
环境变量 |
| 本地诊断上报端口 | 整段移除 | 不再需要 |
hzero-dev-mcp 不在公共 npm 上,所以如果 registry 不可配,开源版本在真实环境里
根本拉不到包——这正是本次测试发现并修掉的缺口。
Removing a hardcoded value must not turn a working plugin into a broken one. Every
environment detail that used to be baked into the source is now a setting with a field in
the panel. In particular hzero-dev-mcp is not on public npm, so the registry and package
name have to be configurable or the open-source build cannot pull the package at all.
测试 / Tests
仓库自带可直接运行的检查,不依赖外部服务:
node packages/perf-lst/test/apply-smoke.mjs
node packages/perf-lst/test/clamp-history-request.mjs
node packages/session-delete/test/reconcile-smoke.mjs
The packages ship runnable checks that need no external service.
目录结构 / Layout
packages/
preset-feima/ 飞码预设与技能 / Feima preset and skills
feima-ui/ 飞码工具条 / Feima toolbar
hzero-mcp/ HZERO MCP server / HZERO MCP server
preset-delivery-team/ 团队交付预设 / Delivery team preset
session-delete/ 会话删除 / Session delete
perf-lst/ 渲染性能 / Rendering performance
许可 / License
MIT,见 LICENSE。各包 package.json 的 author 字段为原作者。
MIT, see LICENSE. Each package's author field names its original author.
还没有评论,来写第一条。