fzy3232/dsh-chinese-language ↗★ 0

dsh-chinese-language

强制AI在长会话中持续使用简体中文回答 适合需要AI在长会话或恢复会话中严格保持中文输出的用户。

包名
dsh-chinese-language
兼容性
待验证
版本
0.2.0
许可证
MIT
最近更新
2026年9月25日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:fzy3232/dsh-chinese-language

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.

KeyDefaultMeaning
linesthe two built-in rulesSection lines, joined with newlines. Empty or non-string entries are dropped.
text-Replaces lines entirely when non-empty. Wins over lines.
orderderived, else 10300Section sort order. Anything above 10200 lands after the first-party sections.
sectionenabled, named user:chinese-languageEither false to skip the section channel, or a string naming it.
sectionNameuser:chinese-languageSection name. Must stay unique within the scope; a duplicate name throws.
contextTextthe one-line reminderReplaces the reminder text without touching the section text.
contextenabled, named user:chinese-languageEither false to skip the reminder, or a string naming it.
contextNameuser:chinese-languageReminder name, unique within the scope.
contextOrderderived, else 100Reminder 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.