DSH Plugins Marketplace

DSH Plugins

Plugins

/

Terminal & Clients

/

dsh-token-meter-mood

d

dsh-token-meter-mood

Manifest valid

Per-turn token usage and mood emoji row under each assistant reply for the DeepSeek Harness web GUI

UI (client)hasBundlePatch

dsh-token-meter-mood

DeepSeek Harness Web GUI 插件:在每条助手回复下方显示该次交互的 token 消耗明细与心情表情。

😄 · 输入 106万6204 · 命中 100万 · 未命中 6万6204 · 输出 3万5000 · 命中率 95%
  • 每次回复(每个回合)单独统计:输入 / 缓存命中 / 未命中 / 输出(中文单位,4 位分组精确显示:190万2900、1亿2900万3999)
  • 表情只按该次回复的输出 token 分级:< 5 万 🥳,510 万 😄,1020 万 🙂,2040 万 😐,4060 万 😕,6080 万 😟,80100 万 😠,> 100 万 😡(红温)
  • 有产物(编辑/写入文件)的回合保留「产物」行,文件可点击打开
  • 有推理 token 时悬停显示「输出 X (含推理 Y)」

安装

前提:本机已运行过 dsh --profile web(profile 目录 ~/.dsh/profiles/web/ 已初始化)。

# 一条命令:安装为 profile 依赖,并自动激活为 profile 图层(host 服务 + 浏览器端一起挂载)
pnpm dsh plugin --profile web add "github:firekula/dsh-token-meter-mood"
# 装过旧版本后更新:
pnpm dsh plugin --profile web update dsh-token-meter-mood

然后重启 dsh --profile web(或刷新页面)。

旧版本(≤0.2.1)缺少 dsh.bundle.patch 声明,安装命令只会把它装成普通依赖、不挂载,需要手工在 ~/.dsh/profiles/web/cordis.patch.yml 里加一行:

- insert:
    - id: token-meter-mood
      name: 'dsh-token-meter-mood'

0.2.2 起不再需要这一步。

刷新页面后,每条已完成的助手回复下方就会出现 token 行。

工作原理

  • Host 半(lib/index.js):一个 TypertRemoteService,通过 @Remote('turnUsage') 暴露按回合折叠用量(与 token-meter 相同的「每步后采样替换」语义),优先读实时会话日志,冷会话回退到 sessionQuery。安装后由 typert-loader 自动注册到网关。
  • 浏览器半(lib/client.js,经 dsh.client 声明被 Web 应用扫描并注入):挂载本包自带的 /remote 贡献,接管 conversation.chat.turnTail 槽位(单赢家链槽,以更高优先级先行接管,并复刻官方「产物」行保证共存)。
  • peerDependencies 全部从本机 DSH 安装解析(profile 的 healed node_modules 兜底),不依赖 npm 发布。

调整表情阈值

修改 src/client/TokenMeterTail.tsx 中 emojiOfOutput 的分档后重新打包提交即可。

重新构建

lib/ 下已提交构建产物,GitHub 安装不需要构建步骤。如需修改后重建:把本仓库放进 deepseek-harness monorepo 的 packages/client/ 下,参照其构建流程执行 tsc(host/client 两个 tsconfig)、typert 生成(package 模式)与 clientBundle 打包,再将产物提交。

Comments

Loading…

From the same category

dsh-purge

by kingcharleslzy-ai

Community-maintained dsh-purge fork with host-policy patches, prompt and rule settings, diagnostics, separate update-check and install controls, and local backup/rollback.

Tools & CapabilitiesTerminal & ClientsManifest valid

★ 9.3k

MIT

JavaScript

Nov 16, 2026

dsh plugin --profile web add dsh-purge-community

by ccch1mneyyy

DSH 官方公众号收录的 TUI 补位插件:Claude Code 风,鲸鱼顶栏/实时状态/流式思考/双击 Esc 回滚/上下文进度+TPS。npm 一键装。 DSH official WeChat featured TUI plugin — Claude Code style: whale bar, live status, streaming thoughts, double-Esc rol

Terminal & ClientsManifest valid

★ 7.8k

↓ 19.2k/wk

MIT

TypeScript

Nov 17, 2026

dsh plugin --profile terminal add @deepseek-harness-tui/dsh-tui

by mmparko

DeepSeek Harness 破甲 (mirror of YuJunZhiXue/dsh-purge) — 上游即将删库,此为本仓库全量镜像:含全部分支/73 个 tag/完整提交历史。原作者署名与二开要求见 README 署名章节。

Terminal & ClientsManifest valid

★ 5.2k

↓ 19.5k/wk

MIT

JavaScript

Oct 13, 2026

dsh plugin --profile web add dsh-purge

by bowenliang123

The best DeepSeek Harness plugin for context insight and management, with context dashboard / browser / sidebar and context command, for context statistics, composition, breakdown, evolution details,

Tools & CapabilitiesUI & ExperienceTerminal & ClientsManifest valid

★ 5.2k

↓ 127.5k/wk

Apache-2.0

TypeScript

Nov 16, 2026

dsh plugin --profile web add dsh-context

by strukto-ai

The World's First Virtual Terminal for AI Agents

Terminal & ClientsManifest valid

★ 3.8k

↓ 519/wk

Apache-2.0

TypeScript

Nov 17, 2026

dsh plugin --profile agent add @struktoai/mirage-dsh

by c1overzz

DSH 插件:每天替你刷一轮 B站,读字幕挑出值得的、写一份日报,值得的 @ 你

Tools & CapabilitiesNotifications & IntegrationsTerminal & ClientsManifest valid

★ 1.4k

↓ 10.5k/wk

MIT

JavaScript

Nov 12, 2026

dsh plugin --profile web add dsh-bili-scroll