<< Home | Tech
Cuts token usage 60-90% on common dev commands
| Area | Tech |
| AI used | RTK (Rust Token Killer) |
| Source | r/BuildWithClaude |
| Posted | 2026-05-23 |
The move
Install and use the RTK CLI proxy to filter and compress command output before it reaches Claude's context window.Steps
- Install the RTK CLI tool from the official repository
- Configure your development environment to route commands through the RTK proxy
- Run standard development commands like git status or npm install through RTK
- Monitor your token usage to verify the reduction
Prompt for your AI
Act as a technical filter. I am going to provide the output of [insert command, e.g., 'npm install']. Summarize the output to include only the essential information required for a developer to understand the status, removing all redundant logs, timestamps, and unnecessary metadata to minimize token count.
What happened
Developers using Claude Code often face high token usage when running standard commands like git status or npm install. RTK acts as a CLI proxy that filters and compresses this output. This reduces the amount of data sent to the model, cutting token usage by 60-90%.Watch out
Aggressive filtering might remove error messages or warnings necessary for debugging. Always verify the output if a command fails unexpectedly.Give it to your agent
Read https://howtheyuse.ai/p/cuts-token-usage-60-90-on-common-dev-commands.md and help me do this.