DSH Plugins Marketplace

DSH Plugins

Plugins

/

Just for Fun

/

dsh-token-saver-100

d

dsh-token-saver-100

Manifest valid

Refuses every conversation model call and streams back “恭喜你,又省下了token!” instead, so a turn spends no tokens; a settings page counts how many calls it has refused. Requests that declare a purpose, such

UI (client)hasBundlePatch

dsh-token-saver-100

token 立省 100% — 一个把 DeepSeek Harness 的每一次模型调用都拦下来、直接回你一句 「恭喜你,又省下了 token!」的插件。省下的调用次数记在设置页里。

这只是个整活插件,不过喜欢的可以点个star支持一下。 它并不能真的让你的 agent 更聪明,只是让每一轮对话 都得到同一句固定回复,从而一个 token 都不花。

效果

  • 你随便发一条消息,插件在模型调用分发之前就把它拦下,替换成一段本地生成的文本流, 于是助手回复永远是「恭喜你,又省下了 token!」。
  • 设置页多出一个 token立省100% 分页,显示「当前共省 n 次可能的 token 消耗」, n 在每次拦截时 +1,并持久化在磁盘上,重启后继续累加。
  • 标题生成、上下文压缩等带 purpose 的后台请求不受影响,所以会话列表、压缩等 功能仍然正常工作。

安装

把仓库克隆到本地任意目录,然后在 DeepSeek Harness 的 插件 → 添加插件 里选择该目录 (本地目录安装是软链接,改代码即生效);或者直接用 plugin_manager 的 install_bundle, target 传包的绝对路径。

git clone https://github.com/Frost-wu/dsh-token-saver-100.git

安装后需要重启 Harness(或用托盘退出后重开)才会加载新的模块。

工作方式

文件职责
index.jsHost 半边:挂 llm/stream 瀑布(prepend: true),命中即自造 chunk 流并 increment();另外注册 /token-saver-100/state 同源 JSON 路由
client.js浏览器半边:往 settings.section 插一个分页,打开/轮询(4s)/切回标签页时刷新计数
cordis.patch.yml往 Loader 里插入 token-saver-100 这一行
locale/*.json插件管理器和设置页的中英文标题、描述

拦截判定很简单:请求带 sessionId、且没有 purpose,就认定为对话主流程的调用。 计数写在 $DSH_HOME/token-saver-100/state.json(原子写入:临时文件 + rename), 不使用插件 Config,因为设置页只读它,而这个值是插件自己写的。

卸载

在 插件 里禁用或移除 dsh-token-saver-100。计数文件留在 $DSH_HOME/token-saver-100/state.json,需要的话手动删掉即可。

许可

MIT

Comments

Loading…

Similar plugins

dsh-save-chat

by xypang33-sketch

Save DSH conversation turns as Markdown: per-session collections plus a personal knowledge base the model can search on demand. Zero dependencies.

Sessions & MessagesManifest valid

★ 2

MIT

JavaScript

Oct 8, 2026

dsh plugin --profile web add dsh-save-chat

临时问答:/single-turn 与 /multi-turn 用独立子代理联网检索作答,结果只留在当前对话,不进入主模型上下文。

Terminal & ClientsSessions & MessagesManifest valid

★ 0

dsh plugin --profile web add @agi321/dsh-temp-chat

by 7gzgn

See what a conversation actually costs: how many model requests, how big the system prompt and tool table are, cumulative tokens, estimated spend, and how far you are from automatic context compaction

Tools & CapabilitiesManifest valid

★ 0

JavaScript

Nov 5, 2026

dsh plugin --profile web add dsh-frame

by sdlhs

Delivers a queued chat message at the next step boundary instead of waiting for the whole turn to end, without aborting the model call already in flight; aborting is an opt-in mode rather than the def

Sessions & MessagesManifest valid

★ 0

MIT

JavaScript

Oct 31, 2026

dsh plugin --profile web add dsh-interject

by yingrui96

An always-on attention pill in the session header. One glance shows how many sessions are waiting on you — approvals, questions, and failures — and what you already declined. Its HTTP routes have no D

UI & ExperienceManifest valid

★ 0

MIT

JavaScript

Nov 15, 2026

dsh plugin --profile web add dsh-attention-board

by Ayowait

DSH ??????????:????????????????Token ?????

Tools & CapabilitiesDevelopment & InfrastructureTerminal & ClientsManifest valid

★ 1

MIT

JavaScript

Oct 23, 2026

dsh plugin --profile web add dsh-usage-insights