Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By pleaseai Verified Orgv1.0.0MITIn 1 marketplace
Cuts the token cost of shell command output in Claude Code by filtering it through RTK before it reaches the model. A PreToolUse hook on Bash rewrites commands like git status to compact output, and it needs RTK 0.23.0 or later installed. It is a thin delegator, so rewrite rules live in the RTK binary.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 caution to review before installing
A hook runs when Claude uses the Bash tool
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Reduce LLM token consumption by 60-90% using RTK (Rust Token Killer) to filter and compress command outputs.
RTK is a high-performance CLI proxy written in Rust. It intercepts commands like git status, npm install, and many others, rewriting their output to be dramatically more token-efficient — without changing the information content.
This plugin installs a PreToolUse hook on the Bash tool. Every time Claude runs a shell command, the hook checks whether RTK can rewrite it to produce more compact output. The rewrite is transparent: the command runs normally, but produces compressed output.
All rewrite and permission logic lives in the rtk rewrite binary — its exit codes tell the hook what to do:
| Exit code | Meaning | Hook behavior |
|---|---|---|
| 0 | Rewrite found, no deny/ask rule matched | Rewrite and auto-allow |
| 1 | No RTK equivalent | Pass through unchanged |
| 2 | Deny rule matched | Pass through (Claude Code's native deny handles it) |
| 3 | Ask rule matched | Rewrite, but let Claude Code prompt the user |
The hook gracefully no-ops (with a stderr warning) if:
jq is not available# Quick install (Linux/macOS)
curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/master/install.sh | sh
# Homebrew (macOS/Linux)
brew install rtk-ai/tap/rtk
# Cargo — use the explicit Git URL; plain `cargo install rtk` may install
# the wrong package (name collision with Rust Type Kit)
cargo install --git https://github.com/rtk-ai/rtk rtk
brew install jq or apt install jqclaude
/plugin marketplace add pleaseai/claude-code-plugins
/plugin install rtk@pleaseai
After installation, verify RTK is working:
# Check RTK version (should show: rtk X.Y.Z)
rtk --version
# Show token savings analytics (should work — if it fails, you may have
# the unrelated reachingforthejack/rtk "Rust Type Kit" installed instead)
rtk gain
# Analyze Claude Code history for missed optimization opportunities
rtk discover
Note on
rtk init: This plugin replaces the hook part ofrtk init --global, which patches~/.claude/settings.jsonwith artk hook claudePreToolUse entry — don't combine the two, or the rewrite hook fires twice (RTK detects already-prefixed commands, so it's redundant rather than harmful). The per-projectrtk initinstalls no hook — it only injects RTK instructions into the project'sCLAUDE.mdand creates a.rtk/filters.tomltemplate, so it's safe (but unnecessary) alongside this plugin.
You can also use RTK directly without the plugin hook:
# Run any command through RTK
rtk git status
rtk npm install
rtk proxy <any-command>
# Set up Claude Code hooks without this plugin (alternative)
rtk init # per-project
rtk init --global # system-wide
rtk rewrite command contains all rewrite logic; this plugin is a thin delegatorrtk discover or visit the RTK repositoryBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub pleaseai/claude-code-plugins --plugin rtkPlugins from other owners that cover similar ground