dsh-shuorenhua: One-Click Rewrite of AI Responses into Plain Language in DSH

Preface

When developing dialogues or agents in DeepSeek Harness (DSH), model outputs often follow a fixed pattern: opening pleasantries, closing remarks like “feel free to ask if you have questions,” bureaucratic jargon, and mechanical structures like “First… Second… In summary.” This content offers no value for reading code or facts and bloats the context window. Manually editing every reply is costly and risks accidentally altering code blocks or numbers.

dsh-shuorenhua (Speak Human Language) is a DSH-native plugin released by community maintainer neuneed. It falls under the category of model inference capabilities: it performs a targeted rewrite on the LLM configured in the host, condensing answers into more straightforward expressions while preserving code, formulas, and specific metrics. The following section introduces its positioning, capabilities, and installation usage.

What is this

dsh-shuorenhua targets DeepSeek Harness full-stack scenarios: in Web chat, it adds a “Speak Human Language” entry to the action bar of every assistant message. Clicking it streams the polished result via same-origin SSE. On the Agent side, it registers the shuorenhua_simplify tool for autonomous agents to call.

The project is hosted on GitHub (neuneed/dsh-shuorenhua) and is licensed under MIT; the current package version is 0.1.0. The community plugin directory page is available at the SkillHub entry. The DSH ecosystem emphasizes “everything is a plugin”; the directory site has no official affiliation with DeepSeek or Quantilla (High-Flyer). Please review the source code and license yourself before installing.

Core Features

Web Interaction

The plugin utilizes DSH client slots to embed a button in the assistant message action bar (the README states it is located between the copy and branch buttons, with order: 12). Clicking it pops up a dialog that streams the polished text in a typewriter style, displays the original word count, polished word count, and reduction ratio, and supports one-click copying. It can be closed by pressing ESC or clicking the mask.

Rewriting Rules (Explicitly stated in README)

The polishing philosophy aligns with community projects like MrGeDiao/shuorenhua and Humanizer-zh, mainly including:

  1. De-nominalization: Change expressions like “completed the adjustment of…” to direct verb phrases.
  2. De-repetition: Remove restatements that completely overlap semantically with the preceding text.
  3. De-wrapping: Remove transitional clichés like “In short,” “It is worth noting,” and “In summary.”

During rewriting, placeholders are used to protect fenced code blocks, $$...$$ formulas, inline code, and links. The README emphasizes that specific numbers must not be changed into vague generalizations (e.g., retaining expressions like “reduced from 24 times to 7 times”).

Dual Track: Host and Agent

  • Host: Reuses DSH’s ctx.llm and existing WebServer to provide SSE routes such as /shuorenhua/stream on the same port without opening additional ports.
  • Agent Tool: Registers shuorenhua_simplify to the Agent by default. The mechanism is “LLM streaming generation priority + offline rule engine fallback.” The README explains that fallback rewriting is still available even if the host is not configured with a large model.
  • Cache: By default, writes the polished result of each message to Host storage (ctx.storageDomain). Reopening the same message reads directly from the cache to avoid duplicate model calls. This can be disabled or the LRU count limited via configuration.

Installation and Activation

Prerequisites: dsh CLI is installed locally, Node version meets plugin requirements (^22.19 || >=24), and DSH version is >=0.1.0-rc.6 (see engines in package.json).

For users, installing directly to the Web profile from GitHub is recommended:

# One-click install to Web profile
dsh plugin --profile web add github:neuneed/dsh-shuorenhua

# Start DSH Web
dsh web

You can also install by entering github:neuneed/dsh-shuorenhua in the “Plugin” management page of the DSH Web sidebar.

The plugin runs with the permissions of the current dsh process; please check if the repository code and MIT license are acceptable before installation.

Optional Configuration

Settings for the plugin instance can be made in cordis.patch.yml (fields are from the README):

- insert:
    - id: dsh-shuorenhua
      name: dsh-shuorenhua
      config:
        # Optional: Specify model provider (automatically uses DSH's current active default main model if omitted)
        provider: deepseek-official
        # Optional: Specify model name (automatically uses current main model if omitted)
        model: deepseek-chat
        # Optional: Whether to register shuorenhua_simplify tool to Agent (default true)
        enableTool: true
        # Optional: Whether to persist polished results for each message (default true)
        enableCache: true
        # Optional: Max cache entries (LRU eviction, default 100)
        cacheMaxEntries: 100

If provider / model are not specified, the polishing call follows DSH’s current main model.

Typical Usage

Polishing an answer in Web

  1. Run dsh web to open the Web interface, complete a conversation, and wait for the assistant’s reply.
  2. Click “Speak Human Language” in the action bar below that reply.
  3. Wait for the streaming output to finish in the popup, view the word count comparison; click copy if needed to paste the polished result back into notes or tickets.

Calling in Agent workflows

When enableTool: true (default) is maintained, autonomous agents can call shuorenhua_simplify to perform the same style of simplification on long texts; specific inputs and return shapes are subject to the implementation repository src/runtime.ts and Agent registration logic. If you only want to use the Web button and do not wish to expose the tool, set enableTool to false.

Use Cases and Notes

Suitable for: Daily reading of long answers in DSH Web, writing documentation, or reviewing conversations where you want to quickly remove the “AI tone” without manual editing; needing to perform a secondary “speak human language” processing on model outputs in Agent pipelines; when learning the DSH plugin dual-end architecture, the README also points to the Deep Technical Sharing Document.

Notes:

  • Polishing is still a rewrite by an LLM (or fallback rules); important facts and compliance expressions should be manually reviewed.
  • When caching is enabled, polished results land in Host storage; data retention strategies need to be evaluated in shared environments.
  • Developers need steps like cloning source code, pnpm install, and symlinking to ~/.dsh/profiles/web/node_modules for local debugging. See the “Local Source Code Development and Debugging” section in the repository README; the main text does not expand on the clone process to avoid confusion with the “one-click install” path.

Conclusion

dsh-shuorenhua turns “removing AI flavor, keeping code and numbers” into a one-click operation and an optional Agent tool in DSH, reusing the host model and same-port SSE, and supporting result caching. To try it in your environment, you can learn about the classification and introduction from the directory page, then install via the official command:

  • Directory Page: https://www.skillhub.cn/plugins/neuneed/dsh-shuorenhua
  • Source Code and README: https://github.com/neuneed/dsh-shuorenhua
羽毛球分组比赛记分
小程序二维码

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

Xiaoye