DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Load Agent Rules — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
L

dsh-load-agent-rules

Load Agent Rules

加载其他编码代理使用的规则文件的 DeepSeek Harness 插件(Cursor .mdc 规则、Copilot instructions、Windsurf、Cline、Kiro、Roo、GEMINI.md),并支持其 glob 作用域:始终启用的规则优先加载,匹配文件被修改时加载 glob 规则,其余规则按请求加载。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:acus9345/dsh-load-agent-rules#f59b79146d48ebaf4652ed4fafec00d7aa0954ad
README兼容性版本

兼容性与来源证明

Load Agent Rules 以 dsh-load-agent-rules 发布,当前版本为 0.2.3。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
github
Registry 更新时间
2026/10/17

版本

0.2.3stable
2026/10/17

相关插件

正在加载相关插件…

最新版
0.2.3
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
web
许可证
MIT
发布源
github
GitHub
★ 2
周下载
0
最近提交
2026/10/18
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 developer-tools 分类下经过校验的插件。

Web App@deepseek-ai/dsh-web-appdsh 浏览器界面捆绑包:位于 dsh-base 之上的 Web 补丁层,加上运行时粘合插件(提供前端 dist、Web 界面提示符、bash 运行时变量和 URL 行)Sdk App@deepseek-ai/dsh-sdk-appdsh SDK 配置包:基于 dsh-base 提供 stdio JSON-RPC 服务和进程生命周期管理Experimental Inspector@deepseek-ai/dsh-experimental-inspector用于 Host 调试和 Client Runtime 检查的实验性跨 realm CDP hubExperimental Inspector Profile@deepseek-ai/dsh-experimental-inspector-profile用于原始 Session 日志和 Chat 节点检查的可选 Web 捆绑包

README

dsh-load-agent-rules

English | 中文

Lots of repos already have rules for AI agents, just not in a format DeepSeek Harness reads. Someone on the team wrote .cursor/rules/testing.mdc, another person added .github/copilot-instructions.md, and there's a .windsurfrules from that one month everyone tried Windsurf. DSH reads AGENTS.md and CLAUDE.md, but it ignores the rest. So the agent never hears "we use Vitest, not Jest" or "never edit old migrations", even though it's written down right there in the repo.

This plugin finds those rule files and gives them to the model the way each tool meant them to be used. You don't have to convert or copy anything.

Install

dsh plugin --profile web add dsh-load-agent-rules

That's the web profile, the browser UI you start with dsh web. If you run DSH another way, use headless (scripts and CI) or acp (editor integrations) instead. Each profile keeps its own plugin list, so add it to every profile you use. It starts working in the next session. Remove it with dsh plugin --profile web remove dsh-load-agent-rules.

From a clone

To try local changes, build a tarball and install that:

git clone https://github.com/acus9345/dsh-load-agent-rules
cd dsh-load-agent-rules
npm install
npm pack
dsh plugin --profile web add ./dsh-load-agent-rules-0.2.0.tgz

Which files it reads

ToolFiles
Cursor.cursor/rules/**/*.mdc (nested ones in subfolders too), .cursorrules
GitHub Copilot.github/copilot-instructions.md, .github/instructions/*.instructions.md
Windsurf.windsurf/rules/*.md, .windsurfrules
Cline.clinerules (file or folder)
Kiro.kiro/steering/*.md
Roo Code.roo/rules/*, .roorules
Gemini CLIGEMINI.md
JetBrains Junie.junie/guidelines.md

Many repos have the same text under several names, often as a symlink. Duplicates are dropped, and so is anything identical to your AGENTS.md or CLAUDE.md, since DSH already loads those.

How rules reach the model

Each of those tools has its own idea of when a rule applies. The plugin keeps those meanings instead of dumping every rule into the prompt.

Always-on rules go into context once, at the start of the session. That covers Cursor's alwaysApply: true, Copilot's main instructions file, Windsurf always_on, Kiro inclusion: always, and plain files like .cursorrules. If a rule file changes mid-session, or context compaction drops the rules, they're sent again.

File-scoped rules wait until they're relevant. A Cursor rule with globs: "*.tsx", a Copilot file with applyTo: "src/db/**", a Kiro fileMatch or a Windsurf glob rule gets attached the first time the agent reads or edits a matching file. It's attached once, not on every touch. Rules in a nested packages/web/.cursor/rules/ folder only apply inside packages/web/.

Rules with only a description (Cursor's "agent requested", Windsurf model_decision) are listed by name and description. The model can open any of them with a small project_rule tool when it decides one is relevant. Manual-only rules show up in that list too.

So the model's first request carries something like this:

These are the project rules written for this repository. Follow them like the rest of your instructions.

<rule name=".cursor/rules/style.mdc">
Use tabs for indentation. Prefer named exports.
</rule>

More project rules are available. File-scoped rules are added automatically the first time you read or edit a matching file.
Read any of them with the `project_rule` tool when it is relevant to your task:
- .cursor/rules/react.mdc (applies to *.tsx): React conventions
- .github/instructions/db.instructions.md: Database migration conventions

Settings

The easy way: open Plugins in DSH's sidebar, click dsh-load-agent-rules, change what you want and press Save. It applies to the next tool call, no restart needed (toolName is the one setting that still needs a restart, so it is not on the page).

Or add a row like this to ~/.dsh/profiles/<profile>/cordis.patch.yml, or to ~/.dsh/cordis.patch.yml for every profile. Keys you leave out keep their defaults.

- id: load-agent-rules
  config:
    sources: [cursor, copilot, windsurf, cline, kiro, roo, gemini, junie]   # drop any you don't want
    maxBaselineBytes: 48000    # budget for always-on rules; the rest are listed instead
    maxAttachBytes: 24000      # budget for rules attached on one file touch
    maxFileBytes: 200000       # skip rule files bigger than this
    toolName: project_rule     # '' to not register the tool
    touchTools: [read, write, edit, str_replace_editor]

If your always-on rules go over the budget, the ones that don't fit are listed with a note, and the model reads them with the tool. Nothing is silently cut.

Development

npm install
npm test           # discovery and rendering unit tests
npm run test:e2e   # real dsh runs against a scripted local model, no API key needed

The install test runs dsh plugin add, which needs pnpm on your PATH.

MIT licensed. Written by acus9345. Bug reports and ideas are welcome in the issues.