New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

dsh-myrules

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dsh-myrules

My Rules for DeepSeek Harness (DSH): edit your host-wide global instructions (~/.dsh/AGENTS.md) from the DSH Web settings page — the custom instructions apply to every chat on this machine. 在 DSH Web 设置页编辑此主机全局指令(~/.dsh/AGENTS.md)的插件——自定义指令适用于此主机上所有聊天。

latest
Source
npmnpm
Version
0.1.1
Version published
Weekly downloads
239
-10.49%
Maintainers
1
Weekly downloads
 
Created
Source

dsh-myrules

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

Restart dsh web, then open Settings → Customize.

Usage

  • Open Settings → Customize (个性化)
  • Edit your custom instructions (Markdown, one or many lines)
  • 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

Keywords

dsh

FAQs

Package last updated on 16 Aug 2026

Related posts