rtk-token-killer
Skill0 starsChanged 5 days agoMITView on GitHub
Install and configure RTK (Rust Token Killer) — a high-performance CLI proxy that reduces LLM token consumption by 60-90%. Automatically rewrites shell commands to their rtk equivalents via hooks. Use when setting up a new dev environment or when token optimization is needed. Do NOT use when raw unfiltered output is required (use rtk proxy for that).
- Pipes a download into a shell
In this repository67 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- abp-angularSkill
- abp-application-layerSkill
- abp-app-nolayersSkill
- abp-authorizationSkill
- abp-blazorSkill
- abp-cliSkill
- abp-coreSkill
- abp-dddSkill
- abp-dependency-rulesSkill
- abp-development-flowSkill
- abp-ef-coreSkill
- abp-infrastructureSkill
- abp-microserviceSkill
- abp-moduleSkill
- abp-mongodbSkill
- abp-multi-tenancySkill
- abp-mvcSkill
- abp-testingSkill
- aspnet-core-apiSkill
- brainstormingSkill
- building-mcp-serversSkill
- caveman-commitSkill
- caveman-compressSkill
- caveman-reviewSkill
- cavemanSkill
- chrome-devtoolsSkill
- create-agent-harnessSkill
- defuddleSkill
- design-patternsSkill
- dispatching-parallel-agentsSkill
- efcore-patternsSkill
- ef-coreSkill
- entity-framework-coreSkill
- executing-plansSkill
- find-skillsSkill
- finishing-a-development-branchSkill
- fluentui-blazorSkill
- github-issuesSkill
- harness-repo-structureSkill
- json-canvasSkill
- memory-mergerSkill
- microsoft-agent-frameworkSkill
- microsoft-code-referenceSkill
- microsoft-docsSkill
- microsoft-skill-creatorSkill
- migrate-aspnetboilerplate-to-abpSkill
- modern-csharp-coding-standardsSkill
- performance-optimizationSkill
- postgresql-code-reviewSkill
- postgresql-optimizationSkill
- premium-frontend-uiSkill
- receiving-code-reviewSkill
- requesting-code-reviewSkill
- security-jwtSkill
- sonarqube-fixSkill
- sql-code-reviewSkill
- sql-optimizationSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 41
After installing the binary, configure hooks for your IDE:
- Distinctive: line 111
When unfiltered output is needed:
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
RTK — Rust Token Killer
High-performance CLI proxy that reduces LLM token consumption by 60-90% through smart filtering, grouping, truncation, and deduplication. Single Rust binary, 100+ supported commands, <10ms overhead.
Installation
Pre-built binary
RTK detects OS and architecture automatically (x86_64 and aarch64 supported):
curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh | shInstalls to ~/.local/bin. Ensure PATH includes it:
export PATH="$HOME/.local/bin:$PATH"Verify
rtk --version # Should show version
rtk gain # Should show token savings statsHook Setup (per IDE)
After installing the binary, configure hooks for your IDE:
Claude Code
rtk init -g # Install hook + RTK.mdCursor / Windsurf
rtk init -g --agent cursor # Cursor
rtk init -g --agent windsurf # WindsurfCodex / Gemini
rtk init -g --codex # Codex (OpenAI)
rtk init -g --gemini # Gemini CLIGoogle Antigravity
rtk init --agent antigravity # Creates .agents/rules/antigravity-rtk-rules.mdDevin
Devin is not officially supported by RTK. The install.sh script installs the RTK binary globally, but you'll need to manually configure RTK for Devin if needed.
How It Works
Without rtk: With rtk:
Claude --git status--> shell --> git Claude --git status--> RTK --> git
^ ~2000 tokens | ^ ~200 tokens |filter|
+---------------------------+ +--------------------+------+Four strategies per command:
- Smart Filtering — removes noise (comments, whitespace, boilerplate)
- Grouping — aggregates similar items (files by directory, errors by type)
- Truncation — keeps relevant context, cuts redundancy
- Deduplication — collapses repeated log lines with counts
Key Commands
| Command | Savings | Description |
rtk git status | -80% | Compact git status |
rtk git diff | -75% | Condensed diff |
rtk git log | -80% | One-line commits |
rtk cargo test | -90% | Failures only |
rtk ls | -80% | Token-optimized tree |
rtk read file.rs | -70% | Smart file reading |
rtk grep pattern . | -80% | Grouped search |
rtk gain | — | Token savings analytics |
rtk discover | — | Find missed savings |
Auto-Rewrite Hook
The hook transparently intercepts Bash commands and rewrites them to rtk equivalents:
git status → rtk git status # automatic
cargo test → rtk cargo test # automatic
cat file.rs → rtk read file.rs # automaticResult: 100% rtk adoption across all conversations and subagents, zero effort.
Bypass
When unfiltered output is needed:
rtk proxy git log --oneline -20 # Full output, still trackedProxy Configuration
Behind corporate proxy, set before install:
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

