Edit the host-wide global instructions (~/.dsh/AGENTS.md) from a dedicated Customize page in Settings - every session on this machine applies them.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-myrules
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:Relistencode/dsh-extension-hub#path:/packages/dsh-myrules
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time. Only install sources you trust, and pin a commit (github:owner/repo#sha).
README
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
- 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): aTypertRemoteServicegateway under themyRuleswire namespace —readGlobalRules/writeGlobalRules. The file path resolves through$DSH_HOME(config → env →~/.dsh). - Client (
lib/client.js): a standard client-modules bundle registering thesettings.sectionpage; fully localized (zh/en). - Effect: no hot-reload needed — DSH's built-in
dsh-agent-instructionswatches the user-global scope and re-injects on file changes.
License
MIT
Links
More in this category
zhu1090093659/dsh-web-ui#packages/dsh-web-ui-all★ 3362
Plugin and skin collection for the DSH Web UI: task board, Git graph, right-side panel, remote mobile UI, pet, live token stats, and a skin center.
omdsh-dev/DSH-better-sidebar★ 1600
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
ccch1mneyyy/dsh-TUI★ 1519
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
omdsh-dev/dsh-at-file★ 262
Codex-style `@file` mentions: search workspace files in the composer and attach their contents to prompts.
huiliyi37/dsh-tianshu-tui★ 190
A terminal UI (TUI) for DeepSeek Harness.
Nagi-ovo/dsh-visualize★ 159
In-conversation generative UI: the model renders interactive HTML cards into the chat stream, with streaming preview and sandboxed rendering.