One Liner
2026-06-05 10:20
RTK cuts token waste from Bash tool calls. Caveman cuts token waste from assistant prose.
RTK = Rust Token Killer.
It acts as CLI proxy for Claude Code shell calls and rewrites commands into token-optimized versions, especially noisy dev commands like git status and git diff.
brew install rtkrtk --version
- add
PreToolUsehook forBashin~/.claude/settings.json - command:
rtk hook claude
- create
~/.claude/RTK.md - reference it from
CLAUDE.mdwith@RTK.md
rtk gainrtk gain --historyrtk discoverrtk proxy <cmd>
- name collision possible with another
rtkbinary - if
rtk gainfails, check which binary gets called
Caveman compresses assistant communication.
Goal: drop filler, articles, and pleasantries while keeping technical accuracy.
claude mcp add-from-marketplace caveman@caveman
SessionStart→caveman-activate.jsUserPromptSubmit→caveman-mode-tracker.js
caveman-config.jscaveman-stats.js- statusline scripts
lite= mild compressionfull= default, terse but readableultra= maximum compression
/caveman lite|full|ultra/caveman-commit/caveman-review/caveman-compress/caveman-help
stop cavemannormal mode
- hook scripts may hardcode Node path
- better use plain
nodefrom$PATH
Two productivity plugins for Claude Code: RTK (token savings on CLI tool calls) and Caveman (compressed communication mode).
1. RTK (Rust Token Killer)RTK is a CLI proxy that intercepts shell commands from Claude Code and rewrites them into token-optimized versions — cutting 60-90% of token usage on dev operations like `git status`, `git diff`, etc.
Installbrew install rtkrtk --version # verify install
Hook setupRTK integrates with Claude Code via a PreToolUse hook on the Bash matcher. Add to ~/.claude/settings.json:
{ "hooks": { "PreToolUse": [ { "matcher": "Bash", "command": "rtk hook claude" } ] }}
This intercepts every Bash tool call and transparently rewrites commands to rtk proxies (e.g. git status → rtk git status).
Documentation referenceCreate ~/.claude/RTK.md with usage reference, then reference it from your CLAUDE.md:
@RTK.md
RTK.md should document:- Meta commands (run directly, not proxied): - rtk gain — show token savings analytics - rtk gain --history — command usage history with savings - rtk discover — analyze Claude Code history for missed optimization opportunities - rtk proxy <cmd> — execute raw command without filtering (debugging)- Hook-based usage — all other commands are automatically rewritten by the hook. No manual intervention needed.
Verify it worksrtk gain # should show savings stats, not "command not found"
Warning: Name collision exists with reachingforthejack/rtk (Rust Type Kit). If rtk gain fails, check which rtk points to the correct binary.
2. CavemanCaveman is a Claude Code plugin that compresses assistant communication — cutting ~75% of filler tokens while keeping full technical accuracy. Think: smart caveman who drops articles, filler words, and pleasantries but keeps every technical detail.
InstallInstall from the Claude Code marketplace:claude mcp add-from-marketplace caveman@caveman
This registers it in ~/.claude/settings.json automatically.
How it worksCaveman uses two hooks (user-level, stored in ~/.claude/hooks/):
Hook | Script | PurposeSessionStart | caveman-activate.js | Injects "CAVEMAN MODE ACTIVE" instructions at session startUserPromptSubmit | caveman-mode-tracker.js | Re-injects reminder per prompt, tracks intensity level
Supporting files installed alongside:- caveman-config.js — configuration- caveman-stats.js — token savings tracking (via /caveman-stats)- Statusline scripts for mode display
Intensity levelsSwitch with /caveman lite|full|ultra:
Level | Effectlite | Drop filler, keep grammar mostly intactfull (default) | Drop articles, fragments OK, short synonymsultra | Maximum compression, telegraphic style
Skills provided- /caveman lite|full|ultra — switch intensity- /caveman-commit — ultra-compressed commit messages- /caveman-review — ultra-compressed code review comments- /caveman-compress — compress memory/doc files into caveman format- /caveman-help — quick reference card
DisableSay stop caveman or normal mode in conversation to revert to standard English.
Important caveatNode path hardcoding: The hook commands may hardcode the node binary path (e.g. /opt/homebrew/Cellar/node/XX.Y.Z/bin/node). This breaks when Homebrew bumps the node version. Fix: edit the hook scripts to use plain node instead of the absolute path, so it resolves from $PATH.
Verify both are activeStart a new Claude Code session. You should see:- SessionStart:startup hook success: CAVEMAN MODE ACTIVE — Caveman is injecting- Bash commands getting rewritten transparently — RTK is proxyingRun rtk gain to confirm token savings are being tracked
SummaryPlugin | Install method | Integration | What it savesRTK | Homebrew | PreToolUse hook on Bash | 60-90% tokens on CLI outputCaveman | Claude Code marketplace | SessionStart + UserPromptSubmit hooks | ~75% tokens on assistant prose1 Linked mention
- Tech
…l Intelligence]] Machine Learning Machine Learning Specialization Notes Claude Code RTK and Caveman Setup Supply-chain Hardening for npm pnpm and Bun Related indexes Atlas […