rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:2370998716-jpg/dsh-turn-eta
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
给 DSH 加两个东西:
自带默认单价,不依赖 cost-meter 插件也能显示 ≈¥。纯文字、无进度条、无动效。
需要 Node.js ≥ 22.19(DSH 自带,一般不用管)。下面三种方式选一种。
dsh plugin --profile <profile> add git+https://github.com/2370998716-jpg/dsh-turn-eta.git
<profile> 换成你正在用的 profile,桌面版一般是 desktop,Web 版是 web。
Windows 上如果 dsh 不在 PATH 里,用完整路径:
cmd /c ""C:\Users\<你>\AppData\Local\Programs\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd" plugin --profile desktop add git+https://github.com/2370998716-jpg/dsh-turn-eta.git"
dsh plugin --profile <profile> add "<上面那个文件夹的绝对路径>"
DSH 0.2.1 起,插件页如果有 发现 标签,可以在索引源里添加:
https://raw.githubusercontent.com/2370998716-jpg/dsh-turn-eta/main/index.json
列表里会出现「轮次耗时与费用预估」。没有「发现」标签的装法用方式一,一样能装。
完全退出 DSH 再打开(不是刷新页面)。宿主侧代码只在启动时加载,不重启看不到 ≈¥。
打开任意对话,头部应该出现 ⏱ 0:03 · 120 tok · 60 tok/s · 估约 1:37,输入框上方应该出现 ⚖ 预计 3.2k tok 产出 · 上下文 60k · ≈¥0.016 · ~0:22。
第一条消息发出去之后,单轮统计才开始累计;预估会随历史轮次增加而变准。
默认按 DeepSeek 的 token 单价(美元/百万 token):
| 模型 | 缓存未命中 | 缓存命中 | 输出 |
|---|---|---|---|
| deepseek-flash / deepseek-v4-flash | 0.15 | 0.003 | 0.6 |
| 高峰时段(1–4 点、6–10 点 UTC,即北京 9–12、14–18 点,仅周一至周五且非节假日) | 翻倍 |
峰谷按 UTC 窗口判断,周几和节假日按北京时间算:周末、peakHolidays 里列出的日期、以及 peakEffectiveAt 之前的时间都按空闲价。这套字段和 dsh-cost-meter 的账本写法一致,直接抄它的 config 就能对齐。
汇率默认 7.2。想改就新建:
~/.dsh/storages/dsh-turn-eta/config.json(Windows 是 C:\Users\<你>\.dsh\storages\dsh-turn-eta\config.json)
{
"model": "deepseek-flash",
"currency": "CNY",
"symbol": "¥",
"exchangeRate": 7.2,
"peakEnabled": true,
"peakWindows": [{ "start": 1, "end": 4 }, { "start": 6, "end": 10 }],
"prices": { "cacheMiss": 0.15, "cacheHit": 0.003, "output": 0.6 }
}
prices 可以直接写扁平的单价(上面这样),也可以写完整结构 { "models": { "deepseek-flash": { "cacheMiss": …, "cacheHit": …, "output": …, "peak": { … } } } }。价格来源优先级:config.json 覆盖 → ~/.dsh/storages/cost-meter/ledger.json(装了 cost-meter 那个插件时会读它的真实账单单价)→ 内置默认。所以装了 cost-meter 的机器会自动用真实单价,没装的机器用内置。
dsh plugin --profile <profile> remove dsh-turn-eta
然后重启 DSH。
p75 以内,改成「最多约」——这是上界,不是新的中位数,每轮只改口一次;真越过 p75 才显示「超预估」,数字直接消失,不再编。早点喊超预估也是一种谎报,所以宁可先说「最多约」。p25–p75 的历史区间——那是「快慢两种轮次各占到什么位置」,头部只显示一个干净的数。~/.dsh/storages/dsh-turn-eta/history.json,删掉就重新开始学。DSH_TURN_ETA_MODEL 可以临时换用哪个模型的单价。npm test # 纯函数单测(折叠逻辑 + 倒计时/离群/区间/计价)
npm run test:sim # 用假 React 跑一遍真实渲染,打印各场景文本
lib/client.js 是 window.__ModuleLoader__ bundle,不能 import,所以纯函数通过 exports.__internals 暴露给测试。
Two additions to DeepSeek Harness, rendered as plain inline text (no progress bar, no animation):
Default prices are built in, so ≈¥ works without any companion plugin.
p25–p75 historical interval; the chip itself stays a single number.~/.dsh/storages/dsh-turn-eta/history.json; delete it to relearn from scratch.~/.dsh/storages/dsh-turn-eta/config.json; DSH_TURN_ETA_MODEL picks a different price table.npm test # pure-function unit tests
npm run test:sim # renders the real components against a fake React
用着有问题、有想法、发现数字算错了,都欢迎直接发邮件:
2370998716@qq.com
写清楚「DSH 版本 + 你在哪个界面看到的什么数字不对」就够,不用客气。也可以去 GitHub Issues 提。
MIT © 2026 zuo
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。