AI tools, scored for your job
Get paid to train AI
🤝 You're in the Free & Open Source library — community-built tools you can use without paying. A different concept from our scored AI directory.
Home › Free & Open Source › Software › rtk
✦ Free & open sourceSoftware

rtk

Filters and compresses CLI output by up to 90% before sending context to AI coding agents.

Cut AI token usage on dev command output

A high-performance Rust CLI proxy that filters bash noise for Claude Code, Cursor, Gemini, and other agents.

Free forever · open source · Apache-2.0
✓ Light setup✓ Browser-based✓ Real-time collaboration
9.3
ZEKAI
Essential token saver for AI
Free & open source · Software
Ease of setup9
Usefulness9
Maintenance9.5
Community9.8
★ 80,034
GITHUB
Sep 2026
UPDATED
Apache-2.0
LICENSE
🛠 Don't want to self-host? We can set it up →
⚡ Quick answer

rtk is a single Rust binary CLI proxy that intercepts bash tool calls made by AI coding agents. It filters out boilerplate, whitespace, and irrelevant output from over 100 dev commands before sending the text to your LLM context window. You should use it if you rely on terminal-heavy AI agents and want to lower prompt token consumption.

Runs on
Cross-platform
Hosting
Desktop
Languages
Rust
License
Apache-2.0

What it is

rtk hooks directly into your AI coding agent to rewrite shell commands into filtered rtk variants before execution. It uses smart filtering, error aggregation, output truncation, and log deduplication across git, test runners, linters, AWS CLI, and package managers. Built-in native agent tools like Claude Code's Read or Grep bypass the bash hook, requiring direct rtk command invocation for those workflows.

Who it's for

It suits developers and engineering teams using CLI-driven AI coding agents like Claude Code, Cursor, Roo Code, or Gemini CLI. It does not suit developers who interact with AI solely through web interfaces or chat GUIs without local terminal execution. It also offers limited impact if your agent context is dominated by file reads rather than command outputs.

Key features

Automatic Shell Hook Integration

Rewrites bash commands like git status to rtk git status automatically prior to agent execution.

Smart Output Filtering

Strips code comments, boilerplate text, and redundant whitespace from command outputs.

Error and Log Aggregation

Groups linter and build errors by rule or file while deduplicating repeated log messages.

Test Runner Compaction

Filters test output across Pytest, Cargo, Vitest, Go, and Jest to return only failures.

Zero-Dependency Rust Binary

Installs via Homebrew, winget, Cargo, or direct binary download as a standalone executable.

How to start

Up and running in 3 steps

1
Install rtk using your package manager (e.g. `brew install rtk` or `winget install rtk-ai.rtk`).
2
Run `rtk init -g` or the flag corresponding to your AI agent to set up shell hooks.
3
Restart your AI agent tool and run `rtk gain` to view the savings dashboard.
Real talk

Our honest verdict

What's great

  • Reduces bash output token volume by 60-90% on supported commands.
  • Preserves LLM prompt caching by filtering command outputs prior to context insertion.
  • Supports over 100 commands across Git, linters, package managers, and AWS CLI.
  • Single Rust binary with no runtime dependencies or background daemons.

Where it falls short

  • Does not automatically intercept agent-native non-bash tools like Claude Code's built-in Read or Grep.
  • Requires manual invocation of rtk subcommands for workflows that bypass the terminal hook system.
  • Name collision on crates.io requires installing from Git repository when using Cargo.
  • Does not reduce API costs if your LLM usage is dominated by system prompts and non-CLI context.
Cost

Pricing & license

rtk is free and open source under the Apache-2.0 license. There are no paid tiers or hosted SaaS offerings mentioned in the project. The only cost is running the binary on your local machine.

Paid work

Open remote AI-training roles

880 open remote AI-training roles, updated November 15, 2026; most pay $20–$175 an hour. Zekai lists them free; the application goes to the employer’s platform.

See all open roles →
Compare

Alternatives

Get more

Use it, or have us set it up

📄 Free PDF: rtk for Software
A plain-language guide to getting your first result. Sent to your inbox.
🔔 64 people want a full video tutorial — add your vote
🛠 Don't want to set it up yourself?
We'll install, host & configure rtk for you — and train your team.
Get it done for you ↗
Questions

FAQ

Does rtk break prompt caching in Claude Code?

No. rtk filters command output once before execution, allowing subsequent API calls to cache the reduced context history normally.

Why are my Claude Code Read or Grep tools not auto-filtered?

Claude Code uses native tools for file reading that do not pass through the bash hook system. You must invoke shell commands like rtk read or rg directly.

What causes Cargo installation to fail?

An unrelated project named rtk exists on crates.io. You must install using cargo install --git https://github.com/rtk-ai/rtk.

Radar

Latest AI news

✉️ The weekly free toolkit
The best new free & open-source tools for Software — one short email a week, in your language.
Free · 1 email/week · unsubscribe anytime
Get paid to train AI →

See Zekai first in Google