changlianxiya-139/dsh-ambiguity-handling
changlianxiya-139★ 0JavaScriptLast synced: 2026-08-17
Append ambiguity-handling rules to the DeepSeek Harness system prompt
README excerpt
dsh-ambiguity-handling DeepSeek Harness(dsh)插件:当用户请求存在歧义、范围不清或可能有多种理解时,向 system prompt 追加「歧义处理规则」,引导模型先澄清用户意图,而不是臆测或假设。 已收录于 dsh.pub 功能 - 以独立 section 形式向 system prompt 注入歧义处理规则,不覆盖已有的 system prompt 内容。 - 注入的 section 名称为 ambiguity-handling , order 为 50 ,用于控制它与其他 system prompt section 的相对顺序。 - 规则要求模型:明确指认歧义、列出 2–4 种中文理解、提供「其他」补充选项,并请用户确认后再继续。 注入的规则内容 插件会在 system prompt 末尾追加以下文本: 目录结构 安装 方式一:组合包安装(发布到 npm / GitHub 后推荐) dsh 读取本包的 dsh.bundle 声明后会自动激活 cordis.patch.yml 层,不需要手动编辑 profile 的 patch: headless profile 需要时同样执行,并把 web 换成 headless 。发布与上架步骤见 PUBLISHING.md。 方式二:本地 file: 部署(本机当前方式) 插件目录位于: 配置(本地 file: 部署) dsh 会按 profile 加载 cordis.patch.yml 。本地部署时,插件需要注册到实际使用的 profile 中。 web profile /.dsh/profiles/web/cordis.patch.yml 的 - insert: 列表中加入: 完整示例: headless profile /.dsh/profiles/headless/cordis.patch.yml 内容为: 工作原理 1. 插件通过 export const inject = ['systemPrompt'] 声明依赖 dsh 的 systemPrompt 注入点。 2. dsh 加载插件时调用 apply(ctx) 。 3. ctx.systemPrompt.section({ ... }) 将规则注册为一个有序 section: - name :section 唯一标识,避免重复注入时产生冲突。 - order :section 顺序,数值越小越靠前(具体表现以 dsh 最终拼接实现为准)。 - text :追加到 system prompt 的实际文本。 生效与验证 - 修改 patch 配置或插件代码后,必须 重启 dsh (对应的 web / headless profile)才会重新加载插件。 - 可用 --dump-config 验证插件行已进入生效配置…
View full README on GitHub →Category
DeepSeek Harness: Everything is a Plugin.
★ 145,755
anywhere-labs/deepseek-harness-desktop为 DeepSeek Harness (DSH) 插件生态打造的现代化桌面端解决方案。万物皆「插件」,桌面本身也是「插件」。
★ 11,175
awesome-dsh-plugin/awesome-dsh-pluginA curated list of plugins for DeepSeek Harness (dsh) · DeepSeek Harness 插件精选列表
★ 7,291