본문으로 건너뛰기
Skillpedia
에이전트48k · #6303

tokenwise

하는 일

TokenWise는 작업을 해결할 수 있는 가장 저렴한 AI 모델을 골라 AI 사용 비용을 아끼도록 돕습니다. 각 작업에 든 비용을 기록하고, 어떤 모델이 사용자에게 가장 잘 맞는지 시험해 볼 수 있게 합니다.

사용하는 경우

  • ✓응답 품질을 잃지 않으면서 비용을 줄이고 싶을 때.
  • ✓더 단순한 모델로도 작업이 충분한지 확인하고 싶을 때.
  • ✓AI 비용이 어디에 쓰이는지 알고 싶은 경우.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/skills/tokenwise/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/skills/tokenwise/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“Haiku 모델이 이 문단을 더 쉽게 다시 써 줄 수 있는지 테스트하고 싶습니다.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

TokenWise는 작업을 분석해 가장 적합하고 비용 효율적인 AI 모델로 보냅니다. 각 작업의 정확한 비용을 기록하고, 여러 모델을 비교해 가장 좋은 선택을 할 수 있게 합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

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
  • /tokenwise:report — per-session token + cost summary vs all-Opus baseline
  • /tokenwise:summary [--week|--month|--all] — historical aggregate with trend
  • /tokenwise:ab "<task>" — A/B test the same task at multiple tiers, generates a markdown comparison
  • /tokenwise:undo — restore CLAUDE.md / settings.json from backup

Routing taxonomy

Tier Model Task class
Mechanical Haiku 4.5 file reads, grep, format, rename, simple edits, doc lookups
Scoped reasoning Sonnet 4.6 single-file refactor, scoped research, test writing
Synthesis Opus 4.7 architecture decisions, multi-file refactor, security review

Safety caps:

  • Haiku never spawns further subagents
  • Max spawn depth = 2
  • Subagents that need a smarter model return to parent — they never escalate on their own
  • Tasks under 100 chars with no file context run inline (subagent overhead > savings)
  • Subagent context >30k tokens bumps a tier

Privacy

Zero telemetry. All logs in .tokenwise/log.ndjson local to the project. Task descriptions truncated to 80 chars and stripped of file contents before logging. No analytics endpoint exists in the source.

Install

In any Claude Code session:

/plugin marketplace add CodeShuX/tokenwise
/plugin install tokenwise@tokenwise

Then run /tokenwise:install and follow the guided prompts.

Limitations

  • Token counts approximate to ±2% vs Anthropic billing
  • A/B test mode costs extra tokens (one task × N tiers) — intentional one-time validation
  • Anthropic-only by design (use LiteLLM or OpenRouter for cross-vendor)
  • Subagent model: param has known silent-fail bugs on some Claude Code builds — skill probes for this at install and refuses to configure if routing is broken

Source

자주 묻는 질문

TokenWise는 어떻게 올바른 모델을 고르나요?

미리 정해진 목록을 사용합니다. 간단하고 빠른 작업은 Haiku, 조금 더 추론이 필요한 작업은 Sonnet, 소프트웨어 아키텍처 계획 같은 복잡한 작업은 Opus로 보냅니다. 작업이 예상보다 복잡하면 모델을 상향 조정할 수도 있습니다.

TokenWise가 제 데이터를 외부로 보내나요?

아니요, 완전히 비공개입니다. 모든 비용 정보와 작업은 사용자의 컴퓨터에만 저장되며, 민감한 데이터는 보호됩니다.

A/B 테스트란 무엇인가요?

같은 작업을 여러 AI 모델에서 동시에 실행하게 해 주는 기능입니다. 사용자의 특정 용도에 어떤 모델이 가장 좋은 품질을 내는지 보고, 비용 절감이 결과를 해치지 않는지 확인할 수 있습니다.

상세 정보

작성자의 원본 설명

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.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#6303
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬