RTK

RTK is a cost reduction engine for AI coding agents that compresses tool output and routes heavy work to cheaper models.

Overview

RTK is a cost reduction engine for AI coding agents: it compresses what the agent reads at every tool call, cutting up to 90% of command output noise with zero config changes, and can route heavy work to cheaper models through a pipeline you control and share as one file. Free to use, CLI open source under Apache 2.0, written in Rust.

Diagram: a dense grid of tokens fills 86% of the AI context window, close to autocompact. It flows through the RTK filter, which strips the CLI output noise and leaves the meaningful lines: the same window back down to 73% used, with room to think.

Every turn, your agent sends its whole context back to the model: system prompt, tools, memory, the conversation, and every log, file and web page it has read. You pay for all of it, every time.

Illustration: tokens entering the context window over one coding session, layer by layer: the tool list and system prompt, the conversation, terminal output, files read, and web and MCP results. With RTK, the conversation and everything tools return shrink; the tool list and system prompt stay as they are. The total drops from 323k to 200k tokens, 38% less.

Key Features

  • Shell command output compression
  • Compression of every tool's output
  • Routing heavy work to cheaper models
  • Custom pipelines as one file
  • Pipeline sharing with a command
  • Savings reporting with rtk gain
  • Hooks and optional RTK Proxy
  • Support for 18 AI coding agents

What Can You Use It For?

  • Reducing token costs in AI coding sessions
  • Compressing noisy shell command output
  • Routing long file reads to cheaper models
  • Sharing team pipelines across agents
  • Measuring token savings from daily use

MCP Integration

No MCP (Model Context Protocol) server is listed for RTK yet. When one is available, its URL and setup guide appear here.

Know an official MCP server for RTK? Tell us

Affiliate Program

No affiliate program is listed for RTK yet. When one is available, its link and terms appear here.

Know an official affiliate program for RTK? Tell us

Frequently Asked Questions

RTK is a cost reduction engine for AI coding agents. It cleans what the agent reads at every tool call and can hand heavy work to cheaper models.

On the commands RTK rewrites, output drops by 56% on average and by up to 90% on the noisiest ones. Users can run rtk gain to see their own numbers.

RTK is completely free and open source under the Apache 2.0 license, with no usage limits, no API keys required and no accounts. RTK Pro is available for teams.

RTK works with 18 AI coding agents, including Claude Code, Cursor, GitHub Copilot, Codex, Gemini CLI, Windsurf, Cline and Aider.

No. RTK removes verbose boilerplate and repetitive output noise, not meaningful content, and preserves test failures, error messages, diffs and stack traces in full.

Alternatives and Related Tools

See More

Let's do useful things with LLMs from the command line, with a bent towards software engineering.

Memov is a git-based memory and version control tool for AI coding agents that traces prompts, plans and code changes.

16x Prompt is an advanced tool for AI coding. Manage code context, customize prompts, and ship features faster with multiple LLM API integrations.

devvm is a free and open source tool that creates an isolated sandbox VM with your project's toolchain for you or a coding agent.