top | item 46812499

Show HN: RTK – Simple CLI to reduce token usage in your LLM prompts

1 points| patrick4urcloud | 1 month ago

Hi,

I developed and use an IA tool to save $$$ . https://github.com/pszymkowiak/rtk

Save your token on any IA code solution: rtk gain from a session:

  RTK Token Savings
  ════════════════════════════════════════
  Total commands:    650
  Input tokens:      3.9M
  Output tokens:     204.4K
  Tokens saved:      3.7M (96.2%)

  By Command:
  ────────────────────────────────────────
  Command                Count       Saved     Avg%
  rtk find                  38        2.1M    86.2%
  rtk git status            93        1.4M    85.4%
  rtk grep                  67       84.5K    50.3%
  rtk read                  63       49.9K    30.7%
  rtk ls                   121       14.5K    52.9%
  rtk git push             138        9.4K    91.3%
  rtk env                   28        8.4K    98.4%
  rtk run-test               9        6.4K    87.0%
  rtk summary               13        5.1K    70.3%
  rtk kubectl svc            9        3.0K    95.3%
Free to Use !

Estimations:

  Tier             Quota Brut      Équivalent RTK
  Pro ($20)        6.0M tokens     ~24M tokens
  Max 5x ($100)    30.0M tokens    ~120M tokens
  Max 20x ($200)   120.0M tokens   ~480M tokens

1 comment

order

patrick4urcloud|28 days ago

v0.7.1 ! all new features: - Token economics dashboard — track savings per command, cost analysis, execution time - Session scanner — analyzes your Claude Code history, finds commands that could have used rtk, and tells you how many tokens you wasted - Auto-rewrite hook — intercepts Claude Code calls in real-time and rewrites them to rtk equivalents, no manual setup needed - Rust toolchain support — compact output for cargo build, test, clippy - Git power user commands — branch, fetch, stash, worktree, show, full flag forwarding - Full JavaScript/TypeScript stack — npm/npx routing, pnpm build/typecheck, curl with auto JSON detection - GitHub CLI proxy — PR create, merge, diff, comment, edit, gh api passthrough - Three-tier parser infrastructure — JSON, regex, raw fallback system for reliable output compression across all tools