deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
PROJECT README
DeepSeek Harness Web 全局中文模式插件:在输入框权限选择后提供一个「中」字开关,开启后向任意 preset 的 system prompt 注入中文要求。
简体中文是默认文档语言。英文版见 README.en.md。
dsh-chinese-mode 命名空间),对所有会话生效。插件市场上架后可一键安装,或命令行:
dsh plugin --profile web add github:dawnliming/dsh-chinese-mode
安装后重启 dsh web,在输入框权限选择后拨动「中」开关即可。
| 字段 | 默认 | 说明 |
|---|---|---|
enabled |
false |
总开关;关闭后完全不注入,输入框按钮隐藏。 |
replyChinese |
true |
回复区域语言:开=中文,关=英文。 |
thinkingChinese |
true |
思考区域语言:开=中文,关=英文。 |
toolsChinese |
true |
工具/界面区域语言:开=中文,关=英文。 |
textReply / textThinking / textTools |
各区域默认中文文案 | 内置中文文案(英文文案内置对应英文版);设置页不提供编辑,避免污染。 |
anchoredPresetKeywords |
liangshen, 梁神, anchored, 锚定 |
视为锚定模式的 preset 名称关键词(逗号分隔,设置页可编辑)。 |
anchoredMode |
true |
锚定 preset 下思考用英文,回复/工具按设定;关闭则无视锚定。 |
旧版单个
text字段会在升级后自动作为「回复文案」保留。
宿主侧包装 systemPrompt.assemble 并监听官方 system-prompt/assemble waterfall 事件,在组装完成后把 dsh-chinese-mode:language section 插到 persona 之前(或追加到末尾),从而保证发给模型的 system 消息始终携带中文要求。客户端渲染绑定到 dsh-chinese-mode 设置命名空间的「中」开关。
lib/index.jslib/client.js(ModuleLoader bundle,修改后需重新构建)file: 依赖):cd ~/.dsh/profiles/web
pnpm add file:../../plugins/dsh-chinese-mode
# 并在 package.json 的 dsh.profile.bundles 加入 "dsh-chinese-mode"(或让 dsh 自动 reconcile)
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。