| name | rtk |
| description | Must use whenever you're about to run a command in the terminal to have faster and more efficient output, all while reducing tokens in your context window. |
| metadata | {"author":"EDM115","version":"2026.4.18","source":"Grabbed from https://github.com/rtk-ai/rtk"} |
RTK (Rust Token Killer) - Token-Optimized Commands
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 is also cross-platform, so it works in Windows and with cmd/pwsh.
Important: Even in command chains with &&, use rtk:
git add . && git commit -m "msg" && git push
rtk git add . && rtk git commit -m "msg" && rtk git push
Examples
rtk git status
rtk cargo test
rtk npm run build
rtk pytest -q
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>
Meta Commands
rtk gain
rtk gain --history
rtk discover
rtk proxy <cmd>
rtk init
rtk init --global
Token Savings Overview
| Category | Commands | Typical Savings |
|---|
| Tests | vitest, playwright, cargo test | 90-99% |
| Build | next, tsc, lint, prettier | 70-87% |
| Git | status, log, diff, add, commit | 59-80% |
| GitHub | gh pr, gh run, gh issue | 26-87% |
| Package Managers | pnpm, npm, npx | 70-90% |
| Files | ls, read, grep, find | 60-75% |
| Infrastructure | docker, kubectl | 85% |
| Network | curl, wget | 65-70% |
| Overall average: 60-90% token reduction on common development operations. | | |