Skip to content

v2.6.0 — data-driven prices, smarter Dangi, demo GIF

Choose a tag to compare

@Ship-Wright Ship-Wright released this 14 Jul 07:46
· 129 commits to main since this release

Three quick wins on top of v2.5's self-contained install.

Prices as data (not code)

  • New data/model-prices.json — an ordered {match, usd_per_mtok} list (first substring match wins). Adding a model is a one-line data edit shipped with the plugin; no script change.
  • The badge reads it when present (authoritative); the built-in price_per_mtok() table remains a zero-regression offline fallback when the file is absent or invalid. HEADROOM_PRICES_FILE overrides the path.
  • The doctor validates the bundled file and copies it beside the statusline copy (~/.claude/headroom-model-prices.json), so copied/plugin installs are data-driven too.

Smarter, file-aware Dangi nudge

  • When a Bash command reveals the source file (cat/head of .json/.jsonl/.ndjson/.csv/.tsv/.log), the nudge now names it — hcat "/path/to/file.json" — instead of a generic <path>. High-precision; falls back to the placeholder when uncertain.
  • Big outputs suppressed during the 60s cooldown are counted, and the next nudge reports how many were missed in the gap (batched, not one-per-blob). Added DANGI_NOW as a deterministic clock test seam.

Demo GIF

  • docs/demo-badge.gif — the badge's three real states (red idle → green active → grey decayed), rendered from actual script output. README embeds it in place of the placeholder.

Tests: 285 passed, 0 failed (+17 checks), shellcheck clean at warning severity. Version 2.6.0.