joseph27/claude-code-token-save

5 stars · Last commit 2026-04-07

Claude Code skill that cuts token costs 50-70% by routing subagents to cheaper models (Sonnet/Haiku) based on task complexity

README preview

# Token-Save — Claude Code Skill

A skill for [Claude Code](https://docs.anthropic.com/en/docs/claude-code) that cuts token costs by **50-70%** when running multi-agent workflows.

## The Problem

Claude Code skills that spawn subagents (code reviews, audits, plan execution, etc.) default to using **Opus for every agent**. A single `/review-code` invocation spawns 6 parallel agents — all on Opus. A `/audit` can spawn 10+. The costs add up fast.

## The Solution

Token-Save introduces a **tiered model routing system**:

| Tier | Model | Use Case | Relative Cost |
|------|-------|----------|---------------|
| **Opus** | `claude-opus-4-6` | Root-cause analysis, critical debugging | 1x |
| **Sonnet** | `claude-sonnet-4-6` | Planning, reviewing, building — most work | ~0.3x |
| **Haiku** | `claude-haiku-4-5` | Mechanical tasks, verification, file search | ~0.05x |

When token-save mode is **ON**, each agent is spawned with the model matching its tier. When **OFF**, everything runs on Opus (default Claude Code behavior).

View full repository on GitHub →