μš”μ•½

πŸ”— 원본: GitHub: rtk-ai/rtk

CLI ν”„λ‘μ‹œλ‘œ AI μ½”λ”© μ—μ΄μ „νŠΈμ˜ 토큰 μ†ŒλΉ„λ₯Ό 60-90% 절감. 단일 Rust λ°”μ΄λ„ˆλ¦¬, 제둜 μ˜μ‘΄μ„±. 100+ λͺ…λ Ήμ–΄ 지원.

μ£Όμš” νŠΉμ§•

  • 4κ°€μ§€ μ••μΆ• μ „λž΅: Smart Filtering, Grouping, Truncation, Deduplication
  • μžλ™ Rewrite Hook: Claude Code, Copilot, Cursor, Gemini CLI λ“± 14개 μ—μ΄μ „νŠΈ 지원
  • 토큰 절감 뢄석: rtk gain으둜 μ„Έμ…˜λ³„/일별/전체 μ ˆκ°λŸ‰ 확인

지원 λͺ…λ Ήμ–΄

μ˜μ—­ λͺ…λ Ήμ–΄
파일 ls, read, smart, find, grep, diff
Git status, log, diff, add, commit, push, pull
ν…ŒμŠ€νŠΈ jest, vitest, pytest, go test, cargo test
λΉŒλ“œ tsc, next build, cargo build, ruff, golangci-lint
인프라 docker, kubectl, aws

μ„€μΉ˜ 방법

brew install rtk                                   # Homebrew
curl -fsSL https://...install.sh | sh              # Quick install
cargo install --git https://github.com/rtk-ai/rtk  # Cargo

μ˜ˆμƒ 절감 효과 (30λΆ„ Claude Code μ„Έμ…˜ κΈ°μ€€)

λͺ…λ Ήμ–΄ 횟수 일반 RTK 절감
cat/read 20x 40,000 12,000 -70%
git diff 5x 10,000 2,500 -75%
cargo test 5x 25,000 2,500 -90%
Total Β  ~118,000 ~23,900 -80%

μ—°κ²°

  • [[RTK Token Optimization]] β€” κ°œλ… νŽ˜μ΄μ§€

인용

β€œHigh-performance CLI proxy that reduces LLM token consumption by 60-90%”


원문 (μš”μ•½)

# RTK β€” CLI Proxy for LLM Token Optimization

CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies.

## Key Features
- Smart filtering, grouping, truncation, deduplication
- 100+ supported commands (git, cargo, test runners, docker, aws, etc.)
- Auto-rewrite hook for Claude Code, Copilot, Cursor, Gemini CLI, etc.
- Token savings analytics (rtk gain)

## Supported Commands
Files: ls, read, smart, find, grep, diff
Git: status, log, diff, add, commit, push, pull
Test: jest, vitest, playwright, pytest, go test, cargo test
Build: tsc, next build, cargo build, ruff, golangci-lint
Infra: docker, kubectl, aws

## Installation
- Homebrew: brew install rtk
- Quick: curl -fsSL https://...install.sh | sh
- Cargo: cargo install --git https://github.com/rtk-ai/rtk