README_es.md
rtk filtra y comprime las salidas de comandos antes de que lleguen al contexto de tu LLM. Binario Rust unico, cero dependencias, <10ms de overhead.
| Operacion | Frecuencia | Estandar | rtk | Ahorro |
|---|---|---|---|---|
ls / tree | 10x | 2,000 | 400 | -80% |
cat / read | 20x | 40,000 | 12,000 | -70% |
grep / rg | 8x | 16,000 | 3,200 | -80% |
git status | 10x | 3,000 | 600 | -80% |
cargo test / npm test | 5x | 25,000 | 2,500 | -90% |
| Total | ~118,000 | ~23,900 | -80% |
brew install rtk
curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh | sh
cargo install --git https://github.com/rtk-ai/rtk
rtk --version # Debe mostrar "rtk 0.27.x"
rtk gain # Debe mostrar estadisticas de ahorro
# 1. Instalar hook para Claude Code (recomendado)
rtk init --global
# 2. Reiniciar Claude Code, luego probar
git status # Automaticamente reescrito a rtk git status
Sin rtk: Con rtk:
Claude --git status--> shell --> git Claude --git status--> RTK --> git
^ | ^ | |
| ~2,000 tokens (crudo) | | ~200 tokens | filtro |
+-----------------------------------+ +------- (filtrado) ---+----------+
Cuatro estrategias:
rtk ls . # Arbol de directorios optimizado
rtk read file.rs # Lectura inteligente
rtk find "*.rs" . # Resultados compactos
rtk grep "pattern" . # Busqueda agrupada por archivo
rtk git status # Estado compacto
rtk git log -n 10 # Commits en una linea
rtk git diff # Diff condensado
rtk git push # -> "ok main"
rtk jest # Jest compacto
rtk vitest # Vitest compacto
rtk pytest # Tests Python (-90%)
rtk go test # Tests Go (-90%)
rtk cargo test # Tests Rust (-90%)
rtk test <cmd> # Solo fallos (-90%)
rtk lint # ESLint agrupado por regla
rtk tsc # Errores TypeScript agrupados
rtk cargo build # Build Cargo (-80%)
rtk ruff check # Lint Python (-80%)
rtk gain # Estadisticas de ahorro
rtk gain --graph # Grafico ASCII (30 dias)
rtk discover # Descubrir ahorros perdidos
Las contribuciones son bienvenidas. Abre un issue o PR en GitHub.
Unete a la comunidad en Discord.
Licencia MIT - ver LICENSE para detalles.
Ver DISCLAIMER.md.