tokenwise
Measurement-driven model router for Claude Code. Routes Haiku/Sonnet/Opus per task class, logs every routed task with real $ numbers, and A/B tests cheaper tiers before you trust the savings.
npx skills add majiayu000/claude-skill-registry --skill tokenwise --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# TokenWise — Measurement-Driven Model Router ## Overview A Claude Code skill that auto-routes subtasks to the cheapest model that can handle them (Haiku for grunt work, Sonnet for scoped reasoning, Opus only for synthesis), then logs every routed task to a local NDJSON with real token + cost numbers. Includes an A/B test subcommand that runs the same task across multiple tiers and scores quality, so the routing decisions are verified against the user's real workload — not estimated. Anthropic's own bug tracker (Issue #27665) reports 93.8% of Max-subscriber Claude Code tokens flow to Opus. Existing routers (claude-router, wshobson, VoltAgent) either pin models statically or route by vibes-based heuristics with no measurement. TokenWise fills the measurement gap. ## When to use - Cutting Claude Code token spend without sacrificing output quality - Validating whether Haiku/Sonnet is "good enough" for a specific task class before trusting auto-routing - Auditing where Opus tokens are actually being burned - Logging per-session cost data for finance or chargeback ## Subcommands - `/tokenwise:install` — guided installer with diff preview, automatic backups, and `--dry-run` mode - `/toke
- Overview
- When to use
- Subcommands
- Routing taxonomy
- Privacy
- Install
- Limitations
- Source
What does the tokenwise skill do?
Measurement-driven model router for Claude Code. Routes Haiku/Sonnet/Opus per task class, logs every routed task with real $ numbers, and A/B tests cheaper tiers before you trust the savings.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill tokenwise --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
