
Token saver config
Adjust, inspect and troubleshoot token-saver compression settings and hooks
Token saver config is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 170
- Last commit
- License
- Apache-2.0
- Listing updated
Similar skills
About Token saver config
This skill helps an agent check the status of the token-saver tool, including lifetime and per-command compression statistics, and explain whether a given shell command gets routed through a compression processor. It documents the layered configuration order, from built-in defaults through a global config file and project file to environment variables, along with the settings users most often change, such as the master enable switch, minimum compression ratio, processor exclusions and wrap timeout.
For troubleshooting, the skill walks through a fixed sequence: confirming Python 3.10 or newer is available, running the explain command, turning on debug logging to a hook log file, and testing the pre-tool hook script directly with a sample Bash payload. It also notes a security rule that some settings can only be placed in the global config or environment variables, not in project-level files.
The skill expects the token-saver command-line tool and Python 3.10+ to be installed. It is part of a Python project under Apache-2.0 and ships with a Claude Code plugin marketplace entry.
When your agent uses it
Configure and diagnose token-saver compression settings. Use when the user asks about adjusting compression levels, checking processor status, debugging hook issues, or reviewing savings statistics.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (4 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the token-saver plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add ppgranger/token-saver
/plugin install token-saver@token-saver-marketplaceOr copy only this skill to ~/.claude/skills/token-saver-config:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ppgranger/token-saver.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/token-saver-config &&
cp -R "$tmp/skills/token-saver-config" ~/.claude/skills/token-saver-config &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/token-saver-config inside it instead.
Copy the skill folder to ~/.agents/skills/token-saver-config to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ppgranger/token-saver.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/token-saver-config &&
cp -R "$tmp/skills/token-saver-config" ~/.agents/skills/token-saver-config &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/token-saver-config inside it instead.
Copy the skill folder to ~/.cursor/skills/token-saver-config to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ppgranger/token-saver.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/token-saver-config &&
cp -R "$tmp/skills/token-saver-config" ~/.cursor/skills/token-saver-config &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/token-saver-config inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/ppgranger/token-saver.git --path skills/token-saver-configOr copy the folder to ~/.gemini/skills/token-saver-config yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/token-saver-config:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ppgranger/token-saver.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/token-saver-config &&
cp -R "$tmp/skills/token-saver-config" ~/.copilot/skills/token-saver-config &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/token-saver-config inside it instead.
Get the folder:
git clone --depth 1 https://github.com/ppgranger/token-saver.gitThen copy token-saver/skills/token-saver-config into your agent's skills folder as token-saver-config. Agents that support SKILL.md read one folder per skill.
What it does
- Compression statistics review
- Shows lifetime and per-command compression savings, with optional JSON output for scripting.
- Command routing explanation
- Explains whether a command is compressible, which processor would handle it, and why it may be excluded.
- Dry-run benchmarking
- Measures how much a command's output would compress without replacing the real output.
- Layered settings guidance
- Describes the precedence of defaults, global config, project config and environment variables.
- Hook diagnostics
- Walks through enabling debug logs and testing the pre-tool hook with a sample payload.
- Processor exclusion control
- Covers how to disable specific processors such as docker through configuration.
Good for
- Check how much output compression has saved so far
- Find out why a particular git or npm command was not compressed
- Turn off compression for a specific tool like docker
- Raise the minimum compression ratio to discard weak results
- Debug a token-saver hook that is not rewriting commands
Token saver config FAQ
What does Token saver config need to run?
It needs the token-saver command-line tool and Python 3.10 or newer available in the PATH.
Can the agent change settings with a command?
No CLI subcommand writes config files. The skill directs users to edit ~/.token-saver/config.json directly or set TOKEN_SAVER_* environment variables.
Why are some settings ignored in a project file?
Settings such as disabled_processors and redaction_allowlist are only honored from the global config or environment variables, not from a project-level .token-saver.json.
Where does debug logging go?
With TOKEN_SAVER_DEBUG set to true, logs are written to ~/.token-saver/hook.log, or to the APPDATA token-saver folder on Windows.
How do I install Token saver config in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/token-saver-config to use it in all your projects, or to .claude/skills/token-saver-config in one project. Or install the token-saver plugin, which includes it: /plugin marketplace add ppgranger/token-saver, then /plugin install token-saver@token-saver-marketplace.
Does Token saver config run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Token saver config?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to Token saver config?
The closest alternatives to Token saver config are Manage context, Session waste report, Entroly context control, Guardrail tester and Session hardening.
Where this comes from
- Description: from the skill's own SKILL.md.




