Skip to content
Skills Library
AI & agents · Learning & explanation

token-efficiency

/token-efficiency

☕️ cafe · Cut daily token burn in Claude Code. Explains where input tokens actually go (cache reads, ~95% of the bill) and the levers that matter, ranked by impact. Use when the user asks about token usage, cost, "why is my bill high", input/output ratios, or how to make sessions cheaper. The always-on disposition (injected via SessionStart hook) covers the in-session behaviors.

Repository
cafe ↗
Licence
MIT
Last repository change
24.08.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 24.08.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

☕️ cafe · Cut daily token burn in Claude Code. Explains where input tokens actually go (cache reads, ~95% of the bill) and the levers that matter, ranked by impact. Use when the user asks about token usage, cost, "why is my bill high", input/output ratios, or how to make sessions cheaper. The always-on disposition (injected via SessionStart hook) covers the in-session behaviors.

Triggers from the description

why is my bill high
Original author description

☕️ cafe · Cut daily token burn in Claude Code. Explains where input tokens actually go (cache reads, ~95% of the bill) and the levers that matter, ranked by impact. Use when the user asks about token usage, cost, "why is my bill high", input/output ratios, or how to make sessions cheaper. The always-on disposition (injected via SessionStart hook) covers the in-session behaviors.

How it works

  1. The measured facts
  2. Rules, ranked by impact
  3. What to tell the user when they ask about the bill
Original SKILL.md headings · 32 lines, 522 words
SKILL.md preview
---
name: token-efficiency
description: ☕️ cafe · Cut daily token burn in Claude Code. Explains where input tokens actually go (cache reads, ~95% of the bill) and the levers that matter, ranked by impact. Use when the user asks about token usage, cost, "why is my bill high", input/output ratios, or how to make sessions cheaper. The always-on disposition (injected via SessionStart hook) covers the in-session behaviors.
user-invocable: true
---

# Token Efficiency

Where the tokens actually go, measured from real Claude Code transcripts on a ~$400/day account: fresh input is negligible (a few thousand tokens per session), output is ~2% of the bill. **95%+ of input is cache reads** — the entire conversation context re-sent on every single API call. One 3,744-message session burned 771M cache-read tokens at an average context of ~330k per call.

The bill is: `(avg context size) × (number of API calls)`. Every rule below attacks one of those two factors.

## The measured facts

- The 5 longest sessions in one day accounted for ~2.6B of ~2.8B cache reads. The median session was 90 messages; the marathons were 1,500–3,700.
- Main-loop calls in marathon sessions ran near the context ceiling (300k+). Subagent calls in the same day averaged ~90k. Same work, quarter the per-call cost.
- One session ran with caching broken (zero cache writes): 2.87M fully-uncached input tokens at 10x the cache-read price. Worst per-call session of the day.
- Output tokens track work done, not waste. In/out ratio comparisons between users are meaningless — lower `in` per `out` is the good direction, and long sessions are what inflate `in`.

## Rules, ranked by impact

**One task, one session.** Context cost is superlinear in session length: a session twice as long has more calls AND a bigger context per call. `/clear` when the task changes. Resuming a 2,000-message session to ask one question re-sends hundreds of k of dead context per turn.

**Compact early, not at the ceiling.** A high context pin with auto-compact near the top means marathons cruise at 300k+/call. If a session must run long, `/compact` proactively at natural checkpoints (after a deploy, after a merge) while context is still ~100k, instead of letting it ride to the threshold.

**Push tool-heavy loops into subagents.** Grep sweeps, test-fix iterations, log spelunking: every tool call in the main loop is another full-context API round. A subagent does those rounds at its own small context and returns one summary. 50 tool calls × 300k main-loop context vs 50 × 90k agent context is the difference.

**Keep bulk out of context.** Big command outputs, file dumps, transcripts → write to a scratchpad file and read back only the slice needed. Never paste a 5k-line log into chat; never re-read a file already in context.

**Don't bust the cache.** Fully-uncached input costs ~10x a cache read. Cache-busters: switching models mid-session, editing always-on hooks/CLAUDE.md mid-day (invalidates every session's prefix), models with no prompt caching (keep those sessions short). Slow first-token on every turn is the tell; start a fresh session.

**Delegate execution down-ladder.** The fable skill already says it: the expensive model plans and judges, cheaper models type. A cheaper model burning the same cache reads costs proportionally less. Marathons especially should not run on the priciest model end to end.

## What to tell the user when they ask about the bill

Report `$`, not input tokens. Input token totals are dominated by cache reads and mostly measure session length, not work. The levers, in order of impact: session length, per-call context size, model tier, output volume.
Files in this package (2)
  • DISPOSITION.md 1 KB
  • SKILL.md 4 KB

Versions

RepositoryScoreLicence
This page · noahdunnagan/cafe100MIT
NickCrew/Claude-Cortex100MIT
kookr-ai/kookr95Apache-2.0

Database snapshot: 13.11.2026 · package version e7c64e7cb979 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 96input-token-analysis
    Use when input token spend needs explaining and fixing.
  • 100claude-token-audit
    Show where Claude Code tokens and usage limits go, from the local session logs in ~/.claude/projects. Breaks usage down by project, session, day, model and tool, finds the biggest tool outputs flooding the context, measures cache hit rate and peak context per session, sizes what…
  • 100tokeneconomics
    Analyze Claude Code session token usage to flag waste and optimization opportunities. Use when the user asks to "analyze token usage", "check token efficiency", "audit token spend", "tokeneconomics", "reduce token costs", "optimize token usage", "check my burn rate", or mentions…
  • 100k-tokens
    Cut Claude Code token use. Audit reads your local transcripts and shows where tokens go (idle cache rewrites, context size, polling, Opus agents). Apply is a one-screen settings choice that merges a few documented keys into ~/.claude/settings.json and adds agent working rules to…
  • 100tokenfisher
    Report where Claude Code tokens go (by category, model, tool result, cache rebuilds, startup context) and how to cut them. Use when the user asks about token usage, cost, context size, or why usage is high.
  • 100agent-efficiency
    Measure which OpenCode agents and sessions use up your paid model budget (a subscription quota or an API bill), find where the tokens actually go (long sessions, cache rebuilds, compaction, plugins that break the prompt cache), research current prices and benchmark rankings for…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.