| name | RTK |
| version | 0.1.0 |
| description | RTK (Rust Token Killer) — token-optimized CLI proxy for Claude Code. USE WHEN rtk, token savings, optimize tokens, reduce tokens, command optimization. |
RTK (Rust Token Killer) - Token-Optimized Commands
Usage: Token-optimized CLI proxy (60-90% savings on dev operations)
Golden Rule
Always prefix commands with rtk. If RTK has a dedicated filter, it uses it. If not, it passes through unchanged. This means RTK is always safe to use.
RTK calls binaries directly — shell aliases are bypassed. No command prefix needed. Use command only for alias-prone commands RTK doesn't cover (cd, cp, mv, rm).
Important: Even in command chains with &&, prefix each command with rtk.
Meta Commands (always use rtk directly)
rtk gain
rtk gain --history
rtk discover
rtk proxy <cmd>
rtk init
rtk init --global
Installation Verification
rtk --version
rtk gain
which rtk
Name collision: If rtk gain fails, you may have reachingforthejack/rtk (Rust Type Kit) installed instead.
Hook-Based Usage
All other commands are automatically rewritten by the Claude Code hook.
Example: git status → rtk git status (transparent, 0 tokens overhead)
RTK Commands by Workflow
Build & Compile (80-90% savings)
rtk cargo build
rtk cargo check
rtk cargo clippy
rtk tsc
rtk lint
rtk prettier --check
rtk next build
Test (90-99% savings)
rtk cargo test
rtk vitest run
rtk playwright test
rtk test <cmd>
Git (59-80% savings)
rtk git status
rtk git log
rtk git diff
rtk git show
rtk git add
rtk git commit
rtk git push
rtk git pull
rtk git branch
rtk git fetch
rtk git stash
rtk git worktree
Note: Git passthrough works for ALL subcommands, even those not explicitly listed.
GitHub (26-87% savings)
rtk gh pr view <num>
rtk gh pr checks
rtk gh run list
rtk gh issue list
rtk gh api
JavaScript/TypeScript Tooling (70-90% savings)
rtk pnpm list
rtk pnpm outdated
rtk pnpm install
rtk npm run <script>
rtk npx <cmd>
rtk prisma
Files & Search (60-75% savings)
rtk ls <path>
rtk read <file>
rtk grep <pattern>
rtk find <pattern>
Analysis & Debug (70-90% savings)
rtk err <cmd>
rtk log <file>
rtk json <file>
rtk deps
rtk env
rtk summary <cmd>
rtk diff
Infrastructure (85% savings)
rtk docker ps
rtk docker images
rtk docker logs <c>
rtk kubectl get
rtk kubectl logs
Network (65-70% savings)
rtk curl <url>
rtk wget <url>
Sources