Back to Rtk

README Es

README_es.md

0.38.05.3 KB
Original Source
<p align="center"> </p> <p align="center"> <strong>Proxy CLI de alto rendimiento que reduce el consumo de tokens LLM en un 60-90%</strong> </p> <p align="center"> <a href="https://github.com/rtk-ai/rtk/actions"></a> <a href="https://github.com/rtk-ai/rtk/releases"></a> <a href="https://opensource.org/licenses/MIT"></a> <a href="https://discord.gg/RySmvNF5kF"></a> <a href="https://formulae.brew.sh/formula/rtk"></a> </p> <p align="center"> <a href="https://www.rtk-ai.app">Sitio web</a> &bull; <a href="#instalacion">Instalar</a> &bull; <a href="docs/TROUBLESHOOTING.md">Solucion de problemas</a> &bull; <a href="docs/contributing/ARCHITECTURE.md">Arquitectura</a> &bull; <a href="https://discord.gg/RySmvNF5kF">Discord</a> </p> <p align="center"> <a href="README.md">English</a> &bull; <a href="README_fr.md">Francais</a> &bull; <a href="README_zh.md">中文</a> &bull; <a href="README_ja.md">日本語</a> &bull; <a href="README_ko.md">한국어</a> &bull; <a href="README_es.md">Espanol</a> </p>

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.

Ahorro de tokens (sesion de 30 min en Claude Code)

OperacionFrecuenciaEstandarrtkAhorro
ls / tree10x2,000400-80%
cat / read20x40,00012,000-70%
grep / rg8x16,0003,200-80%
git status10x3,000600-80%
cargo test / npm test5x25,0002,500-90%
Total~118,000~23,900-80%

Instalacion

Homebrew (recomendado)

bash
brew install rtk

Instalacion rapida (Linux/macOS)

bash
curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh | sh

Cargo

bash
cargo install --git https://github.com/rtk-ai/rtk

Verificacion

bash
rtk --version   # Debe mostrar "rtk 0.27.x"
rtk gain        # Debe mostrar estadisticas de ahorro

Inicio rapido

bash
# 1. Instalar hook para Claude Code (recomendado)
rtk init --global

# 2. Reiniciar Claude Code, luego probar
git status  # Automaticamente reescrito a rtk git status

Como funciona

  Sin rtk:                                         Con rtk:

  Claude  --git status-->  shell  -->  git          Claude  --git status-->  RTK  -->  git
    ^                                   |             ^                      |          |
    |        ~2,000 tokens (crudo)      |             |   ~200 tokens        | filtro   |
    +-----------------------------------+             +------- (filtrado) ---+----------+

Cuatro estrategias:

  1. Filtrado inteligente - Elimina ruido (comentarios, espacios, boilerplate)
  2. Agrupacion - Agrega elementos similares (archivos por directorio, errores por tipo)
  3. Truncamiento - Mantiene contexto relevante, elimina redundancia
  4. Deduplicacion - Colapsa lineas de log repetidas con contadores

Comandos

Archivos

bash
rtk ls .                        # Arbol de directorios optimizado
rtk read file.rs                # Lectura inteligente
rtk find "*.rs" .               # Resultados compactos
rtk grep "pattern" .            # Busqueda agrupada por archivo

Git

bash
rtk git status                  # Estado compacto
rtk git log -n 10               # Commits en una linea
rtk git diff                    # Diff condensado
rtk git push                    # -> "ok main"

Tests

bash
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%)

Build & Lint

bash
rtk lint                        # ESLint agrupado por regla
rtk tsc                         # Errores TypeScript agrupados
rtk cargo build                 # Build Cargo (-80%)
rtk ruff check                  # Lint Python (-80%)

Analiticas

bash
rtk gain                        # Estadisticas de ahorro
rtk gain --graph                # Grafico ASCII (30 dias)
rtk discover                    # Descubrir ahorros perdidos

Documentacion

Contribuir

Las contribuciones son bienvenidas. Abre un issue o PR en GitHub.

Unete a la comunidad en Discord.

Licencia

Licencia MIT - ver LICENSE para detalles.

Descargo de responsabilidad

Ver DISCLAIMER.md.