YKennen/dsh-zh-output
DeepSeek Harness 中文输出插件:强制中文思考与输出的中文预设
Project Overview项目介绍
This is a preset collection built exclusively for DeepSeek Harness (DSH) that forces the LLM to use Chinese for all natural language thinking and output. It includes five Chinese versions of DSH presets: standard-zh, code-zh (PTC), minimal-zh, cordis-zh, and the experimental router-standard-zh. The first four presets are synced directly from the official DSH default presets, matching their structure, plugin configuration, and schema exactly, with only persona and prompts localized to Chinese. The fifth experimental preset is based on a custom task-aware routing preset, retaining all its original mechanisms and tools while adding the mandatory Chinese language constraint. All presets follow the official's update cadence, so new changes from official DSH will be automatically reflected in the Chinese versions.
The plugin is intended for Chinese-speaking users who prefer to interact with DSH entirely in Chinese. There are two installation methods, and the recommended method for regular users is to copy all the content from the presets directory in this repo to your local DSH user preset root folder. The path for this folder defaults to ~/.dsh/.agent-presets/ on macOS and Linux, and %USERPROFILE%\.dsh\.agent-presets\ on Windows if the DSH_HOME environment variable is not set. After copying, the new Chinese presets will immediately appear in DSH's mode selector without requiring a restart of the DSH service. You can even set one of the Chinese presets as your default preset for all new sessions.
This repo also includes a custom Chinese context compression engine that replaces the official hard-coded English summarization prompt with a Chinese version, while retaining all of the official's other compression behavior like threshold settings, token counting, and disk storage. There is an optional patch that changes the hard-coded English preamble of compression checkpoints to Chinese, which can be re-applied after any DSH update to keep it working. A sync script is provided to automatically rebuild the four main Chinese presets whenever the official DSH preset skeleton is updated. The entire project is released under the open-source MIT license, so anyone can use, modify, or redistribute it freely.
这是一个专为 DeepSeek Harness 打造的原生插件,提供强制模型全程使用中文思考和输出的中文预设模式。它包含对应官方标准、PTC、极简、创造四个模式的中文预设,外加一个实验性的中文路由标准自定义预设。所有中文预设均基于官方预设骨架同步构建,仅对人设、提示词进行中文化处理,结构、配置与官方完全一致。
该插件面向希望 DeepSeek Harness 全程输出中文内容的中文用户。普通用户推荐将仓库内 presets 目录下的文件复制到本地用户预设根目录,安装完成后无需重启即可在新建会话时看到中文模式,也可将中文预设设置为默认启动模式。也可作为 DSH 组合包安装,但该方式仅适用于自定义部署场景,标准部署下不生效。
插件自带一个中文上下文压缩引擎,仅替换官方压缩逻辑里的英文摘要指令,其余压缩行为和官方完全一致。仓库还提供可选补丁将压缩检查点的前言也改为中文,另有同步脚本可跟随官方预设更新自动重建中文预设。本插件采用 MIT 许可开源,用户可自由使用、修改和再分发,长期跟随官方更新同步。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-zh-output(YKennen/dsh-zh-output)
仓库:https://github.com/YKennen/dsh-zh-output
本站详情页:https://www.yhbd.top/plugins/ykennen-dsh-zh-output/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 2 · 最近提交 2026-09-02 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- 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:YKennen/dsh-zh-output
把 YKennen/dsh-zh-output 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
DeepSeek Harness 中文输出插件(dsh-zh-output)
为 DeepSeek Harness 提供「强制中文思考与输出」的中文预设(模式)。
每个中文预设都满足两条硬性约束:
- 注入给模型的第一句话是中文;
- persona 中写入「语言铁律」,强制模型的全部思考过程与所有输出使用中文(仅代码、命令、标识符、URL、文件路径、日志原文等非自然语言内容可保留原样)。
包含的模式
| 目录(预设 id) | 显示名 | 对应官方模式 |
|---|---|---|
standard-zh |
标准模式(中文) | standard |
code-zh |
PTC 模式(中文) | ptc(官方原 code,v0.1.2-alpha.4 起更名) |
minimal-zh |
极简模式(中文) | minimal |
cordis-zh |
创造模式(中文) | cordis |
router-standard-zh |
路由标准模式(中文,实验性) | router-standard(自定义) |
前四个预设以当前官方预设(dsh-0.1.2-alpha.4 内置 shipped 预设,2026-09-02 对照官方仓库 release/dsh-0.1.2-alpha.4 分支逐字节一致)为骨架整体同步:结构、插件行、schema 配置与官方完全一致,仅人设(persona)与计划模式提示词中文化、压缩引擎替换为中文版,因此官方新增/变更的插件行(如 command-goal、modelSelectionSettings、tool-presentation 的 ptc 模式、极简模式的 pwsh 持久终端行)都会自动跟上。router-standard-zh 基于自定义 router-standard(任务感知路由)实验预设:保留 router 的机制与工具(dev_router_status / dev_router_mode / dev_mode_subagent),仅把注入给模型的所有自然语言中文化并加入「语言铁律」,压缩引擎同样使用中文版 dsh-zh-compaction。
安装
方式一(推荐,任何部署都可靠):复制到用户预设目录
把 presets/ 下的目录复制到你的用户预设根目录。该目录默认是 ${DSH_HOME:-$HOME/.dsh}/.agent-presets/(Windows 下为 %DSH_HOME%\.agent-presets\,未设置 DSH_HOME 时为 %USERPROFILE%\.dsh\.agent-presets\)。
Windows PowerShell(在本仓库根目录执行):
$root = if ($env:DSH_HOME) { $env:DSH_HOME } else { Join-Path $env:USERPROFILE '.dsh' }
$dest = Join-Path $root '.agent-presets'
New-Item -ItemType Directory -Force -Path $dest | Out-Null
Copy-Item -Recurse -Force .\presets\* $dest
macOS / Linux(在本仓库根目录执行):
mkdir -p "${DSH_HOME:-$HOME/.dsh}/.agent-presets"
cp -R presets/* "${DSH_HOME:-$HOME/.dsh}/.agent-presets/"
复制后,在 Web 界面的模式选择器(或新建会话时)即可看到四个「(中文)」模式。预设名单是即时重扫的,无需重启。
四个中文预设(standard-zh / code-zh / minimal-zh / cordis-zh)均附带技能 karpathy-guidelines(源自 Andrej Karpathy 对 LLM 编码陷阱的观察:编码前思考 / 简洁优先 / 精准修改 / 目标驱动执行;MIT),在对应模式的会话中按需触发;cordis-zh 另带预设创作类技能(editing-cordis-compositions、cordis-plugin-development)。
方式二:作为 DSH 组合包(bundle)安装
本仓库同时是一个 DSH 组合包(package.json 声明了 dsh.bundle),可安装进 profile:
# 从 GitHub 安装
dsh plugin --profile <name> add github:<你的用户名>/dsh-zh-output
# 或从本地 checkout 安装
dsh plugin --profile <name> add ./dsh-zh-output
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
titanwings/distilly
YuJunZhiXue/dsh-purge
Clearailhc/clearai-dsh
yejiming/MuseAI
superdesigndev/superdesign-skill
Miaotofu01/Study-Mate