When building a DeepSeek Harness (DSH) agent or proxy, scenarios involving amounts, invoices, and similar use cases often require converting Arabic numerals into Chinese uppercase forms. Manually writing regular expressions or helper functions is both cumbersome and error-prone. The following section introduces a plugin that can perform this conversion locally.

Plugin Overview

dsh-number-words is a DSH plugin maintained by uckkk. It converts Arabic numerals into Chinese uppercase numeric forms, making it suitable for amount and invoice scenarios. It also supports decimals and negative numbers.

Core Features

  • Number to uppercase conversion: Supports converting Arabic numerals into Chinese uppercase amounts or numeric forms.
  • Local execution: Implemented purely in Node, with no internet connection required and no dependency on external services.
  • Completeness: Supports decimals and negative numbers.

Installation and Enablement

Use the following command to install the plugin:

dsh plugin add dsh-number-words

After installation, add "dsh-number-words" to dsh.profile.bundles in the package.json file of the profile.

Typical Usage

After installation, you can directly call the tool registered by this plugin within a session.

Use Cases and Considerations

This plugin is suitable for scenarios that require generating formal Chinese uppercase numeric amounts. Since the plugin runs with the permissions of the current DSH process, please review the source code and license yourself before installation.

Summary

This plugin provides lightweight, local capability for converting numerals into uppercase forms, without calling external APIs. For more details, refer to the catalog page or the GitHub repository.