/tokensaver:tokensaver-savingsfrom tokensaver
Explains tokenSaver's savings model: equivalent-calls mapping, pricing table, persisted state files, and how to read them. Useful when users ask about savings numbers, status line figures, or state files.
Ships in tokensaver. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
For CLI examples, resolve the installed plugin root from the skill location if CLAUDE_PLUGIN_ROOT is unset. Select the current host explicitly: claude for Claude Code, codex for Codex. In Bash use TOKENSAVER_HOST=codex node "$CLAUDE_PLUGIN_ROOT/scripts/tokensaver.mjs" <command> (substitute claude on Claude Code). In PowerShell use $env:TOKENSAVER_HOST = "codex" (or "claude"), then node "$env:CLAUDE_PLUGIN_ROOT/scripts/tokensaver.mjs" <command>. A quoted absolute script path works in either shell. Do not use Bash variable expansion in PowerShell. Use this invocation for every command below; the command arguments stay the same.
tokenSaver estimates what its MCP calls would have cost as native tool calls.
Search, Edit or Sql call maps to "equivalent native calls":
Edit → max(edits,1) + max(files,1)Search → 2 + extra globs + (regex?1:0) + (summary?1:0)Sql → 5 flat, anything else → 1callsSaved = max(0, equivalent / 1.29 − actualCalls) — roundtrips avoided; 1.29 is the measured number of native tool calls the model already packs per turn, so the value can be fractional.timeSaved = callsSaved × 8.8s (measured mean of a native file-op roundtrip). Session and lifetime time are recomputed from callsSaved, so older sessions follow the current constant.tokensSaved = callsSaved × avgTokensPerTurn (no multiplier).saverCallsByKind (Search/Edit/Sql/other); sessions scanned before the field existed have no breakdown.costSaved uses the embedded per-model pricing (e.g. sonnet $3/$15, opus $5/$25, haiku $0.8/$4 per million).~/.claude/tokensaver/sessions/<sessionId>.json (~/.codex/tokensaver/sessions/ on Codex) — per-session state: byte offset for incremental scans, usage totals, accumulated savings, daily rollups, compaction counts. On Codex, subagents.<agentId> slices track spawn_agent child threads and roll up into the session totals.settings.json in the same home dir — settings.tokensaver savings # lifetime rollup
tokensaver savings --session <id> # one session
requestId so nothing is double-counted.exec wrapper contains several calls and any result reports an error, credit for that wrapper is withheld because individual successes cannot be reliably attributed.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub brucee/tokensaver --plugin tokensaver5 skills in this plugin
/tokensaverWhat the tokenSaver plugin does, its tools, commands and configuration. Use when the user asks about tokenSaver itself, its features, or how to control it./tokensaver-reviewLocal multi-lens code review: collects the full change (committed vs base, staged, unstaged, untracked) and fans it out to parallel single-lens review subagents, then mechanically verifies citations and synthesizes one ranked report. Use when the user asks for a code review, a review before committing, or 'review my changes'./tokensaver-settingsChange tokenSaver settings — enable/disable the plugin features, the status line, hook behavior. Use when the user asks to turn something on/off, change plugin behavior, or asks what settings exist./tokensaver-statusCheck tokenSaver's health — version, data dir, settings, lifetime savings, and the doctor self-check for broken installs. Use when the user asks if the plugin is working, reports that hooks/tools/savings stopped, or wants diagnostics.Other plugins' skills for the same job