DSH Dialect Easter Egg Plugin

Introduction

DSH (DeepSeek Harness) is a plugin-based framework for agent development, where users extend functionality through plugins. During debugging or everyday conversations, the model always speaks in standard Mandarin. When you occasionally want it to pick up a local accent, you typically need to configure additional system prompts or external tools. dsh-dialect is a lightweight plugin that lets the model naturally weave in dialect expressions—such as Northeastern Chinese, Tianjin dialect, Beijing dialect, Cantonese, and more—during casual conversation, while keeping code and tool output in fully standard Mandarin.

Plugin Overview

dsh-dialect is a DSH plugin maintained by Luoqiaocong, categorized under “Fun Themes.” It injects dialect constraints at the system prompt level, combined with frequency tiers and intensity controls, so that the model naturally picks up a regional accent during chit-chat without affecting code blocks, tool results, or file contents.

Core Features

  • Dialect Selection: Supports Northeastern Chinese, Tianjin dialect, Beijing dialect, Cantonese, Hakka (Meizhou Xinning, experimental), and Random. When “Random” is selected, one dialect is drawn from the checked dialects for each session, and it remains consistent within that session.
  • Frequency Tiers: Off / 20% / 30% / 40% / 50% — five levels, color-coded as low-gray, medium-green, high-orange, and extreme-red. Frequency is a descriptive target, not an exact count.
  • Intensity Control: Light, Medium, Heavy — controls the density of colloquial expressions and the degree of sentence structure changes.
  • Context Awareness: When the previous turn contains code blocks, file writes, or dense tool results, dialect injection is skipped for the current turn entirely. Dialects only appear in conversational turns.
  • Custom Catchphrases: One per line, up to 12 phrases, each no longer than 24 characters.
  • Per-Session Quick Switch: A dialect toggle button next to the chat input box lets you switch dialects on a per-session basis without affecting global settings.
  • Reset to Default: The “Reset to Default” button in the top-right corner of the settings page clears all global settings.

Installation & Activation

Run the following command in your DSH environment to install:

# Web (recommended)
dsh plugin --profile web add dsh-dialect

# DSH Desktop
dsh plugin --profile desktop add dsh-dialect

# Or install directly from GitHub
dsh plugin --profile web add github:Luoqiaocong/dsh-dialect

After installation, go to Plugins → Add plugin, enter dsh-dialect, and click Enable now. Refresh the page, and the “Dialect Easter Egg” option will appear in Settings. If the option doesn’t show up, restart dsh web once.

Typical Usage

  1. Open Settings → Dialect Easter Egg, and select the dialect, random pool, frequency, and intensity.
  2. To temporarily switch accents, click the “🗣 Northeastern” button on the left side of the input box — this only affects the current session.
  3. In the popover, click “Restore Global Settings” to revert to global values; the “Reset to Default” button in the top-right of the settings page clears all global settings.

Approximate frequency tier ratios:

  • Off: 0%, no dialect at all
  • Low: ~20%, roughly one in every five sentences (default)
  • Medium: ~30%, roughly one in every three sentences
  • High: ~40%, four out of ten sentences carry dialect, suitable for chit-chat
  • Extreme: ~50%, half the sentences carry dialect, suitable for chit-chat

Even at the highest tier, the output won’t be entirely in dialect — code blocks, tool output, and file contents remain in standard Mandarin. If the topic explicitly references a specific region (Sichuan, Shanghai, Northeast, Guangdong, Tianjin, Beijing, etc.), the plugin doesn’t enforce restrictions; the model will gauge on its own how much local flavor to apply based on the regional context.

Compatibility & Limitations

  • DSH Version: 0.2.2-rc.1 or above (declared in dsh.engines.dsh, validated at install time).
  • Node Version: 24.9.0 or above.
  • Platforms: Web (Chrome / Edge / Firefox / Safari) and DSH Desktop.
  • Dependencies: No runtime dependencies; only accesses local host routes — no network calls, no data collection.
  • Storage: Global settings are written to ~/.dsh/dsh-dialect.json; session overrides are in-memory only.
  • Limitations: Prompt-level constraints are soft; frequency is a descriptive target; regional topics are auto-exempt; code blocks, tool output, file contents, and existing conversation history are never rewritten; child sessions also inherit global settings.

Development & License

The plugin requires no build step — after modifying lib/client.js or lib/index.js, simply refresh the page. Run npm run check to execute syntax checks and two zero-dependency smoke test suites. Licensed under MIT.

Summary

dsh-dialect provides a lightweight localization solution within the DSH ecosystem, enabling the model to naturally incorporate regional accents during casual conversation without affecting code or tool output. It’s ideal for scenarios where you want to add personality to your agents or simulate different regional conversation styles. For more details, refer to the plugin directory page or the GitHub repository.

羽毛球分组比赛记分
小程序二维码

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

Xiaoye