tdsh-emoji: Inserting Unicode Emojis Contextually in DSH Responses

Preface

DeepSeek Harness (dsh) responses are plain text by default. If you want the model to insert standard emojis at appropriate positions, the common approach is to modify the system prompt or post-process the entire output—either fixing positions at the end of sentences or competing with kaomoji-style plugins for the same sentence. Maintainer TianJie52009’s tdsh-emoji takes the dsh plugin route: it injects “mood → emoji” whitelist rules before prompt assembly, letting the model place emojis built into iOS / Windows / Android alongside the most fitting content, and coexisting with dsh-kaomoji by splitting them into separate sentences. Below is an introduction to its positioning, capabilities, and installation/configuration methods.

What is this

tdsh-emoji is a prompt-injection plugin for dsh (npm package name tdsh-emoji, version 0.2.0 in current documentation, license MIT). It does not depend on third-party runtime, using only dsh’s built-in systemPrompt, webServer, and Node standard library.

In one sentence: automatically adds widely-supported Unicode emojis to dsh’s responses and coexists with dsh-kaomoji.

The vocabulary only includes emojis universally built into various platforms, avoiding skin-tone modifiers, ZWJ sequences, and new-version emojis, so older devices can display them properly.

Core Features

Content-fitting and Placement

  • inline (default): emojis are placed next to the most matching words, phrases, or sentences, and can fall within a sentence.
  • end: uniformly placed at the end of the response.

Modes and Quantity

Config Item Meaning (from original documentation)
mode: off Disabled
mode: auto (default) Conversational replies almost always include emojis
mode: frequent Every conversational reply includes emojis (except pure code / formal deliverables)
maxPerTurn Maximum emojis per reply, range 1–10, default 3; under frequent mode they are distributed across different sentences according to the count

Coexistence with dsh-kaomoji

Both plugins adopt the “sentence-fitting” insertion approach. tdsh-emoji requires in its rules: emojis and kaomoji must not appear in the same sentence or same line, so the model will assign them to different sentences. In the Web UI under “Settings → General Settings”, the “Emoji (tdsh-emoji)” card is placed next to “Kaomoji (dsh-kaomoji)” (order 30 / 31).

Visual Configuration and Remote Modification

The settings card supports mode, placement, per-reply limit, and additional prompt; saving takes effect immediately without restarting the Host. Settings are read/written via the same-origin route POST /tdsh-emoji-settings and persisted to ~/.dsh/tdsh-emoji.json; pages opened via Tailscale, LAN, or SSH port forwarding can also save.

How it Works (Brief)

  1. At startup, registers the system prompt segment tdsh-emoji:guidance (order 177; dsh-kaomoji is 176).
  2. Each time the prompt is assembled, injects: mode and placement rules, per-reply limit, emoji whitelist, and the coexistence rule of not sharing a sentence with kaomoji.
  3. After the Host writes settings, the prompt segment is updated immediately and takes effect in the next reply.

Installation and Activation

Install under the web profile (the official command from the documentation). After installation, restart the Web Host, then go to “Settings → General Settings” to confirm the Emoji card appears.

cd "$env:USERPROFILE\.dsh\profiles\web"

# npm (recommended)
dsh plugin --profile web add tdsh-emoji

# Or install directly from GitHub
dsh plugin --profile web add github:TianJie52009/Tdsh-emoji

Linux / macOS users should replace $env:USERPROFILE with the local dsh profile directory (usually ~/.dsh/profiles/web), keeping the install subcommand and --profile web consistent.

Typical Usage and Configuration

Web Interface

Default: mode: auto, placement: inline, maxPerTurn: 3. Simply change the mode, placement, limit, or fill in additional prompts in the general settings card.

Overriding Defaults in the Profile

Deployment-level defaults can be written in the profile’s cordis.patch.yml:

- id: tdsh-emoji
  config:
    mode: frequent     # off | auto | frequent
    placement: inline  # inline | end
    maxPerTurn: 5      # 1-10
    customPrompt: "正式场景克制一点,优先用「鼓励 / 感谢」类 emoji"
Config Item Type Default Description
mode 'off' \| 'auto' \| 'frequent' 'auto' See mode descriptions above
placement 'inline' \| 'end' 'inline' Inline fitting or response end
maxPerTurn number (1–10) 3 Maximum emojis per reply
customPrompt string '' Additional style instructions; cannot change mode, whitelist, or limit
settingsFile string ~/.dsh/tdsh-emoji.json (Advanced) User settings persistence path

Use Cases and Notes

Who it’s for: Developers who want the model to naturally intersperse standard emojis in dsh Web conversations without clashing with the kaomoji plugin; scenarios requiring either inline or end-of-sentence placement strategies, with visual configuration changes.

Compatibility (from original documentation): Compatible with dsh 0.1.x and 0.2.x; peer range is ^0.2.0-rc.2 || ^0.1.0-rc.7. dsh 0.2 validates plugin peers at startup; non-compliant bundles will be skipped (log dsh: skipping profile bundle ...). The maintainer states that mounting, settings routes, and client startup have been verified on a real web profile of dsh 0.2.0-rc.2. Node engine requirement: ^22.19.0 || >=24.0.0.

Security and Trust: The plugin runs with the current dsh process permissions, modifies the system prompt, and exposes a settings route. Before installation, please read the GitHub repository source code and MIT license yourself; the README notes that the repository is auto-generated by Codex and has not been manually reviewed line by line—please test yourself before use.

Ecosystem Note: The DSH community plugin directory is displayed on platforms such as SkillHub; it has no official affiliation with DeepSeek / High-Flyer and is not an official app store.

Conclusion

tdsh-emoji embeds Unicode emojis into dsh responses through prompt whitelists and placement rules, and coexists with dsh-kaomoji by splitting them into separate sentences; configuration can be done in Web general settings or cordis.patch.yml. For more details, see the community directory page and repository README.

  • Directory page: https://www.skillhub.cn/plugins/TianJie52009/Tdsh-emoji
  • GitHub: https://github.com/TianJie52009/Tdsh-emoji
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye