DeepSeek Harness 插件

dsh-custom-instructions

类 Codex 自定义指令:在设置里编辑 ~/.dsh/AGENTS.md 全局指令,对本机所有会话、所有模型生效。Codex-style custom instructions panel for DeepSeek Harness.(英文原文)

跳到安装方式

来源信息

GitHub 仓库
lyke-61/dsh-custom-instructions
最近更新
2026年8月16日
分类
记忆
GitHub stars
0
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/lyke-61/dsh-custom-instructions
插件名:dsh-custom-instructions
作者:lyke-61

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

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.

![Custom Instructions panel in Settings](assets/screenshot.png)

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-instructions mechanism — 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__.load client 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)

1. Add the dependency:

// ~/.dsh/profiles/web/package.json
{
  "dependencies": {
    "dsh-custom-instructions": "github:lyke-61/dsh-custom-instructions"
  }
}

2. Add the plugin row (this repo ships its own cordis.patch.yml — either merge its row into your profile's cordis.patch.yml, or install via the dsh plugin command above which does it for you):

# ~/.dsh/profiles/web/cordis.patch.yml
- insert:
    - id: custom-instructions
      name: dsh-custom-instructions

3. Run pnpm install in the profile directory, then restart dsh web.

How it works

LayerFileWhat it does
Hostlib/index.jsRegisters 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
Clientlib/client.jsRegisters 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
Bundlecordis.patch.ymlThe 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 the standard preset 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