插件目录 / Developer / dsh-custom-instructions
dsh-custom-instructions
已验证 · 实测可装 lyke-61
功能简介
Codex-style custom instructions for DeepSeek Harness: edit ~/.dsh/AGENTS.md from a settings panel - applies to every chat and model. 类 Codex 自定义指令:在设置里编辑全局指令,所有会话所有模型生效。
可用 — 实测通过,早期项目
Codex-style custom instructions for DeepSeek Harness: edit ~/.dsh/AGENTS.md from a settings panel - applies to every chat and model. 类 Codex 自定义指令:在设置里编辑全局指令,所有会话所有模型生效。 实测能干净安装、正常启动。早期项目,但功能可用。
「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
dsh-custom-instructions
Codex-style custom instructions for DeepSeek Harness: edit a global instruction from the settings panel that applies to every conversation on this machine, across all models.
Just like Codex's global AGENTS.md or ChatGPT's Custom Instructions, the notes and context you write in the "Custom Instructions" panel are automatically carried into every future conversation — no need to repeat yourself in every message.

Features
- Codex-style custom instructions: Settings → General → "Custom Instructions", edits
~/.dsh/AGENTS.md, saved straight to disk. - Applies to every session and every model: built on DSH's built-in
dsh-agent-instructionsmechanism — new conversations pick it up from the first message; the current conversation picks it up after the next file operation. - WYSIWYG: monospace editor mirrors the file content; saving gives immediate success/failure feedback.
- Zero build: hand-written
window.__ModuleLoader__.loadclient bundle + pure Node ESM host — no build authorization needed to install.
Install
From GitHub (this repo)
dsh plugin --profile web add github:lyke-61/dsh-custom-instructions
Then restart dsh web once so the bundle layer loads.
Manual (edit profile files)
- Add the dependency:
// ~/.dsh/profiles/web/package.json
{
"dependencies": {
"dsh-custom-instructions": "github:lyke-61/dsh-custom-instructions"
}
}
- Add the plugin row (this repo ships its own
cordis.patch.yml— either merge its row into your profile'scordis.patch.yml, or install via thedsh plugincommand above which does it for you):
# ~/.dsh/profiles/web/cordis.patch.yml
- insert:
- id: custom-instructions
name: dsh-custom-instructions
- Run
pnpm installin the profile directory, then restartdsh web.
How it works
| Layer | File | What it does |
|---|---|---|
| Host | lib/index.js |
Registers GET/POST /custom-instructions routes on the webServer to read/write ~/.dsh/AGENTS.md; the path is resolved via @deepseek-ai/dsh-home-paths — the same file dsh-agent-instructions reads |
| Client | lib/client.js |
Registers the "Custom Instructions" panel in the General settings slot (settings.general.item, id custom-instructions, right below "Permissions"); loads content via fetch on open, saves via POST |
| Bundle | cordis.patch.yml |
The loader row that mounts both halves |
Effect mechanism: the panel edits the very global-instruction file dsh-agent-instructions injects into every session, so the plugin needs no hot-reload of its own — new sessions see it immediately; the current session picks it up after the next read / write / edit file operation.
Compatibility
- DeepSeek Harness
0.1.0-rc.6(web profile). - Depends on the built-in
dsh-agent-instructions(shipped with thestandardpreset by default); if your profile disables it, the instructions won't be injected.
Development
The client bundle is hand-written in the exact wire format (window.__ModuleLoader__.load({ id, factory })), so no build step is required:
node --check lib/index.js
node --check lib/client.js
License
MIT
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-custom-instructions」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:lyke-61/dsh-custom-instructions Headless(CLI)profile:
dsh plugin --profile headless add github:lyke-61/dsh-custom-instructions 实测报告
验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。