dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
在 DeepSeek Harness 设置页编辑全局 AGENTS.md 和项目 AGENTS.md / CLAUDE.md 个性化指令,提供项目指令链浏览、字节预算显示与保存冲突处理。
中文 | English
English: dsh-agent-instructions-editor adds a 个性化指令 (Personalization) settings page to the DeepSeek Harness Web GUI for editing the harness workspace instruction files — the user-global
~/.dsh/AGENTS.md, project-chainAGENTS.md/CLAUDE.mdfiles, andAGENTS.local.md/CLAUDE.local.mdoverlays — in the spirit of Codex's personalization settings. See README.en.md for the full English version.
DeepSeek Harness 的个性化指令编辑插件:在 Web 设置页里直接编辑指令文件体系(对标 Codex 的「个性化」设置),由全局编辑器 + 项目链浏览器 + 覆盖层组成,带字节预算显示与「新会话生效」提示。
~/.dsh/AGENTS.md,显示字节预算(默认 65,536)。@deepseek-ai/dsh-agent-instructions 的同一套规则。
全局指令和项目指令可在同一设置页查看与编辑。截图中的界面语言为中文。
版本 0.2.3 面向 DSH 0.2,适配基线为 0.2.0-rc.2。本次修复深色主题下「个性化指令」项目切换下拉未选中项白底白字的问题;0.2.2 为插件管理页增加随客户端语言切换的中英文名称与简介。桌面客户端沿用 Web 插件界面,无需另一份桌面专用包。变更记录见 CHANGELOG.md。
仍使用 DSH 0.1 的用户请保留插件 0.1.2(npm 安装指定 dsh-agent-instructions-editor@0.1.2),不要直接升级到本版。开发依赖与 CI 基线已更新到 DSH 0.2.0-rc.2;指令文件的发现规则、保存安全边界和「新会话生效」语义保持不变。
桌面客户端与 Web 实例的插件安装及启用状态完全独立。请根据你使用的运行环境选择对应方式:
通过桌面客户端界面安装(无需配置命令行):
dsh-agent-instructions-editor@latest 并确认安装;若偏好终端管理,可使用桌面配套 CLI:
dsh plugin --profile desktop add dsh-agent-instructions-editor@latest
dsh plugin --profile desktop list
注意:通过外部 npm / npx 安装的普通
dshCLI 无法管理 desktop profile。关于桌面配套命令机制,详见官方桌面端文档的 bundled-command-runtime。
Web 实例通过匹配的命令行工具进行管理。优先使用启动该 Web 实例的同一套匹配宿主的 dsh CLI:
dsh plugin --profile web add dsh-agent-instructions-editor@latest
然后重启 dsh web(停止当前进程,再运行 dsh web)并刷新页面。
其他安装方式:
# npm 安装不可用时,可改为从 GitHub 固定 0.2.3 tag 安装
dsh plugin --profile web add github:MaRi23333/dsh-agent-instructions-editor#v0.2.3
两种方式都在重启 dsh web 后生效。
说明:若使用
npx执行安装命令,请固定为与你的 Web 宿主相同的版本(例如npx @deepseek-ai/dsh@0.2.0-rc.2 ...)。从本地目录或 GitHub 安装切换到 npm 时,请务必带上@latest,以免已有安装被判定为已满足而跳过更新。
环境要求:DSH 0.2(本版适配基线 0.2.0-rc.2)、Node.js 22+、pnpm,以及与所装宿主匹配的 DSH CLI。无需本地构建:npm 包与 GitHub 仓库都附带 lib/ 构建产物。
127.x.x.x / localhost / [::1],任意端口)——封死 DNS rebinding;POST 额外要求 JSON content-type 与严格同源 Origin(无 Origin 的本机脚本客户端不受影响)。[.git]、候选 4 件套、预算 65,536);若用户修改 dsh-base 的 agent-instructions 配置(自定义 markers/候选/预算),编辑器展示会随之漂移。t())。src/index.ts):自有 HTTP 路由 /agent-instructions/api/{projects,chain,file};手动项目注册表存放在本插件的 profile 条目中,通过 DSH 0.2 的 SettingsForms 接口读写,保存携带 revision 冲突检测。src/client/):settings.section 槽位贡献设置页;纯 textarea 编辑器(零额外依赖)。src/chain.ts):按指令加载器的规则逐条复刻(marker 上溯、祖先链、候选探测、目录内 sha1(trim) 去重),纯 Node 可单测。pnpm install --frozen-lockfile
pnpm run typecheck
pnpm run test # 发现、写入与编辑状态单测
pnpm run build # tsdown:lib/index.js(host)+ lib/client.js(browser)
pnpm run smoke # smoke-host.mjs + smoke-client.mjs
pnpm run check:pack
0.2.0-rc.2。pnpm-workspace.yaml 的 overrides 出于两个原因全量精确钉版:
^0.2.0-rc.2 这类带预发布下界的 caret 范围错误展开为 >=0.2.0 <0.3.0-0(排除了 0.2.0-rc.2 自身),导致 NO_MATCHING_VERSION;@deepseek-ai/dsh-client-runtime / @deepseek-ai/dsh-host-apiproxy 保留 0.1.1-rc.2,@deepseek-ai/dsh-agent-presets / @deepseek-ai/dsh-code-runtime 保留 0.1.5-rc.3。MIT。本发布产物不内联任何第三方代码,说明见 THIRD_PARTY_NOTICES.md。
本插件是独立社区项目,与 DeepSeek 无任何隶属或背书关系;DeepSeek Harness 名称仅用于标明兼容平台。