Skip to content

RTK

Tu agente IA se ahoga en ruido.
RTK lo limpia.

Contexto limpio
Mejores agentes

Open source · Apache 2.0 · Rust

Diagrama: una cuadrícula densa de tokens llena el 86 % de la ventana de contexto de la IA, cerca de la compactación automática. Pasa por el filtro de RTK, que elimina el ruido de la salida CLI y conserva las líneas útiles: la misma ventana baja al 73 % usado, con espacio para razonar.

5.6M+
Descargas
87.7K+
Stars en GitHub
140K+
Desarrolladores
125+
Comandos
18
Herramientas IA

Con star de desarrolladores de

  • Microsoft
  • Google
  • Amazon
  • Meta
  • Apple
  • NVIDIA
  • IBM
  • Tencent
  • ByteDance
  • Alibaba
  • Shopify
  • Datadog
  • SAP
  • Adobe
  • Intel
  • Samsung
  • Bosch
  • Cisco

+1,100 empresas más

01 / El problema

Pagas por todo lo que lee tu agente

En cada turno, tu agente reenvía todo su contexto al modelo: prompt del sistema, herramientas, memoria, la conversación y cada log, archivo y página web que ha leído. Lo pagas todo, cada vez.

Ilustración: tokens que entran en la ventana de contexto durante una sesión de código, capa por capa: la lista de herramientas y el prompt del sistema, la conversación, la salida del terminal, los archivos leídos y los resultados web y MCP. Con RTK, la conversación y todo lo que devuelven las herramientas se reduce; la lista de herramientas y el prompt del sistema no cambian. El total baja de 323k a 200k tokens, un 38 % menos.

Ejemplo ilustrativo.

02 / El núcleo

The compressor with 5.6M+ downloads

Reescribe tus comandos de shell y quita el ruido de su salida antes de que el agente la lea.

Hecho para desarrolladores

Lenguaje Rust
Licencia Apache 2.0
Arquitectura Hooks & RTK Proxy
Sobrecarga < 20 ms
Comandos 125+
Telemetría Opt-in, sin datos personales
Panel en vivo de rtk gain: ahorro del filtrado de comandos, peticiones y aciertos de caché del RTK Proxy, composición del contexto y ahorro por comando
44,4 % ahorrado

rtk gain en vivo, en uso diario: 41.502 comandos, 4,7 M de tokens ahorrados.

03 / RTK Engine

Un motor completo de reducción de costos

56% less command output on average, up to 90% on the noisiest. And with RTK Engine: route, build, plug in, share — in any agent.

Leer el anuncio de RTK Engine

Comprimir y FiltrarEl núcleo

Un lockfile de 1.200 líneas se convierte en una lista corta de paquetes.

Enrutar

Un archivo de 4.000 líneas lo resume un modelo pequeño; el agente recibe la respuesta, no el archivo.

Construir

«Deja los diffs intactos, comprime todo lo demás».

Conectar

Alguien escribe un método para su stack; cualquier pipeline puede usarlo.

Compartir

Un líder comparte el pipeline; cada uno lo coloca y listo.

Cualquier agente

Un mismo archivo, usado en Claude Code por una persona y en Cursor por otra.

04 / Hazlo tuyo

Un archivo. Cualquier agente.

Una regla dice dónde actúa RTK, cuándo y qué hace. Parte de un pipeline integrado, cambia una línea o escribe el tuyo. Luego compártelo como un solo archivo.

RTK trae sus propios pipelines en el mismo formato; nadie parte de una página en blanco. rtk pipeline show rtk:default muestra exactamente lo que corre hoy.

Leer la guía de pipelines

Un archivo pipeline: extiende los pipelines integrados rtk:posthook y rtk:proxy y añade una regla — dónde: antes de que el agente lea un archivo; cuándo: el archivo supera las 350 líneas; qué: enrutar la lectura a un modelo más barato.

Funciona en Claude CodeCursorCodexGemini CLI +14

Acts in the agent — hooks on the API traffic — RTK Proxy, optional

05 / La evidencia

Muestra tus ganancias, comparte tus pipelines

Ejecuta rtk gain para ver lo que RTK te ahorra y comparte el pipeline que hay detrás con un solo comando.

Ilustración: rtk gain muestra lo que RTK te ahorró, aquí 4,7 M de tokens y un 44 % menos de salida de comandos. rtk pipeline share convierte el pipeline que hay detrás en un enlace, privado o público, que funciona en Claude Code, Cursor, Codex y 15 agentes más.

Pipelines de la comunidad

Pipelines compartidos por usuarios de RTK, con la etiqueta rtk-pipeline en GitHub. Instala uno con un comando o publica el tuyo.

rtk pipeline add github:user/repo
Instala un pipeline. RTK muestra sus reglas y pregunta antes de instalar nada.
rtk pipeline share publish
Publica el tuyo en GitHub, con el ahorro que ha medido.

Revisa antes de instalar. Un pipeline puede reescribir los comandos de tu agente y enviar contenido a los modelos que declara. RTK no revisa los pipelines compartidos y su ahorro lo declara su autor.

Explorar los pipelines de la comunidad
Mira lo que ahorran otros desarrolladores en #show-your-gains en Discord

Compatible con tu stack de IA

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Codex
  • Gemini CLI
  • Windsurf
  • Cline
  • OpenCode

Fewer tokens. Lower bill. Same answers.

06 / Empezar

Funcionando en 30 segundos

Instala, activa el hook y cada comando se comprime automáticamente.

¿Actualizas desde 0.x? Nada cambia hasta que añadas una línea.

Instalación rápida

Una línea para Linux y macOS.

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

Homebrew

macOS y Linux.

$ brew install rtk-ai/tap/rtk
$ brew upgrade rtk-ai/tap/rtk

Binarios pre-compilados

macOS, Linux, Windows.

Descargar desde Releases

Luego activa el hook de reescritura automática

$ rtk init --global

Instala un hook PreToolUse en settings.json de Claude Code: cada llamada Bash se reescribe automáticamente.

Guía completa →

Preguntas

Las más frecuentes

What is RTK (Rust Token Killer)?

RTK is a cost reduction engine for AI coding agents. It cleans what your agent reads at every tool call — shell output, file reads, search results, web pages, MCP calls — cutting up to 90% of command output noise, and it can hand heavy work to cheaper models. The battle-tested Bash compressor developers starred is the core of the engine. RTK is free to use, written in Rust, with the CLI open source under Apache 2.0, and works with Claude Code, Cursor, and 18 AI coding agents.

What is RTK Engine?

RTK Engine turns the battle-tested compressor into a full cost reduction engine. RTK can now compress every tool's output, not just shell commands, route heavy work to cheaper models, and let you build your own pipeline, plug in new methods, and share your setup as one file that works in any supported agent. Upgrading changes nothing: RTK works exactly as before until you add a line.

What is a pipeline?

One file of rules. Each rule reads like a sentence: where RTK acts, when, and what it does — for example, when the agent reads a file longer than 350 lines, send it to a cheaper model. RTK's own behaviour is written in the same format, so you never start from a blank page: pick a built-in pipeline, change one line, or write your own.

Can I share a pipeline with my team?

Yes. A pipeline is one file: share it, drop it in, and it works in any supported agent. The same file can be used in Claude Code by one person and Cursor by another.

Do I need to change anything when I upgrade to RTK Engine?

No. Install, run rtk init, and RTK works exactly as before. Nothing changes until you add a line to a pipeline. The compressor you already rely on is the core of the engine, not a feature that moved.

How many tokens does RTK actually save?

On the commands RTK rewrites, output drops by 56% on average, and by up to 90% on the noisiest ones. Across the community that adds up to billions of tokens saved. The exact figure depends on the command, so the benchmarks page publishes the methodology and the per-command results, and the blog covers what independent studies measured, including the cases where RTK did not come out ahead. For your own numbers, run rtk gain after a few days of use.

Is RTK free? Are there usage limits?

RTK is completely free. It is open source under the Apache 2.0 license, with source code available on GitHub at github.com/rtk-ai/rtk. There are no usage limits, no API keys required and no accounts. Routing to a cheaper model is optional and uses a model key you provide. Telemetry is opt-in: it is off until you explicitly enable it, and it collects no personal data. For teams, RTK Pro is available at pro.rtk-ai.app.

Which AI coding tools and commands does RTK support?

RTK works with 18 AI coding agents, including Claude Code (Anthropic), Cursor, GitHub Copilot, Codex, Gemini CLI, Windsurf, Cline and Aider — and the engine acts on every tool an agent uses: shell commands, file reads, search, web fetches and MCP calls. On the shell side it covers 125+ commands: cargo test, pytest, go test, git diff, git status, git log, grep, find, ls, pnpm list, tsc, eslint, prisma, docker, kubectl, and more.

How does RTK work without changing my workflow?

Running rtk init --global installs hooks inside your agent that act around each tool call: shell commands are automatically rewritten to rtk equivalents, and output is compressed before it enters the context window. If you turn it on, the RTK Proxy also acts on the API traffic, trimming what the agent sends to the model. You continue using your normal commands, with no manual changes to prompts or workflows needed.

Does RTK affect code quality or AI reasoning accuracy?

No. RTK removes verbose boilerplate and repetitive output noise, not meaningful content. Test failures, error messages, diffs, and stack traces are preserved in full. The AI receives the same essential information with far less noise around it, which leaves more of the context window for reasoning.

Dale a tu agente
espacio para pensar

Construye. Conecta. Comparte. En cualquier agente.

Comparte RTK

RTK Pro

La capa de control de IA para tu equipo

RTK se ejecuta en la máquina de cada desarrollador. RTK Pro conecta esas máquinas en una única capa de control e incorpora a todo el equipo: analítica de costos, barreras de seguridad y gobernanza.

  • Observabilidad

    Análisis detallado en todo el equipo: uso y costo por proyecto y por desarrollador. Descubre qué cuesta de verdad y define métricas reales de eficiencia de tokens.

  • Seguridad

    Cada desarrollador que incorporas llega detrás de barreras de seguridad: fugas de secretos bloqueadas, acciones peligrosas detenidas, datos sensibles anonimizados.

  • Gobernanza

    RBAC, ACL y gestión de proyectos con granularidad fina. Un nuevo miembro se conecta una vez y llega listo: compresión, barreras, observabilidad, skills, MCP.

Descubre RTK Pro

El CLI sigue siendo gratuito y de código abierto.