Development & Runtime

dsh-myrules

Relistencode/dsh-extension-hub/packages/dsh-myrules · ★ 8

Relistencode

Edit the host-wide global instructions (~/.dsh/AGENTS.md) from a dedicated Customize page in Settings - every session on this machine applies them.

License
MIT
Added
2026-08-21
Maintenance
active
Install kind
github

No manifest check is available; listing does not imply compatibility or security review.

安装

dsh plugin --profile web add github:Relistencode/dsh-extension-hub#path:/packages/dsh-myrules

GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试

For install and environment setup, plus plugin development tutorials, see DSH community docs ↗

README

Source README · body: en · Read Chinese README

Table of contents
  1. Install
  2. Usage
  3. How it works
  4. License

My Rules for DeepSeek Harness (DSH): edit your host-wide global instructions from the DSH Web settings page. A "Customize" section (个性化) provides a multi-line editor for $DSH_HOME/AGENTS.md — the file dsh-agent-instructions injects into every session on this machine as a durable instruction block.

Edit once, save — new sessions apply it immediately; the current session picks it up after its next file operation. No restart needed.

Install

dsh plugin --profile web add dsh-myrules@0.1.1

Restart dsh web, then open Settings → Customize.

Usage

  1. Open Settings → Customize (个性化)
  2. Edit your custom instructions (Markdown, one or many lines)
  3. Click Save

Saving is straightforward:

  • an empty save deletes the file (clearing the instructions) — confirm first
  • content beyond the 64 KB instruction budget is saved with a warning (the renderer omits broader files before truncating the most specific one)

How it works

  • Host (lib/host.js): a TypertRemoteService gateway under the myRules wire namespace — readGlobalRules / writeGlobalRules. The file path resolves through $DSH_HOME (config → env → ~/.dsh).
  • Client (lib/client.js): a standard client-modules bundle registering the settings.section page; fully localized (zh/en).
  • Effect: no hot-reload needed — DSH's built-in dsh-agent-instructions watches the user-global scope and re-injects on file changes.

License

MIT