DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Token2rice — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
T

token2rice

Token2rice

每花掉 N token 就从 DSH 窗口顶端掉下一碗白米饭的插件 / A DSH plugin that drops a bowl of rice for every N tokens you spend.

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:zczgagat/token2rice#665fc44919f13d133c11d5ecd72c5cfa5a7da3f8
READMECompatibilityVersions

Compatibility and provenance

Token2rice is published as token2rice and currently resolves to version 1.0.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
github
Registry updated
10/4/2026

Versions

1.0.0stable
10/4/2026

Related plugins

Loading related plugins…

Latest
1.0.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
MIT
Source
github
GitHub
★ 1
Weekly downloads
0
Last push
10/5/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in models-usage.

Whale Widgetdsh-whale-widgetDeepSeek balance whale widget in the bottom-right corner of the DSH Web interface: balance/today’s usage/peak-off-peak pricing, customizable bubble click sequence (text/balance/today/peak-off-peak/image/random phrases and parallel weighted selection), per-line styles and fonts, floating quick editinUsage@linxin666/dsh-usageUsage statistics plugin for the dsh web GUI: per-provider balance and coding-plan quota detection plus a live token usage ledger, with a compact price glance card above the sidebar's Settings rowClient Ui Model Capabilities@linxin666/dsh-client-ui-model-capabilitiesPer-model capability declarations (image input and reasoning efforts) for custom pi-ai providers, edited in place on the Models settings cards; writes the official llm-pi-ai settings namespace, no DSH source changes.Codex Subscriptiondsh-codex-subscriptionUse ChatGPT and Codex subscriptions in DeepSeek Harness with OAuth, quota, safe resets, web search, images, and Fast mode

README

token2rice

每花掉一笔 token,就从 DSH 窗口顶端掉下一碗白米饭。 Every N tokens you spend drops a bowl of rice from the top of the DSH window.

rice bowl

花掉的 token ÷ 每碗额度 = 画面上的碗数
spent tokens ÷ tokens-per-bowl = bowls on screen

一个 DeepSeek Harness(DSH)Web 界面插件:把"烧掉的 token"变成一个看得见的东西。 A DeepSeek Harness (DSH) web-UI plugin that turns burned tokens into something you can see.

它做什么 / What it does

  • 宿主半边:折叠全进程 session/event 里 assistant/message 的 provider 用量 (input / output / cacheRead / cacheWrite),原子写入 $DSH_HOME/token2rice/state.json,重启不丢。
  • 浏览器半边:注册进窗口级浮层 shell.overlay,在一个 requestAnimationFrame 循环里跑 2D 物理。
  • Host half folds provider-reported usage from every session into a durable ledger at $DSH_HOME/token2rice/state.json.
  • Browser half registers into the frame-wide shell.overlay slot and runs a small 2D physics loop.

玩法 / What you can do

掉落每攒够一碗的额度就从视口顶端生成一碗,重力自由落体、落地弹跳、压扁回弹、溅几粒米
拖动直接抓住任意一碗拖走,松手按你甩出去的手速继续飞(水平速度还带自转)
扔掉双击一碗把它从画面上删掉;面板里「清空画面」一次全清
计数牌右下角(可拖到任意位置)显示已换多少碗、当前花了多少 token;轻点开面板
换图面板里「选择图片…」或把图片拖到面板上,换成自己的图(PNG / JPEG / WebP / GIF,≤4MB)
  • Drops: gravity, bounce, squash-and-rebound, a few flying grains on impact.
  • Drag any bowl and throw it — the release velocity carries (with spin), then it free-falls again.
  • Double-click a bowl to remove it; the panel can clear the whole screen.
  • The badge (bottom-right, draggable) shows bowls earned and tokens counted; click it for settings.
  • Bring your own artwork (PNG/JPEG/WebP/GIF, ≤ 4MB) — pick a file or drag it onto the panel.

安装 / Install

从仓库装 / from the repo:

dsh plugin --profile desktop add github:zczgagat/token2rice

本地开发安装 / local development:

dsh plugin --profile desktop add link:C:\path\to\token2rice

装完刷新一次页面 / refresh the page afterwards. 卸载 / uninstall:

dsh plugin --profile desktop remove token2rice

设置 / Settings

点计数牌开面板,设置存在浏览器 localStorage(token2rice.settings.v1),不需要改 profile。

旋钮默认说明
每碗 token1000000攒够这么多 token 掉一碗;预设 100K / 500K / 1M / 2M / 5M,也可直接填
米饭大小56px碗宽 28–140px,已落地和飞行中的碗都会立刻跟着变
计入缓存 token开关掉只算新算的 input + output,缓存读取不计入
显示计数牌开关掉只留一个小圆点,仍可点开设置
位置右下角拖计数牌或面板标题栏即可移动;「归位」按钮回默认位置

口径 / What counts

默认把四个桶都算上(input / output / cacheRead / cacheWrite)——缓存读取通常占大头,重度使用 一天可能就是几千万,这样才有"掉米饭"的观感。想更接近"真正新算的 token"就关掉「计入缓存 token」。 计数自插件首次启用起算,不回溯安装之前的花费。 By default all four provider buckets count; turn off "count cached tokens" for a stricter measure. Counting starts when the plugin is first enabled, never retroactively.

自带米饭图 / Your own artwork

  • 正常路径:图交给宿主存成 $DSH_HOME/token2rice/art.img,换浏览器、重开会话、重启 DSH 都还在。
  • 兜底路径:宿主还没有 /token2rice/art 路由时(例如升级插件后还没重启),图存进当前浏览器的 IndexedDB, 刷新即可用;宿主路由上线后,下一次挂载会自动把本地那张搬到宿主。
  • 恢复默认两边一起清,回到仓库里的 assets/bowl.png。

已知边界 / Known limits

  • 只认 assistant/message 上 provider 上报的 usage:路由不上报用量就是零。
  • 画面最多同时摆 24 碗,超出的只进计数牌(最旧的先退场)。
  • 刷新页面会把已经挣到的碗直接摆好,只有新挣到的才下落;一次最多 4 碗做下落动画。
  • 宿主半边的代码改动要重启 DSH 才生效(已安装的包不会热替换宿主模块);浏览器半边改完刷新即可。
  • 宿主进程会缓存读过的米饭图,换 assets/bowl.png 之后同样要重启才吃得到新字节。

文件 / Layout

文件作用
index.js宿主半边:session/event 折叠、账本落盘、HTTP 路由
client.js浏览器半边:浮层、物理、面板、导入图片
cordis.patch.ymlbundle patch,把插件行插进 profile
docs/notes.zh.md中文实现笔记(路由表、缓存、竞态处理等细节)
tools/米饭图来源脚本:rawcopy.py(原样拷贝)/ cutout.py(自动抠底)

License

MIT