Save tokens

Hello,

I’m not sure if you know about rtk, but it helps reduce the number of tokens used with AI.

I saw it on Korben:

And the GitHub repo is here:

I installed it this morning:

rtk gain
RTK Token Savings (Global Scope)
════════════════════════════════════════════════════════════

Total commands:    165
Input tokens:      59.1K
Output tokens:     34.6K
Tokens saved:      25.4K (43.0%)
Total exec time:   25m40s (avg 9.3s)
Efficiency meter: ██████████░░░░░░░░░░░░░░ 43.0%

By Command
───────────────────────────────────────────────────────────

Command                   Count  Saved    Avg%    Time  Impact

───────────────────────────────────────────────────────────

rtk:toml ps aux               1  17.0K   96.4%    49ms  ██████████
rtk grep                     76   5.2K    9.9%     1ms  ███░░░░░░░
rtk ls -la /home/hizo…      1    662   48.2%     3ms  ░░░░░░░░░░
rtk ls -la /home/hizo…      2    656   62.0%     2ms  ░░░░░░░░░░
rtk git stash show            4    591   46.9%     2ms  ░░░░░░░░░░
rtk git diff HEAD – …      1    266   38.4%     7ms  ░░░░░░░░░░
rtk ls -la .                  1    233   67.9%     2ms  ░░░░░░░░░░
rtk git branch                1    196   57.5%     2ms  ░░░░░░░░░░
rtk ls -la /home/hizo…      1    180   72.0%     2ms  ░░░░░░░░░░
rtk ls -la /home/hizo…      1    167   62.8%     5ms  ░░░░░░░░░░

And I don’t see any difference in Claude’s results.

1 Like