Introduction

One of the core design principles of DeepSeek Harness (DSH) is “everything is a plugin.” When building agents or orchestrating workflows, numbers often need to be displayed in specific styles, such as adding currency symbols, thousand separators, or controlling decimal places. This article introduces the dsh-number-format plugin, a pure Node.js tool that provides a unified number formatting solution.

Plugin Positioning

This plugin is maintained by developer uckkk and belongs to the online tools category. It does not depend on complex build processes; with simple configuration, it can provide formatting capabilities in the DSH environment.

Core Functionality

The plugin provides a single tool, format_number, for handling number formatting. Supported features include:
* Thousand separators
* Decimal place control
* Currency symbol addition
* Percentage formatting

Installation and Configuration

Install the plugin using the officially provided command.

dsh plugin add dsh-number-format

After installation, you need to add the dsh.profile.bundles field in the profile’s package.json configuration file and set it to "dsh-number-format" to ensure the plugin is loaded correctly.

Usage Example

Use the format_number tool directly in conversations or tool calls. For example, format a number as a currency style.

// 调用 format_number 格式化数值
format_number(value=1234567.891, currency="¥", decimals=2)

Dependencies and Environment

The plugin depends on the following core packages:
* @deepseek-ai/cordis (version requirement ^4.0.1)
* @deepseek-ai/dsh-tools (version requirement >=0.1.0-rc.6)

Notes

Because the plugin runs locally with the permissions of the current DSH process, be sure to review its source code and license (MIT) before installation, and deploy only after confirming the code is secure.

References