DeepSeek Harness Plugin

jyz48prsbr-netizen/dsh-my-rules

Stars ★ 0 Category Workflow & Automation Added 2026-11-20

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 越大越靠前
  • 正文即注入内容

三种管理方式

  1. 直接编辑文件:用任何文本编辑器改上面的目录,保存即生效。
  2. 斜杠命令:/myrules 查看;/myrules add 标题|正文 新增;/myrules del 规则号 删除。
  3. 让 Agent 代办:对 Agent 说「把这条记成规则」,它会调用 my_rules 工具。

生效方式

启用中的规则通过宿主 systemPrompt 服务注册为一个系统提示词段(my-rules:user-rules),每个 Agent、每个会话都看得到,不占用对话轮次,也不进入历史消息。每次组装提示词时重新读取文件,所以改动无需重启。

安装

在 DSH 插件页通过本地目录安装,或通过插件市场索引安装本包。

许可

MIT

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.