RTK β CLI Proxy for LLM Token Optimization
μμ½
π μλ³Έ: 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