AI Agent Hub
Back to plugins
🧩

dsh-text-mask

admin-security Updated 2026.08.19

Run the following command in DeepSeek Harness:

dsh plugin install uckkk/dsh-text-mask

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

Install this plugin in DeepSeek Harness by running dsh plugin install uckkk/dsh-text-mask; the full source code is available at https://github.com/uckkk/dsh-text-mask

About this plugin

When dealing with user input, ticket records, logs, or conversation replays, text often contains sensitive data such as email addresses, phone numbers, national ID numbers, bank card numbers, IP addresses, or API keys. Displaying or forwarding such text without protection risks data leakage, while spinning up an external masking service feels heavyweight.

dsh-text-mask is a pure-Node, local text-masking plugin. It exposes a single mask_text tool that automatically detects PII and tokens in the input, replaces them with masked placeholders, and returns the sanitized text along with a hit count. The entire pipeline runs offline with no network calls and no external dependencies.

It is well suited for developers and admins who need fast, dependency-light local redaction in log pipelines, support-ticket workflows, or audit replays, and want to keep PII out of shared contexts with minimal overhead.

Use Cases

  • Mask PII in logs before shipping them to a shared pipeline
  • Redact phone numbers and ID numbers in support tickets prior to external sharing
  • Hide API keys and tokens during conversation replay and audit

Best For

  • Developers who need offline, zero-dependency text masking
  • SRE and platform engineers managing log pipelines
  • Security and compliance officers enforcing data-minimization policies