Preface¶
When doing daily conversations or agent development on the DeepSeek Harness (DSH) Web client, a common requirement is to keep the opening and closing of each assistant reply consistent—either by repeatedly writing rules in the system prompt, or by manually pasting the same sentence every time; visual consistency such as font size, color, and animation effects is even harder to achieve with prompts alone. The DSH ecosystem extends capabilities on the principle of “everything is a plugin”; the dsh-greet-signoff plugin on the community directory SkillHub (maintainer weifa860504-droid) is aimed at the Web client, turning opening/closing copy and styles into configurable items, and additionally persisting a local session cost ledger and a handoff summary when switching sessions. Since 1.23.0, the plugin no longer draws its own context-usage card above the input box—for usage rates, please use the official DSH context ring inside the input box; this plugin focuses on opening/closing lines, the ledger, and HANDOFF.
What Is This¶
dsh-greet-signoff is a DSH Web plugin (distributed as an npm package / GitHub repository, MIT license, current package version 1.24.0, declared compatible with DSH 0.1.5-rc.1). It renders a greeting and a sign-off on the first and last lines of each assistant reply according to the configuration, writes the rules into the system prompt section, and applies styles on the browser side via text matching; it can also read the local usage file for cost accounting, and write model-output handoff blocks into the workspace HANDOFF.md. Configuration defaults to config/greet-signoff.json in the plugin directory, and can also be located via the environment variable DSH_GREET_SIGNOFF_HOME; after saving changes, they take effect on the next reply (except for composite-layer installation changes, see below).
Core Features¶
Fixed Greeting and Sign-off¶
- The first line of each reply body is the greeting line and the last line is the sign-off line; the middle content is unaffected. When a single reply is split into multiple chunks by tool calls, the two lines still get styles assigned by copy identity.
- Settings page left menu Greeting & Sign-off: greeting/closing line controls, autosave (~1.2 s) and a “Save” button; since v1.24.0 the left panel keeps a permanent preview—click a line to edit that line—and the right panel contains the parameter table and search.
- Two independent master switches (iOS-style toggles): after turning off “Greeting” or “Sign-off”, the corresponding rule is no longer written into the prompt section, taking effect on the next reply; the copy and style configurations are retained. In the config, only
falsemeans off.
Line-level Style and Copy Capabilities¶
Greeting and sign-off each have a set of 19 configurable fields (e.g. text, fontSize, color / colorDark, animation, shape, fill, borderWidth, shadow, etc.; invalid values fall back to defaults). The default greeting copy example is 👋 你好,我是 DeepSeek Harness 助手。, and the sign-off is ✅ 以上,随时叫我。.
- One-click appearance: 16 presets (Fortune Gold, Minimal Gray, Neon Cyber, etc.), changing only appearance without touching copy or images.
- Animations: 30 overall animations + 4 per-character animations; the settings page can switch between “Common” / “All” lists.
- Copy pool (
pool): pick a sentence from the pool randomly or in sequence each turn; scenes (scenes) store whole settings snapshots; bindings can override copy/styles by workspace directory prefix. - Dynamic variables: fixed lines can use
{date}{weekday}{daypart}{time}{model}{count}{elapsed}{lastelapsed}{tokens}{lasttokens}, etc., filled with real values server-side each turn. - Match mode (
matchMode):exact/ defaultloose/fuzzy, used by the browser to half-apply style classes to corresponding lines; optionalonlyAssistant: trueapplies styles only to assistant messages. - Light/dark mode: combines the page theme and background brightness, written into
<html data-gs-dark>; dark-mode colors can be configured separately.
Cost Ledger¶
The settings page shows accounts for the current session, today, the last 7 days, and the most expensive sessions; pricing is defined in the global pricing (default uncached input / cache-hit input / output, configurable in USD per million tokens). Data is read-only from the local machine dsh-usage/usage-ledger.json and session_projcache; no network access, no external transmission, no database created. API: GET /api/greet-signoff/cost?sessionId=<id>&days=7.
Handoff Summary¶
Summary blocks the model outputs in the reply body wrapped in <<<HANDOFF>>>…<<<END>>> can be persisted to the workspace root HANDOFF.md via POST /api/greet-signoff/handoff (if it already exists, a .bak backup is made first); on a new session, the host side prompt reminds to read that file first, facilitating context continuation across sessions.
Diagnostics, Connection Self-healing and Export¶
- Settings page “Diagnostics → Run self-check”: checks configuration, copy, style application, connection self-healing, and both-side versions in one pass;
GET /api/greet-signoff/rule-textlets you view the rule text currently written into the model. - Connection self-healing: when
dsh webrestarts and the token changes, causing the page to show “Reconnecting…”, if an exception lasts for 30 consecutive seconds while the root path still returns 200 and the input box has no draft, it auto-reloads once; if the service is unavailable it does nothing; at most 3 times per hour per tab, with intervals ≥60 seconds. - The footer supports exporting/importing JSON configuration and “Undo last save”.
With the Official Context Ring and Other Plugins¶
DSH Web has a built-in context-usage ring (inside the input box, to the left of the send button), consistent with the contextPressure projection this plugin once used. Since 1.23.0, the plugin has removed the self-drawn context card above the input box and related APIs (GET /api/greet-signoff/session, GET /api/greet-signoff/context); use the official ring for usage rates.
- With
dsh-context: this plugin does not collect, persist, or open a context panel; they can coexist. - With
dsh-gold-capsule: mutually exclusive—the latter uses!importantto render inline code within headings, which would override this plugin’s fixed-line styles; keep fixed lines as a single line of plain text and choose one or the other.
Installation and Activation¶
The plugin is installed as an npm package or git repository unit; after installation, dsh web must be restarted (composite-layer changes are not hot-loaded). Node engine requirement >=22.19.0 (see package.json).
# Install from GitHub (the repo name is fixed as dsh-greet-signoff; replace the username with your own)
dsh plugin --profile web add github:weifa860504-droid/dsh-greet-signoff
# Or install from a local directory (for development/debugging)
dsh plugin --profile web add <absolute path of the local package directory>
After restarting, open any session: the first and last lines of the reply should show the default styles; Settings → Greeting & Sign-off should show the configuration page.
Typical Usage¶
- Change copy and styles: open Settings → Greeting & Sign-off, edit the greeting/closing
textor click a one-click appearance; confirm in the left preview and wait for autosave or click “Save”. The next assistant reply will carry the new first and last lines. - Switch by scene: configure “Scene” snapshots (work/life, etc.) in the parameter table, or configure
bindingsto automatically switch copy based on workspace directory prefixes. - Copy pool: enable
pool, setmodetosequenceorrandom, maintaingreeting/signOffarrays, and automatically rotate sentences each turn. - Check costs: view in the “Cost” related parameters on the settings page; requires the local DSH usage ledger file to exist.
- Handoff: have the model output
<<<HANDOFF>>>…<<<END>>>in its reply; the plugin interface persists it toHANDOFF.md, and the new session reads that file before continuing. - Manually edit configuration (optional): directly edit
config/greet-signoff.jsonor read/write the whole configuration viaGET/POST /api/greet-signoff; when editing manually, the master switches only accept booleanfalseas off.
Use Cases and Notes¶
Suitable for: developers and individual users who want to unify the assistant’s opening/closing copy and visuals in DSH Web conversations, need a local read-only cost summary, or rely on HANDOFF.md for session switching.
Notes:
- The plugin runs under the permissions of the current DSH process and reads/writes configuration in the plugin directory (and optionally
DSH_GREET_SIGNOFF_HOME), reads the usage file, and writes to the workspaceHANDOFF.md; before installing, please review the GitHub source and the MIT license, and assess the trust boundary yourself. - The SkillHub directory page is a community site with no official affiliation with DeepSeek / QuantumBase.
- If the directory introduction still describes “a six-cell budget navigation above the input box”, it is inconsistent with the 1.23.0 changes in the repository README; the repository documentation prevails: context display has been handed over to the official DSH ring.
Conclusion¶
dsh-greet-signoff extracts “fixed opening/closing each turn + configurable styles” out of prompt drafts into a settings page linked with a Prompt section, and adds a local cost ledger and HANDOFF.md handoff; configuration changes take effect on the next turn. To learn more and install: