AI Agent Hub
Back to plugins
⚙️

dsh-truncate

Workflow Updated 2026.08.20

Run the following command in DeepSeek Harness:

dsh plugin install uckkk/dsh-truncate

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install uckkk/dsh-truncate in your terminal to install this plugin (source: https://github.com/uckkk/dsh-truncate).

About this plugin

In agent workflows, long documents, logs, or code snippets routinely exceed context windows or token budgets and must be trimmed to a manageable length before the next processing step. dsh-truncate fills exactly that gap: a lightweight, pure-Node text truncation tool that performs all work locally with zero network calls, keeping latency negligible and external dependencies at zero.

Once installed, the plugin registers its truncation capability as a session tool you can invoke directly in conversation. There is no API key to configure and no remote round-trip to wait for, making it well suited for deterministic pipeline stages where speed and isolation matter.

If you are assembling multi-step agent pipelines in dsh and need a simple, dependable text-truncation node without pulling in extra services, dsh-truncate is a plug-and-play option that simply works out of the box.

Use Cases

  • Controlling context or token length inside agent pipelines
  • Trimming logs or long documents to a target length before further processing
  • Quickly truncating text in deterministic nodes without pulling in external services

Best For

  • Developers building multi-step agent pipelines with dsh
  • Automation teams that need local, network-free text processing
  • Pipeline engineers who prioritize low latency and zero external dependencies