Introduction

When building DeepSeek Harness (DSH) workflows, you often encounter scenarios where input text needs to be limited in length or split. If this is not handled, overly long text may cause context overflow or processing failures. dsh-truncate provides a lightweight solution for this specific need.

Plugin Introduction

dsh-truncate is a utility plugin for text truncation. It is maintained by uckkk and aims to solve long-text processing issues, avoiding context overflow or format errors caused by excessively long text.

Core Features

  1. Text Truncation: Supports length-limiting processing for input text.
  2. Pure Node Implementation: Relies on the Node.js runtime, has no network request dependencies, and runs stably.

Installation and Enablement

Run the following command to install the plugin:

dsh plugin add github:uckkk/dsh-truncate

After installation, you can use it by directly invoking the tools registered by the plugin in a session.

Typical Usage

After installation, invoke the plugin’s registered tools in a session.

Use Cases and Notes

This plugin is suitable for scenarios that require limiting text length. When using it, ensure that project dependencies meet the requirements:
* @deepseek-ai/cordis version >= 4.0.1
* @deepseek-ai/dsh-tools version >= 0.1.0-rc.6

The plugin is open source under the MIT license. It runs with the permissions of the current DSH process. Please ensure that you review the source code and license before installation.

Summary

dsh-truncate provides basic text truncation capabilities and is suitable for DSH workflow developers who need to control text length.

Directory page: https://www.skillhub.cn/plugins/uckkk/dsh-truncate
GitHub: https://github.com/uckkk/dsh-truncate