kingzhz/dsh-global-rules ↗★ 0

dsh-global-rules

Global AGENTS-style rules as many independent markdown files, with a settings GUI. Fills the gap left by DSH's single hard-coded global AGENTS.md. 适合需要灵活管理和注入多个独立全局规则文件的用户,提供便捷的GUI配置。

パッケージ
dsh-global-rules
互換性
未検証
Cordis ピア範囲
^4.0.2
バージョン
0.1.0
ライセンス
MIT
最終更新
2026/09/21

同名パッケージの別リポジトリ

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:kingzhz/dsh-global-rules

ドキュメント

README 全文を読む ↗

配置

- id: global-rules
  name: 'dsh-global-rules'
  config:
    rulesDir: ~/.dsh/rules     # 默认 /rules
    maxBytes: 32768            # 注入文本的字节上限,默认 32768
    maxSourceBytes: 262144     # 单个规则文件的读取上限,默认 256 KiB
    order: 100                 # system-prompt 段序号,默认 100
    heading: Global rules      # 注入块的开头说明
    enabled: true              # 置 false 则完全不注入

$DSH_HOME 解析顺序:显式配置 → $DSH_HOME 环境变量 → ~/.dsh。