Introduction¶
The DeepSeek Harness (DSH) ecosystem emphasizes modularity and extensibility. When developing applications involving text generation, it is often necessary to validate the length of the output content, for example, confirming whether a spoken script reaches a specified duration. The following introduces the dsh-script-words plugin, which provides a tool for accurately calculating the word count of a spoken script.
What Is This¶
This is a DSH client plugin maintained by uckkk. Its core function is to accurately calculate the word count of a spoken script based on parameters and return detailed results. The plugin is implemented with a pure Node.js tech stack and does not rely on network requests.
Installation and Enablement¶
To enable the plugin, you need to run the installation command in a DSH environment. The installation process pulls the plugin package from a GitHub repository.
dsh plugin add github:uckkk/dsh-script-words
Core Features¶
The plugin registers a tool named script_words. When using this tool, simply pass the spoken script text as a parameter to obtain the word count result. The calculation is performed locally, ensuring data privacy and response speed.
Typical Usage¶
After installation, you can directly call the tool registered by the plugin in a DSH session.
Use Cases and Notes¶
This plugin is suitable for scenarios where the length of a generated spoken script needs to be validated. Because the plugin runs with the permissions of the current DSH process, be sure to review the source code and the MIT license before installation.