Show HN: RTK – Simple CLI to reduce token usage in your LLM prompts
Posted by patrick4urcloud 21 hours ago
I built this small tool for my own use to reduce the number of tokens I send to LLMs (Claude Code, etc.). It’s just a simple utility to filter command outputs before they hit the context.
Here is what I’m getting with it so far:
I’m putting it out there in case it's useful to anyone else. It's written in Rust.
P.S. This is just a tool I built for my own needs and decided to share. If you have constructive feedback on the Rust code or the logic, I'd love to hear it. If it's not for you, that's totally fine too—no need for "angry" comments, just trying to be helpful!
Comments
Comment by patrick4urcloud 20 hours ago
Total commands: 41 Input tokens: 6.8K Output tokens: 1.8K Tokens saved: 6.0K (88.2%)
Command Count Saved Avg% rtk git status 11 2.8K 81.2% rtk grep 3 1.5K 31.9% rtk git push 22 1.3K 92.0% rtk ls 5 431 47.1%