dsh-reply-language
开发工具 活跃维护

dsh-reply-language

CAI-MH/dsh-reply-language

可强制大模型按指定语言生成回复,默认输出简体中文,支持随时通过工具切换目标语言,无需手动调整提示词,回复语言稳定可控,适配多语言交互需求。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
4 KB
仓库大小
20 天前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:CAI-MH/dsh-reply-language
git clone https://github.com/CAI-MH/dsh-reply-language.git
git clone git@github.com:CAI-MH/dsh-reply-language.git
README.md main

dsh-reply-language

English | 中文

Force the model to reply in a specific language (Simplified Chinese by default) in DeepSeek Harness (DSH) — switchable at any time via a tool.

Features

  • Injects a system-prompt section that requires the model to write all replies in the configured language — explanations, summaries, body text and error messages included
  • Code, commands, file paths, API names and proper nouns stay in their original form
  • Ships two model tools:
    • reply_language_set — switch the required reply language on the fly (e.g. 中文, English, 日本語, Français); takes effect immediately
    • reply_language_get — show the currently required reply language

Install

dsh plugin --profile web add dsh-reply-language

Or add it to your profile's package.json dependencies and list it under dsh.profile.bundles, then restart dsh web.

How it works

The plugin registers a system-prompt section (order: 900) that pins the reply-language requirement above any language hints in user messages, until explicitly changed via reply_language_set. Host-only bundle — no client UI.

Configuration

No configuration required. The default language is Simplified Chinese; change it at runtime with the reply_language_set tool.

License

MIT