Skip to content

RTK

AI エージェントはノイズに埋もれている。
RTK が片づける。

RTK Pro:チームのための AI コントロールレイヤー

クリーンなコンテキスト。
より賢いエージェント。

オープンソース · Apache 2.0 · Rust

図:トークンの密なグリッドが AI コンテキストウィンドウの 86% を占め、自動圧縮の直前です。RTK フィルターを通ると CLI 出力のノイズが取り除かれ、意味のある行が残ります:同じウィンドウが 73% 使用まで下がり、考える余地が生まれます。

1.6M+
ダウンロード
82.9K+
GitHub スター
140K+
開発者
125+
コマンド
17
AI コーディングツール

スターを付けた開発者の所属企業

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

ほか 1,100 社

01 / 問題

コンテキストウィンドウは貴重です

AI エージェントに必要なのは、出力の量ではなく関連性です。

グラフ:セッション終盤の Claude Code コンテキストウィンドウ()使用率 86%、自動コンパクト間近です。固定コストはごくわずか(システムプロンプトとツール 3%、MCP ツール 1%、メモリファイル 1%、スキル 0.5%)で、実際に埋めているのは会話履歴 62% と CLI 出力・ログ 18%。RTK がフィルタリングすると CLI は 5%、全体は 73% まで下がります。

02 / 解決策

入れたら忘れていい

RTK は薄いオープンなプロキシ層です。ワークフローに何も足さず、ノイズだけを取り除きます。

開発者のために

言語 Rust
ライセンス Apache 2.0
アーキテクチャ CLI フックとプロキシ
オーバーヘッド < 20 ms
コマンド 125+
テレメトリ オプトイン、個人データなし

03 / 実際の動作

違いは一目瞭然

RTK の前後で実際の出力を比較し、何が除かれるかを確認できます。

なぜ削除されたのか?
グループ化 繰り返しの出力を件数と要約にまとめます。
フィルタリング 価値の低いボイラープレートや進捗ノイズを削除します。
保持 失敗・警告など推論に必要な情報はそのまま残ります。
RTK なし 1,042 行
$ cargo build
   Compiling libc v0.2.155
   Compiling proc-macro2 v1.0.85
   Compiling unicode-ident v1.0.12
   Compiling quote v1.0.36
   Compiling syn v2.0.66
   Compiling cfg-if v1.0.0
   Compiling once_cell v1.19.0
warning: unused variable: `raw`
  --> src/filter.rs:214:9
warning: field is never read: `depth`
  --> src/tree.rs:87:5
   Compiling serde v1.0.197
   Compiling anyhow v1.0.79
⋮ 1,026 more lines
    Finished dev [unoptimized] in 32.48s
RTK あり 4 行
$ rtk cargo build
✓ build finished in 32.4s
· 214 crates compiled
· 2 warnings: filter.rs:214, tree.rs:87
RTK なし 1,842 行
$ cargo test
running 184 tests
test filter::tests::collapses_dupes ... ok
test filter::tests::keeps_failures ... ok
test parse::tests::ansi_codes ... ok
test parse::tests::empty_input ... ok
test tree::tests::depth_limit ... ok
test gain::tests::daily_rollup ... ok
test proxy::tests::passthrough ... ok
test proxy::tests::exit_codes ... ok
test git::tests::short_status ... ok
test git::tests::diff_stat ... ok
⋮ 1,829 more lines
test result: ok. 184 passed; 0 failed
RTK あり 3 行
$ rtk cargo test
✓ 184 passed · 0 failed · 3 ignored
· finished in 3.2s
RTK なし 38 行
$ git status
On branch feat/filter-v2
Your branch is ahead of 'origin/feat/filter-v2'
  by 3 commits.
  (use "git push" to publish your commits)

Changes not staged for commit:
  (use "git add <file>..." to update)
  (use "git restore <file>..." to discard)
        modified:   src/filter.rs
        modified:   src/proxy.rs

Untracked files:
  (use "git add <file>..." to include)
        tests/fixtures/big_output.log
⋮ 21 more lines
RTK あり 5 行
$ rtk git status
feat/filter-v2 ↑3
M src/filter.rs
M src/proxy.rs
? tests/fixtures/big_output.log
RTK なし 312 行
$ find . -name "*.rs"
./src/main.rs
./src/filter.rs
./src/proxy.rs
./src/commands/git.rs
./src/commands/test.rs
./src/commands/grep.rs
./target/debug/build/libc-8f00…/out/lib.rs
./target/debug/build/serde-71ab…/out/de.rs
./target/debug/build/syn-90c1…/out/gen.rs
⋮ 303 more lines
RTK あり 3 行
$ rtk find "*.rs" .
29 matches (target/ excluded)
src/ 14 · commands/ 9 · tests/ 6

04 / 実測データ

あなたの rtk 節約量を測る

開発者の日常利用から得た実際の rtk gain 出力。

88.9% の効率を示す rtk gain ダッシュボード
効率 88.9%

数週間の日常利用で:15,720 コマンドを処理し、1.30 億トークンを節約。

rtk gain の日次・週次の内訳
コマンド別の分析

コマンド別の日次・週次・月次の統計。rtk gain を実行すると自分の数値を確認できます。

Discord の #show-your-gains で他の開発者の節約量を見る

05 / 効果

より高い効率

ノイズを減らし、文脈を活かし、トークンを節約。

ノイズ削減

クリーンなコンテキストウィンドウ。

推論の質が向上

より関連性の高い情報がエージェントに届きます。

トークン削減

不要な出力がコンテキストに入りません。

あなたの AI コーディング環境に対応

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

06 / はじめる

30 秒で動き出す

インストールしてフックを有効化すれば、あらゆるコマンドが自動で圧縮されます。

クイックインストール

Linux と macOS 向けのワンライナー。

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

Homebrew

macOS と Linux。

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

ビルド済みバイナリ

macOS、Linux、Windows。

Releases からダウンロード

次に自動書き換えフックを有効化

$ rtk init --global

Claude Code の settings.json に PreToolUse フックを追加し、すべての Bash 呼び出しを自動で書き換えます。

完全インストールガイド →

よくある質問

よくいただく質問

What is RTK (Rust Token Killer)?

RTK is an open-source CLI tool that compresses command outputs before they reach the AI context window. It cuts up to 90% of that output noise with zero configuration changes, which leaves more of the context window for reasoning and lowers the token cost of every command that runs. RTK is written in Rust, Apache 2.0 licensed, and works transparently with Claude Code, Cursor, and any terminal-based AI assistant.

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. 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 Claude Code (Anthropic), Cursor, Gemini CLI, Aider, and any AI assistant that reads terminal output. It supports all major CLI 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 a PreToolUse hook in Claude Code that automatically rewrites Bash commands to rtk equivalents at the proxy layer. You continue using your normal commands. RTK intercepts and compresses the output before it enters the context window, 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.

エージェントに
考える余地を

RTK をインストールして、ノイズをコンテキストから締め出しましょう。

RTK をシェア

RTK Pro

チームのための AI コントロールレイヤー

RTK は各開発者のマシン上で動きます。RTK Pro はそれらのマシンをひとつのコントロールレイヤーにつなぎ、コスト分析、セキュリティガードレール、ガバナンスでチーム全体を立ち上げます。

  • オブザーバビリティ

    チーム全体の詳細な分析:プロジェクト別・開発者別の利用状況とコスト。何が本当にコストなのかを把握し、実際のトークン効率指標を定義できます。

  • セキュリティ

    オンボードした開発者は最初からガードレールの内側で作業します。シークレットの漏洩を防ぎ、危険な操作を止め、機微なデータを匿名化します。

  • ガバナンス

    きめ細かい RBAC、ACL、プロジェクト管理。新しいメンバーは一度つなぐだけで、圧縮、ガードレール、オブザーバビリティ、スキル、MCP がすべて揃います。

RTK Pro を見る

CLI は無料でオープンソースのままです。