YKennen/dsh-zh-output

Plugin插件 Native原生 ⭐ 2 MIT Prompts & Skills提示词与技能

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 许可开源,用户可自由使用、修改和再分发,长期跟随官方更新同步。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • 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 提供「强制中文思考与输出」的中文预设(模式)。

每个中文预设都满足两条硬性约束:

  1. 注入给模型的第一句话是中文;
  2. 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 →

← 上一个 Prev dsh-move-rag 下一个 Next dsh-ui-spec →