Personal 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, so a web page open in your browser could call them.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:jyz48prsbr-netizen/dsh-my-rules
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
个人规则文件插件:一条规则一个 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
Links
More in this category
loopx-project/loopx#dsh-loopx-plugin★ 6729
LoopX, a provider-neutral, local-first state kernel and control plane for long-horizon agents: keeps Goal, Todo, gate, evidence, quota, recovery, and handoff state above DeepSeek Harness, while the plugin bootstraps the CLI and skills, admits bounded same-session continuation, and adds a loopback GoalBar for the exact bound loop. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.
Q00/ouroboros#integrations/dsh-plugin★ 6387
Config-only bundle that mounts Ouroboros through the DSH MCP client, exposing 36 interview, Seed, execution, evaluation, and evolution workflow tools in DSH.
chuspeeism/dashi-taskboard#deepseek-harness★ 3513
Embeds the active installed Codex Taskboard runtime in the DeepSeek Harness sidebar, using its launcher runtime descriptor instead of a fixed port.
NanmiCoder/dsh-agent-teams★ 3049
AgentTeams multi-agent teams.
EthanYoQ/AI-Novel-Writer#dsh-ai-novel-writer★ 2752
Installs a dedicated AI novel-writing preset and workbench: revisioned local project assets, a compact side drawer, and native approval-gated single-file changes.
shanliuling/dsh-image-gen★ 1655
Native conversational image generation for DeepSeek Harness: ask the agent to create an image, and it handles generation and keeps the result directly in the conversation.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.