fzy3232/dsh-chinese-language ↗★ 0
dsh-chinese-language
强制AI在长会话中持续使用简体中文回答 适合需要AI在长会话或恢复会话中严格保持中文输出的用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:fzy3232/dsh-chinese-language说明文档
阅读完整 README ↗Configuration
Every field is optional. Unknown keys are ignored, and an unusable value falls back to that key's default instead of failing the loader entry.
| Key | Default | Meaning |
|---|---|---|
lines | the two built-in rules | Section lines, joined with newlines. Empty or non-string entries are dropped. |
text | - | Replaces lines entirely when non-empty. Wins over lines. |
order | derived, else 10300 | Section sort order. Anything above 10200 lands after the first-party sections. |
section | enabled, named user:chinese-language | Either false to skip the section channel, or a string naming it. |
sectionName | user:chinese-language | Section name. Must stay unique within the scope; a duplicate name throws. |
contextText | the one-line reminder | Replaces the reminder text without touching the section text. |
context | enabled, named user:chinese-language | Either false to skip the reminder, or a string naming it. |
contextName | user:chinese-language | Reminder name, unique within the scope. |
contextOrder | derived, else 100 | Reminder sort order; lower values print earlier in the snapshot. |
On harnesses that expose getSectionOrder() / getContextOrder(), the two orders are derived from DEPLOYMENT_PERSONA_SUFFIX and SANDBOX_POLICY, so they still track the registry if those slots move. Older harnesses use the constants.
Example, keeping both channels but tightening the wording:
- insert:
- id: dsh-chinese-language
name: dsh-chinese-language
config:
lines:
- 始终使用简体中文回答。
- 代码、命令和报错原文保留原文。
contextText: 提醒:用简体中文。
A patch replaces the targeted row's whole config, so restate every key the row needs whenever an override adds one.