CodeShuX/tokenwise

Cut Claude Code spend without sacrificing quality — and prove it. Haiku/Sonnet/Opus router with real $-saved numbers, not vibes.

3Stars on the repository
7Mods indexed here, across every type
6d agoLast push, which is what freshness is scored on
MITLicence, which decides whether bodies are shown

ab

01

CodeShuX/tokenwise

Skill Claude CodeCodex

Run an A/B test of the same task at multiple model tiers (Haiku, Sonnet, optionally Opus and Fable). Captures outputs, computes structural and semantic diffs, scores quality, writes a markdown comparison report. Use when the user wants to validate "is Haiku good enough for this task class?" or runs /tokenwise:ab " ".

3 6d ago A 76 tokens original MIT

install

02

CodeShuX/tokenwise

Skill Claude CodeCodex

Install TokenWise routing rules into the user's Claude Code config (CLAUDE.md and settings.json). Probes the user's Claude Code build for known routing bugs first, shows diffs, backs up originals, asks for per-file confirmation. Supports --guided (default), --manual (print copy-paste only), and --dry-run (preview…

3 6d ago B 95 tokens original MIT

report

03

CodeShuX/tokenwise

Skill Claude CodeCodex

Print a TokenWise session report — tokens per model, $ saved vs all-Opus baseline, reclassifications, quality flags. Reads from .tokenwise/log.ndjson filtered to the current session. Use when the user asks "how much did I save", "show me tokenwise stats", or runs /tokenwise:report.

3 6d ago A 68 tokens original MIT

summary

04

CodeShuX/tokenwise

Skill Claude CodeCodex

Aggregate TokenWise routing data over a time window (default: last 7 days). Shows trend, top task classes, and cumulative savings. Use when the user asks "show me my weekly/monthly savings", "how am I doing on tokenwise", or runs /tokenwise:summary.

3 6d ago A 59 tokens copy · 91% MIT

undo

05

CodeShuX/tokenwise

Skill Claude CodeCodex

Restore TokenWise config backups. Lists all .tokenwise-backup- files found, lets the user pick one to restore in place. Use when the user wants to roll back TokenWise's changes to CLAUDE.md or settings.json, or runs /tokenwise:undo.

3 6d ago B 56 tokens original MIT