Hooks
Hook
Hooks
What token-saver runs automatically, and when. A hook is a command Claude Code fires at a fixed moment, without you asking for it.
Install
> /plugin marketplace add ppgranger/token-saver > /plugin install token-saver@token-saver-marketplace
Ships with token-saver. Installing the plugin gets these hooks.
What fires, and when
PreToolUse
- Matches
Bashpython3 "${CLAUDE_PLUGIN_ROOT}/scripts/hook_pretool.py"
SessionStart
Fires once when a session begins, and again after a context compaction. It is where a plugin sets up its environment, or restores state the compaction dropped.
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/hook_session.py"
In the plugin's words
How token-saver describes its own hook set.
Token-saver: compress verbose CLI output to save tokens
Ships withtoken-saver
Keep the signal. Stop rereading the same failures. Token-Saver compresses the terminal output your AI coding assistant reads — git diff, pytest, npm install, terraform plan, kubectl, docker — to leave more room for the code, instructions, and next decision.
Get the whole plugin
Stats
159
Stars
14
Forks
Maintained
Maintenance
Python
Language
Apache-2.0
License
1mo ago
Last commit
8mo ago
Created
4h ago
Added

