Token Anxiety widget - initial release
An installable out-of-tree bundle for DeepSeek Harness ($dsh web): a small status widget in the composer band that tracks per-task token cost live from the session projection.
Features
- Peak/valley pricing status (DeepSeek pricing windows) + local time, with a 24-hour filter strip (peak/valley/waste presets)
- Cost + projected post-hike - Projected checkbox on by default; projected values in red with peak/valley splits; pricing table colors projected peak/valley green when cheaper, red when more expensive
- Per-task cost table - sortable (# / share %), rows show total cost + projected peak/valley split, bars and hover tooltips
- Currency manager - COP / USD / CNY defaults, ~40-currency catalog with flags + search, per-currency regional formatting, FX rates cached daily from a keyless API
- Click-to-explain - streams a short (~60-100 word) structured analysis as NDJSON in the conversation's language (ISO 639-1 via a tiny LLM call), four labeled rich-text lines; host 60s / client 70s timeouts
- i18n - full Chinese UI when the harness locale is zh (defaults to CNY)
- Dark & light themes
- Zero runtime dependencies; nothing written to the session log (sessions stay loadable)
Install
sh dsh plugin --profile web add /path/to/dsh-token-anxiety nRestart $dsh web after adding or updating.