插件目录 / Developer / dsh-plugin-workspace-rules
dsh-plugin-workspace-rules
已验证 · 实测可装 youjiaqi421
功能简介
将Cursor、Gemini CLI和GitHub Copilot工作区指令加载到DeepSeek Harness中。
可用 — 实测通过,早期项目
将Cursor、Gemini CLI和GitHub Copilot工作区指令加载到DeepSeek Harness中。 实测能干净安装、正常启动。早期项目,但功能可用。
「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
dsh-plugin-workspace-rules
English | 锟斤拷锟斤拷
Load existing workspace instructions from Cursor, Gemini CLI, and GitHub Copilot into DeepSeek Harness.
The plugin reads these files from the workspace root, in order:
.cursorrulesGEMINI.md.github/copilot-instructions.md
Missing and empty files are ignored. Existing files are joined into one ordered system-prompt section and re-read before each model request, so edits apply without restarting Harness. Literal {{...}} text is preserved and is not interpreted as a Harness prompt variable.
Install from GitHub
Until an npm release is available, install the repository into a Harness profile:
dsh plugin --profile web add github:youjiaqi421/dsh-plugin-workspace-rules
pnpm 10 and newer block git dependency build scripts by default. If installation asks you to approve the package build, add the exact package key it reports to the profile's pnpm-workspace.yaml:
allowBuilds:
dsh-plugin-workspace-rules: true
Then repeat the install command. Allowing the build runs this repository's prepare script on your machine; review and pin the source commit when using it in a trusted setup.
Configure
The installed bundle works with no configuration. To override it, edit the profile's cordis.patch.yml:
- id: workspace-rules
config:
root: .
files:
- .cursorrules
- GEMINI.md
- .github/copilot-instructions.md
- docs/agent-rules.md
maxFileBytes: 65536
maxTotalBytes: 131072
order: 20
root is resolved from the directory where dsh starts. Every file path must be relative and remain inside that root. Duplicate paths, directories, invalid UTF-8, unreadable files, and size-limit violations fail loudly so the agent never runs with silently incomplete instructions.
Behavior
- File order is configuration order.
- Missing files and whitespace-only files contribute nothing.
- Files are decoded as strict UTF-8; a leading byte-order mark is removed.
maxFileByteslimits each source file.maxTotalByteslimits the complete rendered Markdown, including headings.- The prompt section defaults to order
20, after the deployment persona and before tool guidance. - Rule text is included in the request's recorded system prompt, preserving Harness replay behavior.
Develop
Requires Node.js ^22.19.0 || >=24 and pnpm.
pnpm install
pnpm run check
Install the checkout into a local profile from this directory:
dsh plugin --profile web add .
License
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-plugin-workspace-rules」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:youjiaqi421/dsh-plugin-workspace-rules Headless(CLI)profile:
dsh plugin --profile headless add github:youjiaqi421/dsh-plugin-workspace-rules 实测报告
验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。
使用场景
扩展 agent 的编码能力面——给它一个新工具、工作流或集成,让它接手以前做不了的开发任务。
适合谁
想让 dsh 在真实代码库上像队友一样干活的开发者——能改、能跑、能验证,而不只是回答问题。
二次开发建议
工具/命令面就是缝:暴露更多 SDK 能力、加更聪明的上下文接线,或收紧改代码与验证之间的循环。