nuwa-skill
alchaincyf
你想蒸馏的下一个员工,何必是同事。蒸馏任何人的思维方式——心智模型、决策启发式、表达DNA。Distill how anyone thinks.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:hiyijian/dsh-session-cost-live
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Show the live cost of the current session — in CNY or USD — right next to the token-usage chip at the bottom of the DeepSeek Harness composer.
Token counts are already in the shipped chip; this plugin prices them.
deepseek-flash and
deepseek-v4-pro. The panel can switch display currency; the choice is
remembered per browser.- and the panel says the rate is not configured; it never reuses
another model's price.dsh plugin --profile web add dsh-session-cost-live
Replace web with your profile name (for example desktop), then restart
dsh web (or refresh the page). The plugin targets the DSH Web profile; it
renders into the composer dock next to the shipped token-usage chip.
From source:
dsh plugin --profile web add git+https://github.com/hiyijian/dsh-session-cost-live.git
provider/model or model plus its four rates, and save. A built-in row you
override can be reset; custom rows can be deleted.Pricing currently covers the DeepSeek models. For any other route, add its
entry in the same page, for example moonshotai-cn/kimi-k2.6; set
Separate peak / off-peak pricing off when that provider charges a flat rate.
Advanced setups can still write the same values into the profile's
cordis.patch.yml:
- id: session-cost
name: 'dsh-session-cost-live'
config:
currency: CNY
peakPricing: false
prices: # CNY per 1M tokens
'moonshotai-cn/kimi-k2.6': { input: 4, cacheRead: 0.4, cacheWrite: 4, output: 16 }
pricesUsd: # USD per 1M tokens
'moonshotai-cn/kimi-k2.6': { input: 0.95, cacheRead: 0.16, cacheWrite: 0, output: 4 }
assistant/message, with the
in-flight assistant/attempt sample and the shipped tokenUsage retry
replacement rule), attributed to the model route of the settled message.<DSH_HOME>/sessions and folded with the
same logic, cached by log-file version, so closed subagent Sessions are still
counted.Sample reconciliation output (real run, one day of logs):
$ node tools/reconcile-day.mjs
day 2026-11-06 (Asia/Shanghai), prices as shipped with this plugin
8 root Session(s), 8 descendant Session(s)
what each chip shows (root Session + its descendants):
¥14.9484 session-90d20aed-… (standard) +4 descendant(s)
¥6.9516 session-7403ddd7-… (standard) +2 descendant(s)
¥5.2839 session-c2af9d0a-… (standard) +2 descendant(s)
…
TOTAL ¥29.73 (sum of every Session's own cost = the platform bill)
tools/reconcile-day.mjs replays every local session log through the plugin's
exact fold and price table. It reads logs only; it never calls a provider.
$DSH_HOME/sessions (read-only) to price descendant
Sessions and to run the reconciliation tool.>=0.2.2-rc.1 <0.3.0-0 (tested on 0.2.2-rc.1).conversation.composer.dock slot) and the
session-projection registry.Models & Reasoning — cost tracking for model usage.
node --check index.js
node --check client.js
node test/host-fold.test.mjs
MIT © 2026 hiyijian
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: session。