LiuJunheng/DeepSeekHarnessGreen--plugins-dsh-rules ↗★ 16
dsh-rules
用户规则注入插件 - 每次对话自动注入自定义 system prompt (类似 TRAE Work 的规则功能)
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:LiuJunheng/DeepSeekHarnessGreen#123f0e98ee3267b9da82e9af6e74c1ab93901deb&path:plugins/dsh-rules说明文档
阅读完整 README ↗使用
1. 找到规则文件
规则文件位置:
绿色版: runtime/dsh-home/rules/user-rules.md
非绿色版: ~/.dsh/rules/user-rules.md
首次安装时会自动从 default-rules.md 拷贝一份默认模板。
2. 编辑规则
直接用任意编辑器打开 user-rules.md, 写入你的规则。例如:
## 配置
在 `cordis.yml` 里可选配置:
```yaml
dsh-rules:
enabled: true # 总开关
rulesPath: '' # 空=默认 DSH_HOME/rules/user-rules.md
autoReload: true # 文件变化自动重载
weight: 0.9 # 注入权重 (越高越优先)
headerLabel: '【用户规则】' # 注入标题
failSilently: true # 读文件失败时静默
maxLength: 16000 # 规则最大字符数 (0=不限)