Repolode
rtk-ai

rtk-ai/rtk

CLI proxy that filters and compresses shell command output before it reaches an AI coding agent's context, cutting token use.

スター
83,930
フォーク
5,334
未解決の Issue
1,543
最終コミット
10 時間前

これは何?

RTK sits between an AI coding agent and the shell. When the agent runs commands such as git status, git diff, grep, ls, cargo test or pytest, RTK rewrites the output into a shorter form: failures only for test runs, grouped matches for search, file counts for directory listings, and trimmed diffs. The stated goal is a 60-90% reduction in tokens for these common developer commands, which lowers context cost for the agent.

It ships as a single Rust binary and covers 100+ commands across Git, Cargo, npm, Python, Go, Docker, Kubernetes, AWS and Terraform. Integration is handled by an init command that installs hooks for supported agents, including Claude Code, Cursor, Gemini CLI, Codex, Windsurf, Cline and Copilot, so the agent receives compact output without calling rtk explicitly. The project also offers rtk gain for reporting savings and an optional rtk-proxy daemon for compressing provider API traffic.

The project is dual-licensed: the rtk CLI is Apache-2.0, while the compression engine and proxy are under BUSL-1.1, with a separate Apache-2.0-only edition available.

主な機能

  • 01Rewrites common shell commands such as git, grep, ls and test runners into compact output.
  • 02Ships as a single Rust binary with no runtime dependencies.
  • 03Installs agent hooks for Claude Code, Cursor, Gemini CLI, Codex, Copilot and many others.
  • 04Reports token savings with rtk gain, including history and JSON export.
  • 05Offers rtk bypass to run a single command unfiltered while still tracking it.

ユースケース

  • Reducing token cost when running an AI coding agent on large repositories with verbose test or build output.
  • Keeping an agent's context focused by collapsing passing tests and noisy git diffs.
  • Measuring which commands would benefit from filtering using rtk discover and rtk gain.

トピック

よくある質問

rtk とは?
CLI proxy that filters and compresses shell command output before it reaches an AI coding agent's context, cutting token use. RTK sits between an AI coding agent and the shell. When the agent runs commands such as git status, git diff, grep, ls, cargo test or pytest, RTK rewrites the output into a shorter form: failures only for test runs, grouped matches for search, file counts for directory listings, and trimmed diffs. The stated goal is a 60-90% reduction in tokens for these common developer commands, which lowers context cost for the agent.
rtk は無料で使えますか?ライセンスは?
rtk は Apache-2.0 ライセンスのオープンソースです。商用製品で使う前にライセンス条件を確認してください。
rtk は今もメンテナンスされていますか?
活発にメンテナンス中。rtk の最終コミットは 2026年10月19日 です。
rtk は何に使えますか?
Reducing token cost when running an AI coding agent on large repositories with verbose test or build output. Keeping an agent's context focused by collapsing passing tests and noisy git diffs. Measuring which commands would benefit from filtering using rtk discover and rtk gain.
rtk はどこで入手できますか?
ソースコードとインストール手順は GitHub にあります:https://github.com/rtk-ai/rtk

概要はプロジェクトの README をもとに AI が生成しています。GitHub の数値は毎日更新されます。

関連プロジェクト