npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

dsh-zh-reasoning

v1.1.0

Published

DeepSeek Harness 插件:让模型的思考(reasoning)与最终回答默认使用简体中文。A Chinese-first plugin that makes DeepSeek Harness reason and answer in Simplified Chinese by default.

Readme

dsh-zh-reasoning

npm version License: Apache-2.0 GitHub stars

让 DeepSeek Harness 的思考(reasoning)与最终回答默认使用简体中文的中文插件。

基于 imlishiyuan/deepseek-harness-zh-cn(Apache-2.0)修改: 补上标准插件结构(cordis.patch.yml bundle 补丁层 + dsh.bundle.patch 清单字段 + files 打包), 并改名为 dsh-zh-reasoning,使插件可用标准方式挂载、发布与更新。

功能特性

  • 在模型每个会话的第一步(agent/pre-step)注入 <system-reminder> 指令,要求:
    • 思考(reasoning)与最终回答使用简体中文;
    • 计划、工具调用、总结、代码注释同样使用中文;
    • 仅代码、命令、文件路径、变量名、API 名称等保留英文;
    • 除非用户明确要求其他语言,否则规则优先。
  • 同时影响模型的最终回答与思维链(reasoning)。
  • 标准插件结构,支持 dsh plugin 挂载、npm 发布与更新。
  • 兼容梁神模式(dsh-liangshen agent preset):梁神模式 phase 1 会按白名单剥离 agent/pre-step 注入消息,插件检测到梁神模式会话后自动改为把中文指令追加进 persona section——phase 1 的 prompt 过滤器只保留 persona,因此指令在锚定期与晋升后都生效,且不会重复注入。

说明:harness 与 DeepSeek API 没有强制推理语言的开关;全中文提示词能最大化概率,但不保证 100%。

兼容性

| 本插件版本 | 依赖的 DSH 运行时 | @deepseek-ai/dsh-llm | | --- | --- | --- | | 1.0.0 | 0.0.1-rc.x(旧版) | 0.0.1-rc.1 | | 1.1.0 | 0.1.2-rc.x(新版) | ^0.1.2-rc.1 |

1.1.0 起适配新版 DSH:agent/pre-step 处理器改为展开 decision 再追加消息, 保留 startsRequestSeries 等下游字段,避免与 goal-round-driver / cordis 工具等插件冲突。

安装 / 挂载

方式一:npm 安装(推荐)

dsh plugin --profile <name> add dsh-zh-reasoning

方式二:从 GitHub 直接安装

dsh plugin --profile <name> add "dsh-zh-reasoning@git+https://github.com/zhy201810576/dsh-zh-reasoning.git"

方式三:本地开发(file: 依赖) 在 profile 的 package.json 中添加依赖并加入 bundles:

{
  "dependencies": { "dsh-zh-reasoning": "file:../dsh-zh-reasoning" },
  "dsh": { "profile": { "bundles": [ "...", "dsh-zh-reasoning" ] } }
}

然后在该 profile 目录执行 pnpm install 并重启 dsh web。

方式四:直接本地挂载(无需安装) 在 ~/.dsh/profiles/<name>/cordis.patch.yml 中:

- insert:
    - id: dsh-zh
      name: 'file:///绝对路径/dsh-zh-reasoning/lib/index.js'

验证

dsh --profile <name> --dump-config | findstr dsh-zh

看到 dsh-zh 行即表示已挂载。之后新建会话,模型应以简体中文思考与回答。

目录结构

dsh-zh-reasoning/
├── lib/
│   └── index.js        # 插件入口:pre-step 注入中文 system-reminder(梁神模式下改追加 persona)
├── cordis.patch.yml    # bundle 补丁层:声明插件挂载行
├── package.json        # npm 包清单(含 dsh.bundle.patch 字段)
├── pnpm-lock.yaml      # 依赖锁定文件
├── LICENSE             # Apache-2.0 许可证
└── README.md

开发

pnpm install        # 安装 @deepseek-ai/dsh-llm(仓库自包含)
node -e "import('file:///绝对路径/dsh-zh-reasoning/lib/index.js').then(m=>console.log(m.name))"

协议

Apache-2.0,保留原作者版权声明。