dsh-my-rules
Manifest validPersonal rule files, one Markdown file per rule, injected into the system prompt of every session; editable on disk, via /myrules, or through an Agent tool. Its HTTP routes have no DSH access check, s
dsh-my-rules
个人规则文件插件:一条规则一个 Markdown 文件,随时自由编辑、增删、停用;生效的规则会注入到每个会话的系统提示词里,所有会话都必须遵守。
规则文件
默认目录 ~/.dsh/my-rules/(可在插件行配置里改 dir)。每个 .md 文件是一条规则:
---
title: 规则标题
enabled: true
priority: 100
---
规则正文:模型必须遵守的约定。
enabled: false表示停用(保留文件,不注入)priority越大越靠前- 正文即注入内容
三种管理方式
- 直接编辑文件:用任何文本编辑器改上面的目录,保存即生效。
- 斜杠命令:
/myrules查看;/myrules add 标题|正文新增;/myrules del 规则号删除。 - 让 Agent 代办:对 Agent 说「把这条记成规则」,它会调用
my_rules工具。
生效方式
启用中的规则通过宿主 systemPrompt 服务注册为一个系统提示词段(my-rules:user-rules),每个 Agent、每个会话都看得到,不占用对话轮次,也不进入历史消息。每次组装提示词时重新读取文件,所以改动无需重启。
安装
在 DSH 插件页通过本地目录安装,或通过插件市场索引安装本包。
许可
MIT
Comments
Loading…
Similar plugins
by rj-jiangyichen
Claude Code rules.md-style rule prompts: activate rule markdown files by glob-matching the files an agent reads or edits, with prompt injection and ordering support.
★ 4
↓ 375/wk
MIT
JavaScript
Nov 13, 2026
dsh plugin --profile web add dsh-rulesby NingYuanLee
Inject a personal rules file into the DeepSeek Harness system prompt, with silent-step and repeated-action loop guards; editable from the dsh settings dialog.
★ 0
MIT
JavaScript
Oct 31, 2026
dsh plugin --profile web add dsh-personal-system-rulesby IHS470
DSH plugin: one user-owned rule list, injected into every request system prompt, so the agent has to walk the rules before answering.
★ 0
MIT
JavaScript
Oct 3, 2026
dsh plugin --profile web add dsh-global-rulesdsh的diff审核
★ 1
MIT
JavaScript
dsh plugin --profile web add dsh-diff-reviewby jilian-dsh
Rules execution engine for dsh: parses AGENTS.md, hard-blocks rule-violating tool calls, text-based B/D rule auditing, /guard command, version-guard for versioned files, and free-zone support (engine
★ 3
↓ 171/wk
MIT
JavaScript
Sep 23, 2026
dsh plugin --profile web add dsh-rule-engineby caimc21069065-prog
Turns corrections into permanent rules: explicit remember: triggers and auto-detected corrections pass a confirm bar (save globally / per project / edit / skip) and are written into a marked AGENTS.md
★ 0
MIT
TypeScript
Oct 25, 2026
dsh plugin --profile web add dsh-reflect