dshx-language-mirror
开发工具 活跃维护

dshx-language-mirror

callaumyan-design/dshx-language-mirror

自动识别用户每轮对话的最新语言,所有回复和最终报告都跟随该语言输出,无需手动指定,确保多语言场景下交流自然连贯。

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

dshx-language-mirror

Makes the agent always reply — including final reports and summaries — in the language of the user's latest message.

让 AI 的回复(尤其是最终报告和总结)始终使用你最近一条消息的语言。中文提问就中文回答,中英混排就照样混排,中途换语言立刻跟着换;代码、命令、路径、标识符保持原文。

原理:通过 DSH 的 systemPrompt 服务注册一段常驻系统提示,每次请求都带上,不依赖技能是否被触发;不改 agent 主循环,卸载即移除。

配置(cordis.patch.yml)

字段 默认 说明
enabled true 是否启用
order 5 系统提示段落排序,越小越靠前
extra 空 追加到默认规则后的说明
text 空 完全替换默认规则

安装

# Web profile
dsh plugin --profile web add github:callaumyan-design/dshx-language-mirror
# Desktop(用 DSH Desktop 自带的 dsh 命令,先从托盘完全退出 Desktop)
dsh plugin --profile desktop add github:callaumyan-design/dshx-language-mirror

安装后重启 DSH。卸载:dsh plugin --profile <profile> remove dshx-language-mirror。

兼容性

在 DeepSeek Harness 0.2.0-rc.2(desktop / web profile)上开发和使用。纯 JavaScript,无构建步骤,无安装脚本。

License

MIT