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 peer 범위
^4.0.2
버전
0.1.0
라이선스
MIT
최근 업데이트
2026. 9. 21.

같은 패키지 이름의 다른 저장소

설치

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

配置

- 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。