/tokensaver:tokensaverfrom tokensaver
Compresses tool round-trips (Search, Edit, Sql) into single calls, tracks savings, and shows status. Fully local plugin for Claude Code and Codex.
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 is a Claude Code and Codex plugin that compresses tool round-trips (Search, Edit, Sql), tracks the tool calls it saves, and shows the savings in the status line (Claude only). It is fully local — no account, no telemetry, no subscription.
code)The three tools are Search, Edit, Sql — on Claude Code they are exposed as mcp__plugin_tokensaver_code__*, on Codex as mcp__code__*.
Search — file discovery + content match + TS/JS summary + importer graph in one call.Edit — batch multi-file edits with fuzzy matching, #line-range and #cell= addressing, syntax validation and protected paths.Sql — read queries against postgres/mysql/sqlite/duckdb with schema introspection and auto-LIMIT.tokensaver status # plugin status + lifetime savings
tokensaver savings # savings stats (--session <id> for one session)
tokensaver settings --show # current settings
tokensaver settings --set <key> <true|false> # toggle a setting (sql: JSON policy)
tokensaver recall '<query>' # search past session transcripts
tokensaver doctor # verify the install
<home>/settings.json — persisted settings (booleans); home is ~/.claude/tokensaver/ on Claude, ~/.codex/tokensaver/ on Codex..tokensaver.json in a project — feature flags (systemPromptReorder, protectedFiles, betterErrors, syntaxValidation, toolRedirect) and protectedPaths.TOKENSAVER_FEATURE_<FLAG>=1|true — env override per flag.TOKENSAVER_HOME — relocates the data dir.sql policy lives in the host settings file under tokensaver.sql (~/.claude/settings.json on Claude, ~/.codex/tokensaver/host-settings.json on Codex); clear it with tokensaver settings --set sql none..mcp.json; alwaysLoadTools is not a runtime setting.statusLine registration is Claude-only; it is inert on Codex.CODEX_HOME relocates the Codex configuration root. TOKENSAVER_HOME overrides plugin state and the Codex SQL-policy file.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
/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-savingsHow tokenSaver measures savings — the equivalent-calls model, pricing table, persisted state files, and how to read them. Use when the user asks about the savings numbers, the status line figures, or the state files./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