Dingpenghui-good/dsh-conversation-language

Plugin插件 Native原生 ⭐ 2 Sessions & Context会话与上下文

用于在中文和英文之间切换对话语言的DSH插件

Project Overview项目介绍

This is a native plugin built exclusively for DeepSeek Harness (DSH) that lets users change the language AI uses for conversations. It adds a native settings option to DSH that lets you toggle between Simplified Chinese and English without restarting the entire app. The plugin dynamically updates the system persona prompt based on your selection, saves the setting persistently to DSH's local settings.yaml file, and matches DSH's native UI styling. You can install it via the DSH CLI tool or manually clone it to your plugins folder and update your profile's package.json.

After installation finishes, you must restart DSH for the plugin to activate. Once DSH restarts, you can find the "Conversation Language" option under DSH's Settings > General menu to change your preference, or edit the settings.yaml file directly to set the language. After switching, AI will think and respond in your selected language, and all user-facing text from tools, including tool descriptions, task names, and output content, will also use the same language. The plugin also includes a built-in tool that lets you query the current language setting at any time.

Different versions of this plugin are compatible with different DSH versions. For DSH 0.1.2-rc.1 and older, you should use plugin version 1.4.0 or older. For DSH 0.1.5-rc.1 and newer, you need to use plugin version 1.5.0 or newer to get full functionality. To develop the plugin locally, you must use pnpm to install dependencies because pnpm can correctly resolve pre-release DSH dependencies that npm cannot. After installing dependencies, you need to build the plugin output to the lib folder before you can install it. It is released under the open-source MIT license.

这是一款专为DeepSeek Harness(DSH)开发的原生插件,功能是切换AI对话的输出语言。它支持在DSH原生设置界面中直接切换中英文,无需重启就能动态更新系统角色提示词,设置会持久保存到本地settings.yaml文件,UI样式也匹配DSH原生设计。用户可以通过dsh命令行工具一键安装,也可以手动克隆到插件目录并配置配置文件完成安装。

安装完成后必须重启DSH才能让插件生效。重启后,用户可以进入「设置→通用设置」找到「对话内容语言」选项切换语言,也可以直接编辑本地settings.yaml文件手动修改配置。切换语言后,AI会用选中的语言进行思考和回复,所有面向用户的可见文本也会保持对应语言一致,还可以通过自带工具查询当前语言设置。

插件针对不同版本的DSH有对应兼容版本,0.1.2-rc.1及更早版本DSH使用1.4.0及更低版本插件,0.1.5-rc.1及更高版本DSH使用1.5.0及更高版本插件。本地开发需要使用pnpm安装依赖并构建产物到lib目录,必须生成构建产物后插件才能正常运行。插件采用MIT许可证开放源码。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 2 warnings2 项注意
  • No license declared - all rights reserved by default; ask the author before commercial use or redistribution未声明开源许可证 —— 默认「保留所有权利」,商用或再分发前先问作者
  • Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:Dingpenghui-good/dsh-conversation-language

把 Dingpenghui-good/dsh-conversation-language 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-conversation-language

DSH 插件:对话语言切换器

功能

允许在中文和英文之间切换对话语言。切换后 AI 将使用对应语言进行思考和回复。

特性

  • 🖱️ 点击插件名即可打开详情页(含语言选择表单与保存/恢复默认按钮),通用设置不再出现重复入口
  • 🔄 动态更新 Persona(系统提示),无需重启即可生效
  • 💾 设置通过 profile 的 Cordis patch 持久化(当前 profile 的 cordis.patch.yml)
  • 🎨 匹配 DSH 原生界面样式

安装

⚠️ 安装完成后必须重启 DeepSeek Harness,插件才能生效。

方式一:使用 dsh 命令(推荐)

# 先 cd 到插件目录
cd /path/to/dsh-conversation-language
dsh plugin --profile web add .

方式二:手动安装

  1. 克隆插件到 plugins 目录:
git clone https://github.com/Dingpenghui-good/dsh-conversation-language.git ~/.dsh/plugins/dsh-conversation-language
# Windows: git clone https://github.com/Dingpenghui-good/dsh-conversation-language.git %USERPROFILE%\.dsh\plugins\dsh-conversation-language
  1. 添加到 ~/.dsh/profiles/web/package.json:
{
  "dependencies": {
    "@dingpenghui/dsh-conversation-language": "link:C:/Users/<你的用户名>/.dsh/plugins/dsh-conversation-language"
  },
  "dsh": {
    "profile": {
      "bundles": [
        // ... 其他 bundles
        "@dingpenghui/dsh-conversation-language"
      ]
    }
  }
}
  1. 运行安装:
cd ~/.dsh/profiles/web
pnpm install
  1. 重启 DeepSeek Harness。

配置

方式一:通过插件详情页

重启 DSH 后,打开 插件 → @dingpenghui/dsh-conversation-language,在详情页的语言选择表单中切换并保存。

方式二:直接修改 profile patch

编辑当前 profile 的 cordis.patch.yml(Windows:%USERPROFILE%\.dsh\profiles\web\cordis.patch.yml):

- id: tool-conversation-language
  config:
    conversationLanguage: en   # 或 zh

然后重启 DSH。

2.0.0 起设置不再写入 ~/.dsh/settings.yaml:新架构中每个插件 entry 的 Config schema 由 settings 框架投影,写入目标是当前 profile 的 Cordis patch。

使用

切换语言后,AI 将自动以对应语言进行思考和回复,并让所有面向用户可见的文本保持同一语言—— 包括工具调用的参数值(pwsh/bash 卡片上显示的 description、todo_write 的 content、 subagent 的 description、任务与作业名称等)。也可通过 get_conversation_language Tool 查询当前设置。

技术说明

项目 值
Settings Namespace tool-conversation-language(= profile entry id)
Schema { conversationLanguage: 'zh' | 'en' }(volatile,默认 zh)
默认值 zh (中文)
Persona Override system-prompt/assemble waterfall 拦截,按语言在 persona section 追加指令
Tool 注册 get_conversation_language — 查询当前语言设置

架构(DSH 0.2.0-rc.1+,v3.2.0)

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev donsetch-dsh 下一个 Next dsh-a2a →