dshbase

插件目录 / Developer / dsh-voice-prompt-compressor

dsh-voice-prompt-compressor

已验证 · 实测可装 yuzh1090

✓ 持续维护 基于 2 个官方 DSH 包

查看 GitHub ↗ ← 返回插件目录

0Stars
0Forks
0未关闭 issue
—语言
2026-08-19最近推送
跨平台平台

功能简介

DSH plugin: compress verbose voice-dictation text into token-efficient prompts — fully local, zero LLM tokens.

✅
我们的评价
可用 — 实测通过,早期项目

DSH plugin: compress verbose voice-dictation text into token-efficient prompts — fully local, zero LLM tokens. 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

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.
  • Configurable — mode (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 very → very).

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

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-voice-prompt-compressor」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:yuzh1090/dsh-voice-prompt-compressor

Headless(CLI)profile:

dsh plugin --profile headless add github:yuzh1090/dsh-voice-prompt-compressor

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Developer 里更多

浏览全部 7819 个插件 →