DeepSeek Harness 插件

uceqi114/dsh-ice-probe

Star 数 ★ 0 下载量(近 30 天) 983 分类 娱乐 收录于 2026-10-19 npm dsh-ice-probe

在模型写出的每句话结尾(含思维链)补一个小冰块标记,并为每次补冰播放一声短促的合成音效。

安装

# npm 包(预构建)

dsh plugin --profile web add dsh-ice-probe

# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)

dsh plugin --profile web add github:uceqi114/dsh-ice-probe

装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。

README

该插件的 README 只有英文版本。

A tiny DeepSeek Harness plugin that appends a 🧊 marker to the end of every sentence the model writes — including its chain of thought — and plays a short sound for each insertion.

It is a mechanical output-pipeline transform, not a prompt. The model is never asked to add emoji, so it cannot forget, miscount, or imitate.

The plan … 
- first read the file … 
- then rewrite it. This keeps things simple.

becomes

The plan🧊🧊🧊 …
- first read the file🧊🧊🧊 …
- then rewrite it🧊🧊🧊. This keeps things simple🧊🧊🧊.

…and you hear a small blip each time a 🧊 lands on the screen.


Features

  • Sentence-end ice for text and reasoning. Implemented on the host llm/stream waterfall, so it works for every model call.
  • Survives settling. The settled copy of a finished step is transformed too, so the ice does not disappear when reasoning collapses.
  • Sound for every insertion. A short synthesized tone; no audio assets, no downloads. Queue length selects one of four tiers, and a tier drains that many ice markers from the queue.
  • Idempotent. Text that already has ice in front of its punctuation is left alone.
  • Safe. Code fences, inline code, numbers (2.5), filenames (core.js), abbreviations (e.g.), tool-call arguments, session titles, compaction summaries and sub-agent/workflow sessions are never touched.
  • No configuration required. Enable it: it applies. Disable it: the module is unloaded.

Install

# from npm (no build step)
dsh plugin add dsh-ice-probe

# or straight from GitHub
dsh plugin add github:uceqi114/dsh-ice-probe

Then make sure the plugin is enabled in the plugin marketplace. Enabling/disabling the plugin is the on/off switch — there is no in-conversation toggle.

Manual install

If you prefer to install it by hand:

  1. Clone or copy this repository anywhere.
  2. Add a link dependency to your profile's package.json:
    "dsh-ice-probe": "link:D:/path/to/dsh-ice-probe"
    
  3. Register the bundle in the same file:
    "dsh": { "profile": { "bundles": ["dsh-ice-probe"] } }
    
  4. Make sure node_modules/dsh-ice-probe resolves to the plugin directory.

Verify it works

The host half serves two local routes under your DSH web server:

Route Purpose
/ice-probe/ Live counters, the last few rewrites (samples), skip counters, last error
/ice-probe/selftest The built-in sentence-transform test suite (also npm run selftest)

/ice-probe/ returning 404 means the plugin is not mounted (disabled in the marketplace, or not installed).

Behavior and limits

  • Ice goes before the punctuation, so the sentence stays grammatical and copy/paste keeps normal punctuation at the end.
  • Chinese: 。 ! ? … always get ice.
  • English: ! ? always get ice (a run such as !!! counts once). A period only gets ice when it is followed by whitespace, a newline, or the end of the text — so decimals, versions, filenames and abbreviations are left alone.
  • Never iced: fenced/inline code, tool-call arguments, session titles, compaction summaries, sub-agent and workflow output.
  • The ice is written into the conversation log. It is part of the assistant message from then on; turning the plugin off does not remove ice from old messages, and the extra characters count toward the context.
  • Sound requires a user gesture (browser autoplay policy). The first click/keypress on the page unlocks audio; until then ice is counted silently and plays once unlocked.

Privacy

  • Everything runs locally: a host transform and a client-side counter.
  • No telemetry, no network calls, no data collection. The two routes above are served by your own DSH web server.
  • The plugin only ever adds characters to model output; it never rewrites existing text away.

License

MIT

内容来自项目 README(GitHub)↗

链接

同类插件

查看整个分类 →

社区评论

评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。