You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Three-way brainstorm consensus (Claude + Codex + agy 2026-05-25): the dashboard surfaces tokens saved, but not dollars saved. ContextCrawler already has the math — `src/analytics/cc_economics.rs` and `src/analytics/ccusage.rs` carry per-tier pricing for Claude (Sonnet, Opus, Haiku). The dashboard just doesn't plug into it.
Problem
The Hoff's TRAIT is cost-efficiency-focused — "evaluates component pricing against alternatives before committing". Right now the cost story lives in `gain --quota --tier 20x` text-mode. Glanceable dollar value belongs on the dashboard.
Proposed scope
New endpoint
```
GET /api/economics?tier=sonnet-4.6&period=30d
```
S - M. The math exists. Mostly endpoint + frontend pane.
Endpoint + tests: 1 day
Frontend pane: 1 day
Doc + screenshot: half day
Why now
Three-of-three brainstorm models picked this as a top-tier add. The dashboard surfaces ContextCrawler's value already — the dollar overlay is what makes that value executive-shareable, not just developer-glanceable.
Dependencies
#162 (the dashboard surface) — merged or about-to-be.
Status 2026-08-19: not started. No commits, no branch, no PR.
src/analytics/cc_economics.rs + ccusage.rs already exist (per the issue's own framing) — economics data path is in place. Just needs the /api/economics?tier=...&period=... endpoint + the Cost pane (cards + per-command leaderboard + by-day chart).
Per the issue's Dependencies section: only #162 (now shipped in v0.5.0 via feat/gain-web-162-rebuild). Unblocked. Read-only pane — no write-side pattern reuse.
Local-model pricing (BC-250 cluster amortised cost) and cross-tier comparison view are explicit out-of-scope for v1 — leaving them out of scope here too.
Activity
feat: add `rtk wc` command for compact word/line/byte counts (thehoff…
thehoff commentedon Aug 19, 2026
Status 2026-08-19: not started. No commits, no branch, no PR.
src/analytics/cc_economics.rs+ccusage.rsalready exist (per the issue's own framing) — economics data path is in place. Just needs the/api/economics?tier=...&period=...endpoint + the Cost pane (cards + per-command leaderboard + by-day chart).Per the issue's Dependencies section: only #162 (now shipped in v0.5.0 via
feat/gain-web-162-rebuild). Unblocked. Read-only pane — no write-side pattern reuse.Local-model pricing (BC-250 cluster amortised cost) and cross-tier comparison view are explicit out-of-scope for v1 — leaving them out of scope here too.