DeepSeek Harness 插件

dsh-voice-prompt-compressor

DSH plugin: compress verbose voice-dictation text into token-efficient prompts, fully local.(英文原文)

跳到安装方式

来源信息

GitHub 仓库
yuzh1090/dsh-voice-prompt-compressor
最近更新
2026年8月19日
分类
工具与能力
GitHub stars
0
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/yuzh1090/dsh-voice-prompt-compressor
插件名:dsh-voice-prompt-compressor
作者:yuzh1090

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

dsh-voice-prompt-compressor

Compress verbose voice-dictation text into token-efficient prompts — fully local, zero LLM tokens.

A DeepSeek Harness (DSH) plugin that removes filler words, repetitions, and politeness padding from speech-to-text / dictation output, then helps organize the result into a structured prompt (Context / Goal / Constraints / Deliverables).

Features

  • Deterministic local compression — normalize → strip fillers → strip politeness → dedupe.

No network, no LLM call, no tokens spent.

  • Bilingual wordlists — Chinese and English fillers, hedges, and politeness phrases; auto

language detection by CJK ratio.

  • compress_voice_text tool — callable by the agent; returns compressed text plus savings stats

(estimatedTokensSaved, ratio, removed counts per category).

  • Bundled skill voice-prompt-compressor — auto-triggers when the user pastes rambling

dictation, and organizes the compressed text into a four-section prompt.

  • Configurablemode (light / balanced / aggressive) and keepPoliteness overridable in

your profile patch layer.

Install

# local development install (file: reference)
dsh plugin --profile web add /path/to/dsh-voice-prompt-compressor
# after publishing to npm
dsh plugin --profile web add dsh-voice-prompt-compressor

Note: dist/ is not committed — after cloning, run npm install && npm run build before installing.

Refresh the web page after installing. The plugin registers a tool and a skill; both become available in new sessions.

Usage

Skill (recommended): paste rambling voice dictation into the chat. The agent loads the voice-prompt-compressor skill, calls compress_voice_text, and presents a compressed four-section prompt (Context / Goal / Constraints / Deliverables).

Tool: the agent can call compress_voice_text directly with these parameters:

| Parameter | Type | Default | Description | | ---------------- | -------------------- | ---------- | --------------------------------------------- | | text | string (required) | — | The dictation / transcript text to compress | | language | auto \| zh \| en | auto | Wordlist language; auto detects by CJK ratio | | mode | light \| balanced \| aggressive | config | Compression strength | | keepPoliteness | boolean | config | Keep politeness phrases when true |

The tool returns:

{
  "compressed": "…",
  "originalLength": 512,
  "compressedLength": 210,
  "estimatedTokensSaved": 76,
  "ratio": 0.59,
  "removedCategories": { "fillers": 18, "repeats": 3, "politeness": 2 }
}

Config

Override in your profile patch layer (same id):

- insert:
    - id: voice-prompt-compressor
      config:
        mode: balanced      # light | balanced | aggressive
        keepPoliteness: false

How it works

The pipeline is purely mechanical and deterministic:

1. normalize — full-width alphanumerics to half-width, unify whitespace. 2. strip-fillers — remove filler words and discourse markers (, 那个, 就是说, 然后, um, like, you know, basically, …). Ambiguous demonstratives (那个 / 这个 / 就是) are only removed adjacent to punctuation or whitespace in balanced mode; aggressive removes them anywhere plus hedges (说实话, frankly, …). 3. strip-politeness — remove politeness padding (麻烦你, please, could you, thanks, …) unless keepPoliteness: true. 4. dedupe — collapse adjacent repeats (不对不对不对, very veryvery).

Compression is mechanical only — it never rewrites meaning. Technical requirements, constraints, edge cases, and business rules are preserved verbatim.

Development

npm install
npm test        # builds then runs node --test
npm run typecheck

Publishing

1. Push the repo to GitHub. 2. (Optional) npm publish. 3. Submit to the DSH plugin market: open an issue/PR at dsh-market/dsh-market or register at https://awesome-dsh-plugin.com.

License

MIT