dsh-rules
DSH 规则插件:通过通配符匹配智能体读取或编辑的文件来激活规则提示词或 markdown 文档
AI 分析
核心用途是根据智能体操作的文件自动激活对应的开发规则(类似于 Claude Code 的 rules.md)。适合需要规范智能体代码行为的开发者。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:rj-jiangyichen/dsh-rules说明文档
阅读完整 README ↗Configuration
| Option | Default | Description |
|---|---|---|
dshHome | $DSH_HOME / ~/.dsh | Root for user rules and ~/.dsh/AGENTS.md |
projectRootMarkers | [".git"] | Marker files/dirs used to find the project root by walking up |
ruleDirNames | [".dsh/rules"] | Rule directories inside the project (relative to the project root, multiple allowed) |
includeUserRules | true | Enable ~/.dsh/rules/*.md |
includeClaudeSections | false | Parse # Path: sections |
instructionFileCandidates | ["AGENTS.md", "CLAUDE.md"] | Candidate file names for # Path: sections |
localInstructionFileCandidates | ["AGENTS.local.md", "CLAUDE.local.md"] | Per-directory candidate file names |
maxBytes | 32768 | Per-injection render budget (UTF-8 bytes); <= 0 disables the plugin |
maxSourceBytes | 1048576 | Per-rule source size cap; larger files are skipped |
maxTouchedPaths | 512 | Touched-path cap per session (FIFO eviction) |